<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Ghady <br>
</p>
<p> The initial pressure issue is one that was fixed in later
TRNSYS versions. Once you modify the FORTRAN then yes, you have to
rebuild the TRNdll.dll. the FORTRAN code is just a set of text
files. These are read, processed and turned into a DLL by the
FORTRAN compiler. Only the DLL is accessed when TRNSYS actually
runs.</p>
<p> Instructions for how to rebuild the TRNDll are contained in the
07-Programmer's Guide (in the ..\TrnsysXX\Documentation folder)</p>
<p> There is no restriction in the code that limits the tank volume
to 1m3. A change to the proforma should be sufficient. Once you
modify the proforma and save the changes, however, your changes
will not be reflected in your project until you select the Type164
in your project, right click on it and select "replace" from the
context menu. Find the modified proforma in the proforma directory
and the new limit will take effect. As a side note, I am not clear
what you mean when you "it does not work." Are you getting an
error when you run the simulation or are you still unable to enter
a value less than 1m3.</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 04/13/2018 07:12, Ghady Dib via
TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALx-cjsHRTvaeJ6rYG4uYH5QvfXXtEqjAOrCLxwQH-2N5Vp5+w@mail.gmail.com">
<div dir="ltr">
<p class="MsoNormal" style="line-height:11.75pt;margin:0cm 0cm
8pt;font-size:11pt;font-family:Calibri,sans-serif">Hello,</p>
<p class="MsoNormal" style="line-height:11.75pt;margin:0cm 0cm
8pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span
style="color:rgb(34,34,34)">I am modeling a 2 stages of
air compressors with 2 compressed
air reservoirs (Type164). And I have two questions
regarding:</span></b></p>
<p class="MsoNormal" style="line-height:11.75pt;margin:0cm 0cm
8pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span
style="color:rgb(34,34,34)"><br>
</span></b></p>
<p class="gmail-MsoListParagraph"
style="line-height:11.75pt;margin:0cm 0cm 8pt
36pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span
style="color:rgb(34,34,34)"><span>1)<span
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times
New Roman"">
</span></span></span></b><b><span
style="color:rgb(34,34,34)">Initial
pressure of the Reservoir (Type164):<span></span></span></b></p>
<p class="MsoNormal" style="line-height:11.75pt;margin:0cm 0cm
8pt;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(34,34,34)">If we double click on type 164,
we have
access to the parameters, inputs and outputs. In my project,
I want to fix the
pressure of the reservoir (Pgas) to 1 bar. So I fixed
PMAX=50bar (Para (2)) and
PLEV_INI=0.02 (Input (4)) in order to </span><span
style="font-size:9.5pt;font-family:Consolas;color:black">P_INI
=
PLEV_INI*PMAX*1E5 equals 1 bar. <span></span></span></p>
<p class="MsoNormal" style="line-height:11.75pt;margin:0cm 0cm
8pt;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(34,34,34)">When I run the project, and I
plot
the result, I have at t=0 PGAS equals to zero
(Pression.out). <span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm
0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(34,34,34)">It’s a bit confusing to
initialize the pressure because there is a way_1 t</span><font
color="#000000">o fix P_ini (described above) and
another way_2 to set initial output values (in my case, PGAS
is OUT(2)). To be
on safe side I put in the FORTRAN code <span>(</span></font><span
style="font-size:9.5pt;font-family:Consolas"><font
color="#000000">!set initial output value) OUT(2)=P_INI (</font><span
style="color:black">And even with this, it does not work)</span></span><span
style="color:rgb(34,34,34)">. So
what way to take in order to initialize the pressure? Way 1
or 2 or both?<span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm
0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(34,34,34)"><span> </span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm
0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(34,34,34)">If I modify the FORTRAN (in
order
to set the initial output values), should I regenerate the
Type164? And then
rebuild new library? Or no need (just save)? If yes can you
tell me step by step
the process to rebuild the library, because I did it once
not correctly (rebuild the library) and I
damaged all the other types.</span><span
style="font-size:9.5pt;font-family:Consolas;color:black"><span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm
0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:9.5pt;font-family:Consolas;color:black"><span> </span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm
0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:9.5pt;font-family:Consolas;color:black"><span> </span></span></p>
<p class="gmail-MsoListParagraph"
style="line-height:11.75pt;margin:0cm 0cm 8pt
36pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span
style="color:rgb(34,34,34)"><span>2)<span
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times
New Roman"">
</span></span></span></b><b><span
style="color:rgb(34,34,34)">Volume
of the Reservoir (Type164):<span></span></span></b></p>
<p class="MsoNormal" style="line-height:11.75pt;margin:0cm 0cm
8pt;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(34,34,34)">By default the minimum volume of
the reservoir is 1 m<sup>3</sup>. In order to change the
interval (min, max) of
the volume I did the following steps:<span></span></span></p>
<p class="MsoNormal" style="line-height:11.75pt;margin:0cm 0cm
8pt;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(34,34,34)">Right click on the type </span><span
style="font-family:Wingdings;color:rgb(34,34,34)">à</span><span
style="color:rgb(34,34,34)"> Proforma </span><span
style="font-family:Wingdings;color:rgb(34,34,34)">à</span><span
style="color:rgb(34,34,34)"> Variables </span><span
style="font-family:Wingdings;color:rgb(34,34,34)">à</span><span
style="color:rgb(34,34,34)"> change the min for parameter
3 (VOL). Then click OK and close the Proforma after saving
the changes. By
this, the Type 164 is changed in the library also.<span></span></span></p>
<p class="MsoNormal" style="line-height:11.75pt;margin:0cm 0cm
8pt;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(34,34,34)">Problem: It does not work with
the
modified reservoir. In fact I repeated the same project
[compressor and a
reservoir (VOL=1 m<sup>3</sup>), where the system worked].
So I guess the steps
to change the VOL interval are not correct.<span></span></span></p>
<p class="MsoNormal" style="line-height:11.75pt;margin:0cm 0cm
8pt;font-size:11pt;font-family:Calibri,sans-serif"><br>
</p>
<p class="MsoNormal" style="line-height:11.75pt;margin:0cm 0cm
8pt;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(34,34,34)">Thank you for help</span></p>
-- <br>
<div class="m_-125422055126686995gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<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"><br>
<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
style="font-size:12pt;color:black" lang="FR"><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
style="color:black" lang="FR"><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="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 style="font-family:'times new
roman',serif;color:black" lang="FR">Tel:</span><span
style="font-family:'times new
roman',serif;color:black"><span
style="color:rgb(17,85,204)" lang="FR"><a
href="tel:%2B%20%2833%29%206%2033%2052%2096%2074"
style="color:rgb(17,85,204)"
target="_blank" moz-do-not-send="true">+
(33) 6 33 52 96 74</a></span></span></font></p>
</font></i></b></div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI 53703 USA
P:+1.608.274.2577
F:+1.608.278.1475
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</body>
</html>