<p>
        <span style="font-family:Arial;">Thanks for the suggestion, I solved this using a combination of Type150 and equation for integration.</span>
</p>
<p>
        <span style="font-family:Arial;"><br>
</span>
</p>
<p>
        <span style="font-family:Arial;">Best regards,</span>
</p>
<p>
        <span style="font-family:Arial;">Aoye</span>
</p>
<br>
<blockquote name="replyContent" class="ReferenceQuote" style="font-family:Arial;padding-left:5px;margin-left:5px;border-left:2px solid #B6B6B6;margin-right:0px;">
        -----Original Messages-----<br>
<b>From:</b><span id="rc_from">"David BRADLEY" <d.bradley@tess-inc.com></span><br>
<b>Sent Time:</b><span id="rc_senttime">2022-05-06 22:27:13 (Friday)</span><br>
<b>To:</b> "TRNSYS users mailing list at OneBuilding.org" <trnsys-users@lists.onebuilding.org><br>
<b>Cc:</b> "Song Aoye" <soymail@pku.edu.cn><br>
<b>Subject:</b> Re: [TRNSYS-users] An integral problem in trnsys<br>
<br>
        <p>
                I think that you could accomplish this by creating a Type55 for
      each of the individual integration periods that you want, then
      combine the results together using an equation.
        </p>
        <p>
                kind regards,
        </p>
        <p>
                 David
        </p>
        <p>
                <br>
        </p>
        <div class="moz-cite-prefix">
                On 05/06/2022 04:32, Song Aoye via
      TRNSYS-users wrote:<br>
        </div>
        <blockquote type="cite" cite="mid:6ddc381d.95e84.18098b64374.Coremail.soymail@pku.edu.cn">
                <p>
                        <span style="font-family:"Microsoft YaHei";">Dear
          every users,</span> 
                </p>
                <p>
                        <span style="font-family:SimSun;"><br>
</span> 
                </p>
                <p>
                        <span style="font-family:"Microsoft YaHei";">I want
          to achieve integration of different time intervals through
          type24 or type55 of trnsys.</span> 
                </p>
                <p>
                        <span style="font-family:"Microsoft YaHei";"><span style="font-family:Microsoft YaHei;">For example, I now have
            a model with </span><strong><span style="font-family:Microsoft YaHei;">time step = 1hr</span></strong><span style="font-family:Microsoft YaHei;"> and </span><strong><span style="font-family:Microsoft YaHei;">simulation time =
              24hr</span></strong></span> 
                </p>
<span style="font-family:"Microsoft YaHei";">I want to
        achieve intergration from</span><br>
<span style="font-family:SimSun;"><span style="font-family:"Microsoft YaHei";">0-1 hr</span><span style="font-family:"Microsoft YaHei";">, then reset
          the value</span></span><br>
<span style="font-family:SimSun;"><span style="font-family:"Microsoft YaHei";">2-5 hr</span><span style="font-family:"Microsoft YaHei";">, </span><span style="font-family:"Microsoft YaHei";white-space:normal;">then reset the value</span></span><br>
<span style="font-family:SimSun;"><span style="font-family:"Microsoft YaHei";">6-10 hr</span><span style="font-family:"Microsoft YaHei";white-space:normal;">, </span><span style="font-family:"Microsoft YaHei";white-space:normal;">then reset the value</span></span><br>
<span style="font-family:SimSun;"><span style="font-family:"Microsoft YaHei";">11-12 hr</span><span style="font-family:"Microsoft YaHei";"><span style="white-space:normal;font-family:"Microsoft YaHei";">, </span><span style="white-space:normal;font-family:"Microsoft YaHei";">then reset the value</span></span></span><br>
                <p>
                        <span style="font-family:"Microsoft YaHei";">13-24
          hr</span> 
                </p>
                <p>
                        <span style="font-family:"Microsoft YaHei";">This
          example can be shown in following figure:</span> 
                </p>
                <p>
                        <span style="font-family:"Microsoft YaHei";"><span style="font-family:Microsoft YaHei;"><img src="cid:3962b887$1$180a380576f$Coremail$soymail$pku.edu.cn" class=""></span><br>
</span> 
                </p>
                <p>
                        <span style="font-family:Microsoft YaHei;">Can integral and
          value reset in this way be achieved in TRNSYS? If it doesn't
          work, I'm going to use a combination of python and trnsys.</span> 
                </p>
                <p>
                        <br>
                </p>
                <p>
                        <span style="font-family:'Microsoft YaHei';"><span style="font-family:Microsoft YaHei;">Best Regards,</span></span> 
                </p>
                <p>
                        <span style="font-family:Microsoft YaHei;">SONG Aoye</span> 
                </p>
<br>
                <fieldset class="moz-mime-attachment-header">
                </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 System Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA

P:+1.608.274.2577 <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>
</blockquote>