<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Jeff,</p>
<p><br>
</p>
<p>In fact I am calling Matlab in my simulation to calculate some outputs, but the input is constant for the entire simulation which means the outputs would be also the same. So I need to call Matlab for the first time step only and hold the values for the
 remaining time (8760 hour). Basically, I don't mind making the calculation each time step, BUT it's consuming time especially if I am running an optimization. </p>
<p>In your suggestion, the values could be hold (25 hours max) but the call for Matlab is done anyway right?</p>
I need the trnsys not to make the call at all after the first time step.
<div>Hope you get what I intend to do.</div>
<div>Thanks..</div>
<div><br>
</div>
<div><br>
</div>
<div>Houssein</div>
<div><br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Jeff Thornton via TRNSYS-users <trnsys-users@lists.onebuilding.org><br>
<b>Sent:</b> Thursday, June 9, 2016 5:36 AM<br>
<b>To:</b> trnsys-users@lists.onebuilding.org<br>
<b>Subject:</b> Re: [TRNSYS-users] ??</font>
<div> </div>
</div>
<div>
<p>While I'm not quite sure why you might want to do that, there are certainly ways to do it.  The easiest is probably to use the input delay controller in the TESS controls library if you have it and set the "hold" time to something large.  I'm sure there
 are other clever ways that accomplish the same thing.  You could integrate an equation that has the output multiplied by a forcing function where the forcing function is one only at the first timestep and 0 otherwise.</p>
<p> </p>
<p>Jeff</p>
<p> </p>
<div>
<pre>---<br>Jeff Thornton
President - TESS LLC
22 N. Carroll Street, Madison WI USA 53703
Office: (608) 274-2577  Fax: (608) 278-1475
www.tess-inc.com
E-Mail: thornton@tess-inc.com
</pre>
</div>
<p>On 06/08/2016 7:43 pm, Hsein Moussawi via TRNSYS-users wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi guys,</p>
<p>In certain simulation, can I make a component run for one time step only and give the same outputs for the rest of the simulation??</p>
<p> </p>
</div>
<br>
<pre>_______________________________________________
TRNSYS-users mailing list
<a href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>