<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>

<br>Dear George,<br><br>Thank you very much for your information. I have checked your method and it works quite well.<br><br>Just now, I also noticed that in 2005, Fernando Domínguez Muñoz posted a solution on the TRNSYS forum as following (I attach it below). I also tested it and it works well. It seems that this bug has remained in TRNSYS Type60 for several years. Hope that it will be corrected in the next update version.<br><br>Thank you again.<br><br>Kind Regards,<br>Sunliang Cao<br><br><br><br><br><b><br>**************************************************************<br>Fernando Domínguez Muñoz</b> 
    <a href="mailto:trnsys-users%40engr.wisc.edu?Subject=%5BTRNSYS-users%5D%20Bug%20in%20TYPE60&In-Reply-To=" title="[TRNSYS-users] Bug in TYPE60">fdominguezm at uma.es
       </a><br>
    <i>Fri Jun 17 06:06:04 CDT 2005</i>
    <ul><li>Previous message: <a href="https://mailman.cae.wisc.edu/pipermail/trnsys-users/2005/000614.html" target="_blank">[TRNSYS-users] Equivalent Room Temperatures
</a></li><li>Next message: <a href="https://mailman.cae.wisc.edu/pipermail/trnsys-users/2005/000616.html" target="_blank">[TRNSYS-users] linking subroutines in trnsys16
</a></li><li> <b>Messages sorted by:</b> 
              <a href="https://mailman.cae.wisc.edu/pipermail/trnsys-users/2005/date.html#615" target="_blank">[ date ]</a>
              <a href="https://mailman.cae.wisc.edu/pipermail/trnsys-users/2005/thread.html#615" target="_blank">[ thread ]</a>
              <a href="https://mailman.cae.wisc.edu/pipermail/trnsys-users/2005/subject.html#615" target="_blank">[ subject ]</a>
              <a href="https://mailman.cae.wisc.edu/pipermail/trnsys-users/2005/author.html#615" target="_blank">[ author ]</a>
         </li></ul>
    <hr>  

<pre>Dear all,

modelling a system comprising several water tanks with internal heat
exchangers, I have found the following bug in the source code of TYPE60.
Where says:

(Lines 981-983)

C     IF TANK HAS HEAT EXCHANGERS, DETERMINE AND CHECK GEOMETRY
C      if((mode5.eq.1.or.mode5.eq.2.or.mode5.eq.3).and.
C     &      simtime.lt.(time0+delt/2.)) then

should said

C     IF TANK HAS HEAT EXCHANGERS, DETERMINE AND CHECK GEOMETRY
C      if((mode5.eq.1.or.mode5.eq.2.or.mode5.eq.3) then

,because the array "geom" must be re-calculated at each iteration. 

This problem comes out when using several units of TYPE60 with internal
heat exchanger.

In addition, the "pi" number's value is 

      data pi/3.14159265358979323/, g/9.81/

not

      data pi/3.14109265358979323/, g/9.81/


Best regards.

Fernando Domínguez Muñoz
University of Málaga (Spain)
</pre>****************************************************************************************<br><br><div><div id="ecxSkyDrivePlaceholder"></div><hr id="ecxstopSpelling">From: gk@aua.gr<br>To: caosunliang@msn.com<br>CC: trnsys-users@cae.wisc.edu<br>Subject: RE: [TRNSYS-users] Type60 two or more tanks in the simulation<br>Date: Sun, 25 Mar 2012 18:58:56 +0300<br><br>

<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:SimSun;}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:SimSun;}
.ExternalClass span.ecxEmailStyle18
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}
</style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black" lang="EN-US">Dear </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Sunliang Cao</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black" lang="EN-US">,</span></p><p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black" lang="EN-US">I have faced comparable problems. The solution I have found works, but I guess there must be a better one available.</span></p><p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black" lang="EN-US">What I do is I create a new Type, which is essentially a copy of the original Type and add it to TRNSYS (as if I was developing a type on my own). The number of copies equals the number of same components I want to use. Since they have different type numbers it is impossible for TRNSYS to mix them up.</span></p><p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black" lang="EN-US">This way everything works flawlessly. </span></p><p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black" lang="EN-US"> </span></p><p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black" lang="EN-US">George</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">-------------------------------------------------------------------</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">George Kyriakarakos, Agricultural Engineer</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">MSc Energy Systems & Renewable Energy Sources</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">Agricultural University of Athens,</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">Dept. of Natural Resources and Agricultural Engineering</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">Iera odos street, 75, Athens 11855, Greece</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">Tel. +30.210.5294046 (direct), Fax: +30.210.5294023</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="DE">Mobile +30.6942.046895</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="DE">e-mail: <<a href="mailto:gk@aua.gr"><span style="color:blue">gk@aua.gr</span></a>></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="DE">--------------------------------------------------------------------</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black" lang="EN-US"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> trnsys-users-bounces@cae.wisc.edu [mailto:trnsys-users-bounces@cae.wisc.edu] <b>On Behalf Of </b>SUNLIANG CAO<br><b>Sent:</b> Sunday, March 25, 2012 4:51 PM<br><b>To:</b> trnsys-users@cae.wisc.edu<br><b>Subject:</b> [TRNSYS-users] Type60 two or more tanks in the simulation</span></p></div></div><p class="ecxMsoNormal"> </p><div><p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Dear all,<br><br>During my simulation, I have found a problem that: when there are two or more water storage tanks (Type60) in the simulation, the setting of heat exchanger in one of the tanks will influence all the tanks.<br><br>Is there anyone who has a good solution for this problem?<br><br>Thank you very much.<br><br>Kind Regards,<br>Sunliang Cao </span></p></div></div></div>                                       </div></body>
</html>