<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Kent,<br>
 I think that the DLL you are running and the Fortran code that you
attached are not quite the same. I had to make a few changes in the
source code before I was able to run the project that you sent. When I
did run the project, I got an error when the variable PRPIPEFILM got
set to a negative number, then got raised to a non integer power during
the Type's iteration. The offending equation is:<br>
<br>
NUPIPEFILM=(0.6+0.387*RAPIPEFILM**(1./6.)/(1+(0.559/PRPIPEFILM)**(9./16.))**(8./27.))**2.<br>
<br>
I hope that helps...<br>
David<br>
<br>
<br>
Kent Beason wrote:
<blockquote
 cite="mid:688E76EF1AC6264585B5E83A98109DAA130320@POSTAL.SCHLITTERBAHN.NB"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
  <title>TRNSYS Training confirmation</title>
  <o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="country-region">
  <o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style></o:SmartTagType></o:SmartTagType>
  <div class="Section1">
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">I am having
trouble with a pond component,
Type 230.  I keep getting an error regarding the psychrometrics
subroutine,
that the subroutine has been called with a wet bulb temp above the max
wet bulb
temp for the given pressure right after the sim starts.  Any
suggestions on
where the problem may be?<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 face="Times New Roman" size="3"><span style="font-size: 12pt;">
  <hr tabindex="-1" align="center" size="3" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font
 face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma;"> Kent Beason <br>
  <b><span style="font-weight: bold;">Sent:</span></b> Monday, February
25, 2008
5:21 PM<br>
  <b><span style="font-weight: bold;">To:</span></b> David Bradley<br>
  <b><span style="font-weight: bold;">Subject:</span></b> Pond component</span></font><o:p></o:p></p>
  </div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;"><o:p> </o:p></span></font></p>
  <div id="idOWAReplyText91755">
  <div>
  <p class="MsoNormal"><font face="Times New Roman" size="2"><span
 style="font-size: 10pt;">David, </span></font><o:p></o:p></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;"> <o:p></o:p></span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Times New Roman" size="2"><span
 style="font-size: 10pt;">Attached are the studio file, list file, and
source code file of the
pond component.  The "replace" command which we last discussed
did eliminate the 2 errors at that time, but now there is 1 error
regarding
the Psychrometrics utility routine and the simulation crashes at
.13hour.</span></font><o:p></o:p></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;"> <o:p></o:p></span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Times New Roman" size="2"><span
 style="font-size: 10pt;">Thanks for taking a look at this, and see you
tomorrow.</span></font><o:p></o:p></p>
  </div>
  <div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;"> <o:p></o:p></span></font></p>
  </div>
  <div>
  <p class="MsoNormal"><st1:country-region w:st="on"><st1:place
 w:st="on"><font face="Times New Roman" size="2"><span
 style="font-size: 10pt;">Kent</span></font></st1:place></st1:country-region><o:p></o:p></p>
  </div>
  </div>
  </div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
***********************************************************************
Thermal Energy System Specialists (TESS), LLC 
David BRADLEY                      2916 Marketplace Drive - Suite 104 
Partner                            Madison, WI 53719 
                                   USA
P: +1.608.274.2577 
F: +1.608.278.1475
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:bradley@tess-inc.com">bradley@tess-inc.com</a> 
Web Pages:  <a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>    and      <a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a>

***********************************************************************</pre>
</body>
</html>