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

Re: [TRNSYS-users] Using operators within the Equation Component



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@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@tess-inc.com

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