[TRNSYS-users] String information in Type parameters

David BRADLEY d.bradley at tess-inc.com
Mon Nov 26 13:07:48 PST 2012


María,
   The short answer is "no, not really." Parameters are intended to be 
numerical values. The "string" option in the parameter list of units is 
for the situation in which you have defined a variable name that is set 
to a numerical value. You are on the right track with defining special 
cards in the proforma. The Type itself will need to be able to accept a 
LABELS statement. The first special card would be always set to:

LABELS 1

then another special card would be set to the user-defined value. You 
can look at the way that Type62 and Type155 are done both at the 
proforma level and at the source code level.

Kind regards,
  David


On 11/23/2012 11:28, Maria Ros Izquierdo wrote:
> Dear Sir,
>
> I would like to include string information as a parameter in a cycle. 
> Is that possible? I defined a proforma to include it, and changed the 
> source code to jump that new parameter. However, when TRNSYS performs 
> the type_check, it detects the string information as a Variable, and 
> fails. Is there any code or reserved work to include string 
> information apart from comments? I also tried to include them as 
> Special cards, but TRNSYS fails again. I require that the information 
> could be updated by the user.
>
> Thanks in advance for your help,
>
> Best Regards,
>
> María
>
> -- 
> María Ros Izquierdo.
> Dept. Computer Science and A.I.
> ETSI Informática y de Telecomunicación
> University of Granada
> 18071- Granada (Spain)
> Tel. +34-958241774
>
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://mailman.cae.wisc.edu/listinfo/trnsys-users

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20121126/9bbd2827/attachment-0001.htm>


More information about the TRNSYS-users mailing list