<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Ghady,</p>
<p>Yes - those are the steps to include your component changes if you have the model as part of your large TRNSYS library.  But you can also build a DLL for just that component as part of the TRNSYS User Library approach.  I suggest that you eventually try that approach so you don't have to rebuild everything every time you make a change.</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 11/16/2017 3:42 am, Ghady Dib via TRNSYS-users wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">Dear M. Thornton,
<div> </div>
<div><span style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;">In order to do eddit the type:</span><br style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;" /><span style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;"><br /></span></div>
<div><span style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;">1) Modify the type (Add initial output values)</span><br style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;" /><span style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;">2) Recompile it </span><br style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;" /><span style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;">3) Rebuild the TRNDLL </span><br style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;" /><span style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;">Are these the steps ?</span><br style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;" /><span style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;">In order to Rebuild the library, I follow the procedure in ProgrammersGuide (Instructions to rebuild TRNDll.dll with Intel Visual Fortran 9.1 and MS Visual Studio 2003) ? </span><br style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;" /><span style="color: #111111; font-family: Roboto,Arial,sans-serif; font-size: 14px;">Have a nice day</span><br />
<div style="font-size: 12.8px;"><span style="font-family: tahoma,sans-serif;"> </span></div>
<div style="font-size: 12.8px;"> </div>
</div>
</div>
<div class="gmail_extra"><br />
<div class="gmail_quote">On Wed, Nov 15, 2017 at 11:20 AM, Ghady Dib <span><<a href="mailto:deebghady@gmail.com">deebghady@gmail.com</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0  0  0  .8ex; border-left: 1px  #ccc  solid; padding-left: 1ex;">
<div dir="ltr"><span style="font-family: tahoma,sans-serif;">Dear M. Thornton,</span>
<div><span style="font-family: tahoma,sans-serif;"> </span></div>
<div><span style="font-family: tahoma,sans-serif;">Thank you very much for help.</span></div>
<div><span style="font-family: tahoma,sans-serif;"> </span></div>
<div><span style="font-family: 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.</span></div>
<div><span style="font-family: tahoma,sans-serif;"> </span></div>
<div><span style="font-family: tahoma,sans-serif;">But in order to <span style="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 ? </span></span></div>
<div><span style="color: #111111; font-family: tahoma,sans-serif;"> </span></div>
<div><span style="color: #111111; font-family: tahoma,sans-serif;">So step : 1: Modify the type; 2 : Generate TRNDLL in MVS ? </span></div>
<div><span style="color: #111111; font-family: tahoma,sans-serif;"> </span></div>
<div><span style="color: #111111; font-family: tahoma,sans-serif;">Thank you in advance</span></div>
<div><span style="color: #111111; font-family: Roboto,Arial,sans-serif;"><span style="font-size: 14px;"> </span></span></div>
<div><span style="color: #111111; font-family: Roboto,Arial,sans-serif;"><span style="font-size: 14px;"> </span></span></div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br />
<div class="gmail_quote">On Tue, Nov 14, 2017 at 7:54 PM, Jeff Thornton via TRNSYS-users <span><<a href="mailto:trnsys-users@lists.onebuilding.org">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;"><span style="text-decoration: underline;"></span>
<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">(608) 274-2577</a>  Fax: <a href="tel:(608)%20278-1475">(608) 278-1475</a>
<a href="http://www.tess-inc.com">www.tess-inc.com</a>
E-Mail: <a href="mailto:thornton@tess-inc.com">thornton@tess-inc.com</a>
</pre>
</div>
<div>
<div class="m_6043340264081809245h5">
<p>On 11/13/2017 7:35 am, Ghady Dib via TRNSYS-users wrote:</p>
</div>
</div>
<blockquote style="padding-left: 5px; border-left: #1010ff  2px  solid; margin-left: 5px;">
<div>
<div class="m_6043340264081809245h5">
<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;">’’; 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(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(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,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,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_6043340264081809245m_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="color: black;">Tel:</span><span style="color: black;"><span style="color: #1155cc;"><a style="color: #1155cc;" href="tel:%2B%20%2833%29%206%2033%2052%2096%2074">+ (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>
</div>
</div>
<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>
<br />_______________________________________________<br /> TRNSYS-users mailing list<br /><a href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a><br /><a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a><br /><br /></blockquote>
</div>
<br /><br clear="all" />
<div> </div>
-- <br />
<div class="m_6043340264081809245gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><strong style="text-indent: 0px; color: #333333;"><strong style="text-indent: 0px; color: #333333;"><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 /><br /><br /></span></em></strong></span></em></strong></span></span></span></span></em></strong></strong>
<p style="font-size: 12.8px; margin-bottom: 0.0001pt; color: #222222; font-style: normal; font-weight: normal;"><span style="font-size: 12pt; font-family: 'times new roman',serif;"> </span></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;"><span 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: #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="color: black;">Tel:</span><span style="color: black;"><span style="color: #1155cc;"><a style="color: #1155cc;" href="tel:%2B%20%2833%29%206%2033%2052%2096%2074">+ (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>
</div>
</div>
</div>
</blockquote>
</div>
<br /><br clear="all" />
<div> </div>
-- <br />
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><strong style="text-indent: 0px; color: #333333;"><strong style="text-indent: 0px; color: #333333;"><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 /><br /><br /></span></em></strong></span></em></strong></span></span></span></span></em></strong></strong>
<p style="font-size: 12.8px; margin-bottom: 0.0001pt; color: #222222; font-style: normal; font-weight: normal;"><span style="font-size: 12pt; font-family: 'times new roman',serif;"> </span></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;"><span 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: #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="color: black;">Tel:</span><span style="color: black;"><span style="color: #1155cc;"><a style="color: #1155cc;" href="tel:%2B%20%2833%29%206%2033%2052%2096%2074">+ (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>
</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>
</body></html>