<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><span lang="EN-US">Maciej,</span></p>
<p><span lang="EN-US"> some of these may be quite obvious but here
are some things to check.</span></p>
<p><span lang="EN-US">- make sure that you modified the Studio
proforma to allow for the new nref code.</span></p>
<p><span lang="EN-US">- make sure that you have used the same case
the CoolProp expects; I do not know for a fact but it looks to
me as though CoolProp is case sensitive.</span></p>
<p><span lang="EN-US">- make sure that CO2 properties can be
returned based on the combinations of properties that you are
sending (T and x known, T and p known, etc.)</span></p>
<p><span lang="EN-US">- you'll need to recompile the TRNDll after
making the source code change CoolProp_Fluid_Properties()</span></p>
<p><span lang="EN-US">kind regards,</span></p>
<p><span lang="EN-US"> David</span></p>
<p><span lang="EN-US"><br>
</span></p>
<div class="moz-cite-prefix">On 01/31/2022 05:09, Maciej Bujalski
via TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:000f01d81692$ff4c0cc0$fde42640$@agh.edu.pl">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}span.Stylwiadomocie-mail17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}span.jlqj4b
{mso-style-name:jlqj4b;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Dear TRNSYS users, <o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I have created my own
component to calculate properties of fluids using CoolProp
library. The component communicates with Subroutine
CoolProp_Fluid_Properties(…). However, I would like to use
different fluids </span><span class="jlqj4b"><span
lang="EN">than those listed in this file (for example
CarbonDioxide). <o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="jlqj4b"><span lang="EN">I just
wrote a new line in </span></span><span lang="EN-US">Subroutine
CoolProp_Fluid_Properties – “If (nref == new number) RefName
= “CarbonDioxide”//CHAR(0)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But it does not work. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Do you have any
recommendations for me ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Maciej Bujalski<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-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>
<pre class="moz-signature" cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy System Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI 53703 USA
P:+1.608.274.2577
<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>