<div dir="ltr"><br><div style>Dear Pauline,</div><div style><br></div><div style>You have to use a type 93 (input value recall) in the utility library.</div><div style>It allows you to store a variable for a given number of timestep.</div>
<div style><br></div><div style>What you have to do is to store the value of T17h during 1 timestep and modify your equation as follow:</div><div style>T17h=eql(mod(time,24),17)*temperature_zone10 <b>+ (1-eql(mod(time,24),17))*old_T17h</b></div>
<div style><b><br></b></div><div style>In your equation box, <i>old_T17h</i> would be an additional input linked to the output of type 93.</div><div style>The output <i>T17h</i> of your equation box is then to be linked to the input of type 93.</div>
<div style><br></div><div style>You'll get variable that will be updated every 24h at 5pm.</div><div style><br></div><div style><br></div><div style>Regards,</div><div style><br></div><div class="gmail_extra"><br clear="all">
<div><p style="margin:0px;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">_________________________<u></u><u></u></p><p style="margin:0px;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">
</p><p style="margin-bottom:0.0001pt;background-repeat:initial initial"><span style="font-size:10pt;font-family:Arial,sans-serif">Damien GONDRE</span></p>
<p style="margin-bottom:0.0001pt;background-repeat:initial initial"><span style="font-family:Arial,sans-serif"><span style="font-size:9pt">PhD Student</span></span></p><p style="margin-bottom:0.0001pt;background-repeat:initial initial">
<span style="font-family:Arial,sans-serif;font-size:8pt">Centre de Thermique de Lyon (CETHIL)<br></span><span style="font-family:Arial,sans-serif;font-size:8pt">Bâtiment Sadi Carnot<br></span><span style="font-family:Arial,sans-serif;font-size:8pt">9 Rue de la Physique<br>
</span><span style="font-family:Arial,sans-serif;font-size:8pt">INSA de LYON<br></span><span style="font-family:Arial,sans-serif;font-size:8pt">69621 Villeurbanne Cedex</span></p>
<p style="margin-bottom:0.0001pt;background-repeat:initial initial"><span style="font-size:8pt;font-family:Arial,sans-serif">Tél : </span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:black">04 72 43 8</span><span style="font-size:8pt;font-family:Arial,sans-serif">4 68</span><span style="font-size:7.0pt;font-family:"Arial","sans-serif";color:black"></span></p>
<p></p></div>
<br><br><div class="gmail_quote">On Wed, Apr 24, 2013 at 3:26 PM, Pauline GELIN <span dir="ltr"><<a href="mailto:p.gelin@katene.fr" target="_blank">p.gelin@katene.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" lang="FR" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">Hello, <u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">I would like to modelize a manual night ventilation. For that I need to keep the value of temperature for the time X (for example 17 pm) and compare this value with a set temperature during a given period (for example a night). <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">I don’t know to keep a value in a variable during a given period. Could anyone help me? <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">I began with the following formulas but when the condition of the first variable is not checked it returns 0 and the third variable doesn’t return what I want :<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext">T17h = eql(mod(TIME,24),17)*temperature_zone10<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext">periode = or(lt(mod(TIME,24),9),gt(mod(TIME,24),17))<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext">vnat = gt(T17h,24)*periode*2<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">Thanks a lot for your help. <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">Best Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div><p class="MsoNormal"><b><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d">Pauline GELIN<u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d">Ingénieur Conception environnementale<u></u><u></u></span></b></p><p class="MsoNormal">
<span lang="EN-US" style="font-size:11.0pt;font-family:"Comic Sans MS";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Comic Sans MS";color:#1f497d"><img width="79" height="52" alt="cid:image004.jpg@01CE062A.F4C2C000"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></b></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d"><img width="81" height="13" alt="cid:image006.jpg@01CE062A.F4C2C000"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d">10 avenue des canuts<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d">69120 VAULX EN VELIN<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d">T : <a href="tel:04.37.45.33.33" value="+33437453333" target="_blank">04.37.45.33.33</a> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d">Ligne directe : <a href="tel:04.37.45.33.47" value="+33437453347" target="_blank">04.37.45.33.47</a><u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></b></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.katene.coop" target="_blank"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">www.katene.coop</span></b></a></span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.quadriplus-groupe.com" target="_blank"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">www.quadriplus-groupe.com</span></b></a></span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.woopa.coop" target="_blank"><b><span style="color:#1f497d">www.woopa.coop</span></b></a></span><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> <u></u><u></u></span></b></p>
</div></div></div><br>_______________________________________________<br>
TRNSYS-users mailing list<br>
<a href="mailto:TRNSYS-users@cae.wisc.edu">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>
<br></blockquote></div><br></div></div>