[TRNSYS-users] Type60 two or more tanks in the simulation

SUNLIANG CAO caosunliang at msn.com
Sun Mar 25 11:14:42 PDT 2012




Dear George,

Thank you very much for your information. I have checked your method and it works quite well.

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.

Thank you again.

Kind Regards,
Sunliang Cao





**************************************************************
Fernando Domínguez Muñoz 
    fdominguezm at uma.es
       

    Fri Jun 17 06:06:04 CDT 2005
    Previous message: [TRNSYS-users] Equivalent Room Temperatures
Next message: [TRNSYS-users] linking subroutines in trnsys16
 Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
      

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)
****************************************************************************************

From: gk at aua.gr
To: caosunliang at msn.com
CC: trnsys-users at cae.wisc.edu
Subject: RE: [TRNSYS-users] Type60 two or more tanks in the simulation
Date: Sun, 25 Mar 2012 18:58:56 +0300



Dear Sunliang Cao,I have faced comparable problems. The solution I have found works, but I guess there must be a better one available.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.This way everything works flawlessly.  George -------------------------------------------------------------------George Kyriakarakos, Agricultural EngineerMSc Energy Systems & Renewable Energy SourcesAgricultural University of Athens,Dept. of Natural Resources and Agricultural EngineeringIera odos street, 75, Athens 11855, GreeceTel. +30.210.5294046 (direct), Fax: +30.210.5294023Mobile +30.6942.046895e-mail: <gk at aua.gr>--------------------------------------------------------------------   From: trnsys-users-bounces at cae.wisc.edu [mailto:trnsys-users-bounces at cae.wisc.edu] On Behalf Of SUNLIANG CAO
Sent: Sunday, March 25, 2012 4:51 PM
To: trnsys-users at cae.wisc.edu
Subject: [TRNSYS-users] Type60 two or more tanks in the simulation Dear all,

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.

Is there anyone who has a good solution for this problem?

Thank you very much.

Kind Regards,
Sunliang Cao  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20120325/2a48ca80/attachment-0001.htm>


More information about the TRNSYS-users mailing list