<br>Dear Steve,<br><br>I know a solution that should work but it is not necessarily the best one:<br>You could use an equation box with an input variable called <i>old_value </i>for instance, and two output variables called <i>value </i>and <i>new_value</i> for instance. At each time step you have to stock the <i>value</i> in the <i>old_value </i>variable using the input value recall (type 71).<br>


In the <i>new_value </i>variable you calculate the new value at each htime step.<br><br>Then you decide upon the hour of the curent day if you want to use the old value or the new value by using the following equation :<br>

<b><i>value = eql(mod(time,24),0)*new_value+(1-</i><i>eql(mod(time,24),0))*old_value</i></b><br>
<br><br>It should work,<br><br>Regards,<br><br>Damien <span class="il">Gondre</span>.<br><span style="color:rgb(102,102,102)">---------------------------------------</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Centre de thermique de Lyon (<span>CETHIL</span>)</span><br style="color:rgb(102,102,102)">





<span style="color:rgb(102,102,102)"><span>UMR</span> <span>5008</span> - Insa de Lyon, UCBL, CNRS</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Bātiment Sadi Carnot</span><br style="color:rgb(102,102,102)">




<span style="color:rgb(102,102,102)">69621 Villeurbanne Cedex</span><br style="color:rgb(153,153,153)">
<span style="color:rgb(102,102,102)">France</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)"><a href="tel:%2B334%2072%2043%2084%2068" value="+33472438468" target="_blank">+334 72 43 84 68</a></span><br>

<br><br><br><br><br><br><div class="gmail_quote">On Tue, May 22, 2012 at 4:37 PM,  <span dir="ltr"><<a href="mailto:esterl@pk-i.de" target="_blank">esterl@pk-i.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Dear Trnsys Users,<br>
<br>
I have a Problem in a Trnsys Simulation.<br>
I want to keep a calculated value at a certain time step over 24 hours and<br>
then calculate a new one.<br>
For example:  I want to calculate the value at hour 0 of day 1 and then use<br>
this value in further calculations on this day. At day 2 i want to do the<br>
same with the new value for hour 0 of that day.<br>
<br>
The problem i'm having is, that i don't know how to tell transys to use a<br>
value over 24 hours an then calculate a new one for the next 24 hours and<br>
so on.<br>
<br>
<br>
Thanks for your Help !<br>
<br>
Steve<br>
<br>
_______________________________________________<br>
TRNSYS-users mailing list<br>
<a href="mailto:TRNSYS-users@cae.wisc.edu" target="_blank">TRNSYS-users@cae.wisc.edu</a><br>
<a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users" target="_blank">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a><br>
</blockquote></div><br>