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

Re: [TRNSYS-users] if equations



Sherif,

  It is almost always possible to set such things up using boolean operators in equations that you combine together. To write the example conditional statement in your email you might do:

isOcc = GT(occ,0.001)
PPDsmall = LT(PPD,6)
categoryA = AND(isOcc,PPDsmall)

but of course you can combine them all into one equation if you want:

categoryA = AND(GT(occ,0.001),LT(PPD,6))

The result of the equations categoryA will be 1 if both of the other conditions are met and 0 otherwise. You can then feed the value of categoryA into an integrator to find out how much time during the year your building was in that condition

kind regards,

 David




On 07/17/2021 03:44, SHERIF SAIED via TRNSYS-users wrote:
IMG-20210716-WA0042.jpg
I want to make like this table in trnsys using some functions for greater than or smaller than in equator. for example if PPD < 6 and signal of occ.=1 then count me the hours for this condition on all year and so on ...How are these equations to be like? and if I need to use a specific type for getting this or just using the equator?
Regards,
Sherif
Sherif Saied.
Tel: (+2)01004419468 / (+2)01124348957


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA

P:+1.608.274.2577
d.bradley@tess-inc.com

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