[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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@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@tess-inc.com

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