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

Re: [TRNSYS-users] If-clause



Hello,

 

there is no if clause in the equation component. You have to create your own algorithm in the equation with the given functions GT, LT, GE, MAX like:

 

gt(T,20°C) and than multiply it with something. The output of the GT function is 0 or 1.

 

Andreas

 

-----Ursprüngliche Nachricht-----
Von: senne plessers [mailto:senne_plessers@hotmail.com]
Gesendet: Dienstag, 1. September 2009 11:50
An: trnsys-users@cae.wisc.edu
Betreff: [TRNSYS-users] If-clause

 

Dear all,
 
is it possible to create an if-clause in an equation-component that
can use to or-button in the equation?
 
For example: if T < 20°C or Hour of the day > 1000
                  than flow=...
                  else flow=...
                  end
 
Is this possible or do I have to write my own algorithm?
 
Thanks in advance.
 
Best regards,
 
Senne Plessers


Je hele online leven op één stek? Ontdek Windows Live!