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
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@aua.gr To: caosunliang@msn.com CC: trnsys-users@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 Engineer MSc Energy Systems & Renewable Energy Sources Agricultural University of Athens, Dept. of Natural Resources and Agricultural Engineering Iera odos street, 75, Athens 11855, Greece Tel. +30.210.5294046 (direct), Fax: +30.210.5294023 Mobile +30.6942.046895 e-mail: <gk@aua.gr> --------------------------------------------------------------------
From: trnsys-users-bounces@cae.wisc.edu [mailto:trnsys-users-bounces@cae.wisc.edu] On Behalf Of SUNLIANG CAO
Dear all, |