[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: More than one Type 45 component



Juan,

The Type45 calls Type38 and you can only have one Type38 in a simulation. In
order to use 2 instances of Type45, you have to create a copy of Type45
(renaming all internal subroutines) AND a copy of Type38 (according to the
same rules). Your second Type45 (e.g. Type145) should call your second
Type38 (e.g. Type138). 

The limit on the maximum number of instances of a given Type can have
different causes:
- Some Types (e.g. online plotter and printer) use specific TRNSYS resources
(e.g. labels) which are allocated when TRNSYS is loaded so they have been
restricted (e.g. to 5 instances).
- Some Types rely on the fact that internal variables of Fortran routines
keep their value from one call to another to store variables. Those Types do
not use the S array nor the OUT array to store variables and are restricted
to ONE instance. It is the case of Type 38.

I hope this helps,

Michaël

_________________________________________________

Michaël Kummert

Solar Energy Laboratory - University of Wisconsin-Madison
1303 Engr Res Bldg, 1500 Engineering Drive
Madison, WI 53706

Tel: +1 (608) 263-1589
Fax: +1 (608) 262-8464
E-mail: kummert@engr.wisc.edu

SEL Web Site: http://sel.me.wisc.edu
TRNSYS Web Site: http://sel.me.wisc.edu/trnsys




-----Original Message-----
From: owner-trnsys@relay.doit.wisc.edu
[mailto:owner-trnsys@relay.doit.wisc.edu] On Behalf Of Juan Pablo Salazar
Sent: Monday, March 24, 2003 14:57
To: trnsys@relay.doit.wisc.edu
Subject: More than one Type 45 component


Dear TRNSYS Users,
 
I am trying to run a deck with two Type 45 components. I followed
instructions given in a previous occasion to Thomaz Borges
http://sel.me.wisc.edu/trnsys/MailingList/Archive1999-2002/msg00245.html and
made a copy of the Type45.for file, renamed it to Type145.for, renamed its
subroutine PIPE to PIPE145 and also changed all occurrences of Type45 (to
Type145) in the new Type145.for file. After rebuilding trnlib.dll and
running TRNSYS I got the same #103 error, now mentioning TYPE 145!
 
Where does TRNSYS set the maximum number of each component after all? Is
there any way to change these settings? 
 
Best regards,
Juan Pablo de L. C. Salazar