[TRNSYS-users] How to code a loop Dynamic array in TRNSYS?

David BRADLEY d.bradley at tess-inc.com
Mon Mar 18 10:20:09 PDT 2019


Yu,

   Dynamic arrays are little tricky to deal with in TRNSYS Types for a 
few reasons. Typically what we do instead is to make a static array that 
is sized to some value larger than we think we'll need and then only use 
the first part of the array. I realize this is not very "clean" 
programming but it makes dealing with those arrays a lot simpler.

kind regards,

  David


On 03/17/2019 21:51, ユハオ via TRNSYS-users wrote:
> Hi everyone,
>
> I'd like to know how to create a dynamic array in Trnsys. And could 
> you give me a code example for an equation which used the dynamic array?
>
> Thank you very much!
>
>
> Hao YU
> Hokkaido Univ. Japan
>
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at lists.onebuilding.org
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20190318/2cc9d063/attachment.html>


More information about the TRNSYS-users mailing list