[TRNSYS-users] Using operators within the Equation Component

David BRADLEY d.bradley at tess-inc.com
Mon Oct 24 10:06:18 PDT 2011


Javier,
   There are a number of operator arguments available. Please check the 
TRNEdit manual for a full description (section 7.3.9 if you are using 
TRNSYS16, section 6.3.9 if you are using v17). What I would recommend 
you do is to use the GT() and LT() functions to set a multiplier that 
has a value of 1 or 0. This multiplier can then be used in an equation 
that sets both Q_aux and Q_need.
Best,
  David


On 10/24/2011 10:27, Javier Galvan Villamarin wrote:
>
> 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
>
>
>
> _______________________________________________
> 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/20111024/74ca8cd7/attachment-0001.htm>


More information about the TRNSYS-users mailing list