[TRNSYS-users] Using operators within the Equation Component
Javier Galvan Villamarin
jgalvan at kth.se
Mon Oct 24 08:27:57 PDT 2011
Dear All.
I am using the Equation component and I need to assign values to the outputs depending on the result of a previous equation.
Could somebody please help me with this?.
Input(1) = Q_dem
Input(2) = Q_eng
Output(1) = Q_need
Output(2) = Q_aux
Output(3) = Q_rej
Q_need = Q_dem - Q_eng
If Q_need>0 assign Q_aux= Q_need AND Q_rej=0
If Q_need<0 assign Q_rej= Q_need AND Q_aux=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20111024/10448075/attachment-0005.htm>
More information about the TRNSYS-users
mailing list