[TRNSYS-users] if equations

David BRADLEY d.bradley at tess-inc.com
Mon Jul 19 05:22:07 PDT 2021


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 at 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 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/20210719/3833905c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMG-20210716-WA0042.jpg
Type: image/jpeg
Size: 64215 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20210719/3833905c/attachment-0002.jpg>


More information about the TRNSYS-users mailing list