[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TRNSYS-users] If condition
Hello Kordou,
You can use an equation component to implement an if-condition in the
Simulation Studio. Select Assembly/Insert New Equation to do this. See
Volume 2 section 7 of the TRNSYS 16 manual for how to use equations in
TRNSYS. See also 7.3.9.1 in Volume 7 for available mathematical functions.
After defining the two temperatures you want to compare as inputs, you can
apply the if-condition in an output as output = 1 - gt(DT,limit), since you
wanted to have state 0 when DT is above the limit. The gt function returns
1 if the first expression is greater than the second, and 0 otherwise.
Kind regards,
Knut Erik
----------------------------------------------------------------------------------------------------------------------
NIVAs hovedkontor har flyttet til nye lokaler i CIENS - Forskningssenter
for miljø og samfunn; Gaustadalléen 21, 0349 Oslo. Meld deg på vårt
nyhetsbrev på www.niva.no