<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Yu,</p>
    <p>  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.</p>
    <p>kind regards,</p>
    <p> David</p>
    <p>  <br>
    </p>
    <div class="moz-cite-prefix">On 03/17/2019 21:51, ユハオ via
      TRNSYS-users wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJ3uZcSyZ2inPKfSgqfqFfTWgksenfVab-ouxnXoVmY_pKZxvw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi everyone,
        <div><br>
        </div>
        <div>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?</div>
        <div><br>
        </div>
        <div>Thank you very much!</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Hao YU</div>
        <div>Hokkaido Univ. Japan</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
***************************
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
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>

<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
  </body>
</html>