<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Michel,<div><br></div><div>Iteration mode 1 means that the component is called EVERY time one of its input values change and at least once each time step. Hooking up an integrator with this iteration mode to a component that has any sort of iteration each time step will cause issues.  In iteration mode 4, the integrator is called once each time step, after everything else is converged, to perform the integration on the final values of all its inputs.</div><div><br></div><div>Jeff <br><br><div id="AppleMailSignature">Sent from my iPhone</div><div><br>On Dec 13, 2018, at 2:05 AM, Michel Tamarzians <<a href="mailto:micheltamarzians@gmail.com">micheltamarzians@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="auto">Dear jeff,<div dir="auto"><br></div><div dir="auto">Thanks for the quick reply.</div><div dir="auto">I mean indeed the sourcing fortran code of the component. Standard it is s<span style="font-family:sans-serif">et to iteration mode 4 so that it is called after all the other components have converged but before the printers. But I was wondering why it is not giving the same final answer if you change the source fortran code to iteration mode 1, so that the component is called every time step. </span></div><div dir="auto"><span style="font-family:sans-serif">Shouldn't the final output of the component be the same regarding the iteration mode for type24?</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><font face="sans-serif">Thanks again!</font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Kind regards,</font></div><div dir="auto"><font face="sans-serif">Michel</font></div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Thu, 13 Dec 2018, 05:36 Jeff Thornton via TRNSYS-users <<a href="mailto:trnsys-users@lists.onebuilding.org">trnsys-users@lists.onebuilding.org</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<p>When you say "set the iteration mode to 4", are you referring to changing the source of Type 24?  If so, I'm not sure why you would do this.  Type 24 has been programmed to handle nearly all cases that you could throw at it.  Unless you're doing something odd post-convergence, this should never have to be changed.</p>
<p> </p>
<p>Jeff</p>
<p> </p>
<div>
<pre>---<br>Jeff Thornton
President - TESS LLC
3 N. Pinckney Street, Suite 202, Madison WI USA 53703
Office: (608) 274-2577  Fax: (608) 278-1475
<a href="http://www.tess-inc.com" target="_blank" rel="noreferrer">www.tess-inc.com</a>
E-Mail: <a href="mailto:thornton@tess-inc.com" target="_blank" rel="noreferrer">thornton@tess-inc.com</a>
</pre>
</div>
<p>On 12/12/2018 2:54 am, Michel Tamarzians via TRNSYS-users wrote:</p>
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px">
<div dir="ltr">
<div>Dear all, </div>
<div> </div>
<div>I am doing a simulation for one year and using Type24 to integrate the generated power of my solar array. However, if I set the iterationmode of Type24 to "mode 1" (calculated every hour) or "mode 4" (calculated after all other components) it gives me as a final result a total different value which will affect my lcoe calcualtions.</div>
<div> </div>
<div>Can someone perhaps explain to me why this happens? In my understanding I think the integral should give the same value, right?</div>
<div> </div>
<div>Again thanks for any help!</div>
<div> </div>
<div>Kind regards, </div>
<div>Michel</div>
<div> </div>
</div>
<br>
<pre>_______________________________________________
TRNSYS-users mailing list
<a href="mailto:TRNSYS-users@lists.onebuilding.org" target="_blank" rel="noreferrer">TRNSYS-users@lists.onebuilding.org</a>
<a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org" target="_blank" rel="noreferrer">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
TRNSYS-users mailing list<br>
<a href="mailto:TRNSYS-users@lists.onebuilding.org" target="_blank" rel="noreferrer">TRNSYS-users@lists.onebuilding.org</a><br>
<a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org" rel="noreferrer noreferrer" target="_blank">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a><br>
</blockquote></div></div>
</div></blockquote></div></body></html>