<div dir="ltr"><font face="tahoma, sans-serif">Dear M. Thornton,</font><div><font face="tahoma, sans-serif"><br></font></div><div><font face="tahoma, sans-serif">Thank you very much for help.</font></div><div><font face="tahoma, sans-serif"><br></font></div><div><font face="tahoma, sans-serif">You are totally right, I tried to create a new component but it's not easy. So i'll just modify the initial values like you told me.</font></div><div><font face="tahoma, sans-serif"><br></font></div><div><font face="tahoma, sans-serif">But in order to <font color="#111111">compile the Type 164, and rebuilt the library after modifying the type, should I generate the TRNDLL in MVS (JPEG1) ? By this step Trnsys will be able to take the modifications in consideration ? Is it sure that the other types will not be affected ? </font></font></div><div><font color="#111111" face="tahoma, sans-serif"><br></font></div><div><font color="#111111" face="tahoma, sans-serif">So step : 1: Modify the type; 2 : Generate TRNDLL in MVS ? </font></div><div><font color="#111111" face="tahoma, sans-serif"><br></font></div><div><font color="#111111" face="tahoma, sans-serif">Thank you in advance</font></div><div><font color="#111111" face="Roboto, Arial, sans-serif"><span style="font-size:14px"><br></span></font></div><div><font color="#111111" face="Roboto, Arial, sans-serif"><span style="font-size:14px"> </span></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 14, 2017 at 7:54 PM, Jeff Thornton via TRNSYS-users <span dir="ltr"><<a href="mailto:trnsys-users@lists.onebuilding.org" target="_blank">trnsys-users@lists.onebuilding.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<p>Ghady,</p>
<p>You wrote "In order to add the initial value outputs in the Type 164 code, I prefer to create a new type and not modify the existed one in Trnsys Library. For that I created a new component using Trnsys 17. I had some difficulties because it’s not the same code writing from defining inputs, outputs and parameters to storage; I managed to copy the code line that I am interested in but the problem remains with the storage array.></p>
<p>Unless you want to completely re-write a version 16 component in version 17 format (and you are certainly willing to attempt that if you'd like), I would suggest that you leave it in version 16 format and just change the output initialization line as I suggested earlier.  Find the lines:</p>
<pre>!set initial output values
OUT(1:NO)=0.d0<br><br>and replace them with your initial values:<br>Out(1) =20.d0<br>Out(2) = 0.do<br>etc.<br><br>Jeff
</pre>
<div>
<pre>---<br>Jeff Thornton
President - TESS LLC
22 N. Carroll Street, Madison WI USA 53703
Office: <a href="tel:(608)%20274-2577" value="+16082742577" target="_blank">(608) 274-2577</a>  Fax: <a href="tel:(608)%20278-1475" value="+16082781475" target="_blank">(608) 278-1475</a>
<a href="http://www.tess-inc.com" target="_blank">www.tess-inc.com</a>
E-Mail: <a href="mailto:thornton@tess-inc.com" target="_blank">thornton@tess-inc.com</a>
</pre>
</div><div><div class="h5">
<p>On 11/13/2017 7:35 am, Ghady Dib via TRNSYS-users wrote:</p>
</div></div><blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px"><div><div class="h5">
<div dir="ltr">
<p class="MsoNormal" style="font-size:12.8px"><span>Hello,</span></p>
<p class="MsoNormal" style="font-size:12.8px"><span> </span></p>
<p class="MsoNormal" style="font-size:12.8px"><span>In order to add the initial value outputs in the Type 164 code, I prefer to create a new type and not modify the existed one in Trnsys Library.</span></p>
<p class="MsoNormal" style="font-size:12.8px"><span> </span></p>
<p class="MsoNormal" style="font-size:12.8px"><span>For that I created a new component using Trnsys 17. I had some difficulties because it’s not the same code writing from defining inputs, outputs and parameters to storage; I managed to copy the code line that I am interested in but the problem remains with the storage array.</span></p>
<p class="MsoNormal" style="font-size:12.8px"><span> </span></p>
<p class="MsoNormal" style="font-size:12.8px"><span>In fact when I created the new component (from Trnsys), I didn’t notice any place where I can specify my number of storage (Which is equal to 2 in Type 164</span><span style="font-size:12.8px">).</span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="font-size:12.8px">  </span></p>
<p class="MsoNormal" style="font-size:12.8px"><span>Do I set my storage number there:  ‘’<span style="color:#6aa84f"><strong>Call SetNumberStoredVariables(0,0)</strong></span><span style="color:black">’<wbr>’; It’s not like the inputs and parameters where I defined their numbers them in Trnsys.</span></span></p>
<p class="MsoNormal" style="font-size:12.8px"><span>I have to include (in my new component ''type210'') the storage array in FOUR places just like in type 164a:</span></p>
<p class="MsoNormal" style="font-size:12.8px"><span> </span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="font-family:Consolas;color:green"><strong>POST CONVERGENCE MANIPULAITIONS</strong></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px;line-height:normal"><span style="font-family:Consolas;color:black">      </span><span style="font-family:Consolas;color:black">  </span><span style="font-family:Consolas;color:blue">CALL</span><span style="font-family:Consolas;color:black"> getStorageVars(<wbr>STORED,NS,INFO)</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px;line-height:normal"><span style="font-family:Consolas;color:black">        </span><span style="font-family:Consolas;color:black">STORED(1)=STORED(2)</span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="font-family:Consolas;color:black">      </span><span style="font-family:Consolas;color:black">  </span><span style="font-family:Consolas;color:blue">CALL</span><span style="font-family:Consolas;color:black"> setStorageVars(<wbr>STORED,NS,INFO)</span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="font-family:Consolas;color:black"> </span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="font-family:Consolas;color:green"><strong>PERFORM FIRST CALL MANIPULATIONS</strong></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;font-size:12.8px"><span style="font-family:Consolas;color:blue">  CALL</span><span style="font-family:Consolas;color:black"> setStorageSize(NS,INFO)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt;font-size:12.8px"><span style="font-family:Consolas;color:black"> </span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="font-family:Consolas;color:green"><strong>PERFORM INITIAL TIMESTEP MANIPULATIONS</strong></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px;line-height:normal"><span style="font-family:Consolas;color:black">      </span><span style="font-family:Consolas;color:black">  STORED(1:NS) = N_INI       </span><span style="font-family:Consolas;color:green">!NO. OF MOLES IN PREVIOUS TIME STEP</span><span style="font-family:Consolas;color:black"></span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="font-family:Consolas;color:black">        </span><span style="font-family:Consolas;color:blue">CALL</span><span style="font-family:Consolas;color:black"> setStorageVars(STORED,<wbr>NS,INFO)</span><span style="font-family:Consolas;color:green"></span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="font-family:Consolas;color:black"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px;line-height:normal"><span style="font-family:Consolas;color:green"><strong>UPDATE STORAGE</strong></span><span style="font-family:Consolas;color:black"></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px;line-height:normal"><span style="font-family:Consolas;color:black">        STORED(2) = NGAS</span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="font-family:Consolas;color:black">        </span><span style="font-family:Consolas;color:blue">CALL</span><span style="font-family:Consolas;color:black"> setStorageVars(STORED,<wbr>NS,INFO)</span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="font-family:Consolas;color:black"> </span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="color:black">Are these nomenclatures work in the Type210 created by Trnsys 17? Or I have to include other nomenclatures ? such as getStaticArrayValue ? and for the others ?</span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="color:black"> </span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="color:black"> </span></p>
<p class="MsoNormal" style="font-size:12.8px"><span style="color:black">Thank you in advance for your support.  </span></p>
<div> </div>
-- <br>
<div class="m_320670816517115030gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><strong style="color:#333333;text-indent:0px"><strong style="color:#333333;text-indent:0px"><em style="text-indent:0px"><span style="text-indent:0px"><span style="font-size:medium"><span style="font-size:13px;font-style:normal;font-weight:normal"><span><strong><em><span style="font-style:normal;font-weight:normal"><strong style="text-indent:0px"><em style="text-indent:0px"><span style="text-indent:0px;font-size:medium"><br></span></em></strong></span></em></strong></span></span></span><br></span></em></strong></strong>
<p style="font-size:12.8px;margin-bottom:0.0001pt;color:#222222;font-style:normal;font-weight:normal;background-image:initial;background-color:#fdfdfd;background-position:initial;background-repeat:initial"><span style="font-size:12pt;color:black"><span style="font-family:times new roman,serif">Ghady DIB</span></span></p>
<p style="margin-bottom:0.0001pt;color:#222222;font-style:normal;font-weight:normal;background-image:initial;background-color:#fdfdfd;background-position:initial;background-repeat:initial"><span style="color:black"><span style="font-size:small"><span style="font-family:monospace,monospace">Doctorant</span><br></span></span></p>
<span style="font-size:small">Laboratoire CETHIL UMR 5008 Groupe Energétique des Systèmes Thermiques et Frigorifiques (ESTF) Département Génie Energétique et Environnement INSA Lyon France</span>
<p style="font-size:12.8px;margin-bottom:0.0001pt;color:#222222;font-style:normal;font-weight:normal;background-image:initial;background-color:#fdfdfd;background-position:initial;background-repeat:initial"> </p>
<p style="font-size:12.8px;margin-bottom:0.0001pt;color:#222222;font-style:normal;font-weight:normal;background-image:initial;background-color:#fdfdfd;background-position:initial;background-repeat:initial"> </p>
<p style="margin-bottom:0.0001pt;color:#222222;font-style:normal;font-weight:normal;background-image:initial;background-color:#fdfdfd;background-position:initial;background-repeat:initial"><span style="font-size:small"><span style="font-family:'times new roman',serif;color:black">Tel:</span><span style="font-family:'times new roman',serif;color:black"><span style="color:#1155cc"><a style="color:#1155cc" href="tel:%2B%20%2833%29%206%2033%2052%2096%2074" target="_blank">+ (33) 6 33 52 96 74</a></span></span></span></p>
<div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"> </div>
<div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"> </div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div></div><pre>______________________________<wbr>_________________
TRNSYS-users mailing list
<a href="mailto:TRNSYS-users@lists.onebuilding.org" target="_blank">TRNSYS-users@lists.<wbr>onebuilding.org</a>
<a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org" target="_blank">http://lists.onebuilding.org/<wbr>listinfo.cgi/trnsys-users-<wbr>onebuilding.org</a>
</pre>
</blockquote>
</div>
<br>______________________________<wbr>_________________<br>
TRNSYS-users mailing list<br>
<a href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.<wbr>onebuilding.org</a><br>
<a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org" rel="noreferrer" target="_blank">http://lists.onebuilding.org/<wbr>listinfo.cgi/trnsys-users-<wbr>onebuilding.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><b style="text-indent:0px!important;color:rgb(51,51,51)"><i style="text-indent:0px!important"><font style="text-indent:0px!important"><font size="3" style="font-size:medium"><span style="font-size:13px;font-style:normal;font-weight:normal"><font><b><i><span style="font-style:normal;font-weight:normal"><b style="text-indent:0px!important"><i style="text-indent:0px!important"><font style="text-indent:0px!important" size="3"><br><br><br></font></i></b></span></i></b></font></span></font><p style="font-size:12.8px;margin-bottom:0.0001pt;color:rgb(34,34,34);font-style:normal;font-weight:normal"><span lang="FR" style="font-size:12pt;font-family:"times new roman",serif"> </span></p><p style="font-size:12.8px;margin-bottom:0.0001pt;color:rgb(34,34,34);font-style:normal;font-weight:normal;background-image:initial;background-color:rgb(253,253,253);background-position:initial;background-repeat:initial"><span lang="FR" style="font-size:12pt;font-family:"times new roman",serif;color:black"> </span></p><p style="font-size:12.8px;margin-bottom:0.0001pt;color:rgb(34,34,34);font-style:normal;font-weight:normal;background-image:initial;background-color:rgb(253,253,253);background-position:initial;background-repeat:initial"><span lang="FR" style="font-size:12pt;color:black"><font face="times new roman, serif">Ghady DIB</font></span></p><p style="margin-bottom:0.0001pt;color:rgb(34,34,34);font-style:normal;font-weight:normal;background-image:initial;background-color:rgb(253,253,253);background-position:initial;background-repeat:initial"><span lang="FR" style="color:black"><font size="2"><font face="monospace, monospace">Doctorant</font><br></font></span></p><pre cols="72" style="white-space:pre-wrap;color:rgb(34,34,34);font-style:normal;font-weight:normal"><font size="2">Laboratoire CETHIL UMR 5008
Groupe Energétique des Systèmes Thermiques et Frigorifiques (ESTF)

Département Génie Energétique et Environnement

INSA Lyon
France</font></pre><p style="font-size:12.8px;margin-bottom:0.0001pt;color:rgb(34,34,34);font-style:normal;font-weight:normal;background-image:initial;background-color:rgb(253,253,253);background-position:initial;background-repeat:initial"><b style="font-size:12.8px;color:rgb(51,51,51);background-color:rgb(255,255,255)"><i></i></b></p><p style="font-size:12.8px;margin-bottom:0.0001pt;color:rgb(34,34,34);font-style:normal;font-weight:normal;background-image:initial;background-color:rgb(253,253,253);background-position:initial;background-repeat:initial"><b style="font-size:small;color:rgb(51,51,51);background-color:rgb(255,255,255)"><i></i></b></p><p style="margin-bottom:0.0001pt;color:rgb(34,34,34);font-style:normal;font-weight:normal;background-image:initial;background-color:rgb(253,253,253);background-position:initial;background-repeat:initial"><font size="2"><span lang="FR" style="font-family:'times new roman',serif;color:black"><b style="font-family:arial,sans-serif;color:rgb(51,51,51);background-color:rgb(255,255,255)"><i></i></b>Tel:</span><span style="font-family:'times new roman',serif;color:black"><span lang="FR" style="color:rgb(17,85,204)"><a href="tel:%2B%20%2833%29%206%2033%2052%2096%2074" style="color:rgb(17,85,204)" target="_blank">+ (33) 6 33 52 96 74</a></span></span></font></p></font></i></b><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div></div></div></div></div></div></div>
</div>