[TRNSYS-users] (no subject)

Brychta Markus Markus.Brychta at ait.ac.at
Mon Feb 15 06:58:53 PST 2010


Hi Salim,

you can do if conditions like this:

"GE (input1, input2) * 333 + LT(input1, input2) * 666"

Explanation:

GE... 'greater equal'
LT... 'less than'

In the first term GE(...) compares the two inputs and returns '1' if condition is true or '0' if not - Second term works the same way...
So if input1 >= input2 the function above returns 333, if not the result is 666.

Kind regards,
Markus.


DI Markus Brychta
Energy Department
Sustainable Building Technologies

AIT Austrian Institute of Technology
Österreichisches Forschungs- und Prüfzentrum Arsenal Ges.m.b.H.
Giefinggasse 2 | 1210 Vienna | Austria
T +43(0) 50550-6611 | M +43(0) 664 815 79 13| F +43(0) 50550-6613
markus.brychta at ait.ac.at<mailto:markus.brychta at ait.ac.at> | http://www.ait.ac.at<http://www.ait.ac.at/>
FN: 165088b HG Wien | UID: ATU46577208 This email and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, please notify the sender by return e-mail or by telephone and delete this message from your system and any printout thereof. Any unauthorized use, reproduction, or dissemination of this message is strictly prohibited. Please note that e-mails are susceptible to change. Österreichisches Forschungs- und Prüfzentrum Arsenal Ges.m.b.H. shall not be liable for the improper or incomplete transmission of the information contained in this communication, nor shall it be liable for any delay in its receipt.

Von: salim mokraoui [mailto:salim.mokraoui at lermab.uhp-nancy.fr]
Gesendet: Montag, 15. Februar 2010 15:53
An: trnsys-users at cae.wisc.edu
Betreff: [TRNSYS-users] (no subject)

Hi all,

I've a simple question related to the use of the equation editor in simulation studio. Can we use a condition (if) to define an output from an equation editor ? What is the syntax ? (example: if Input = x then Output = y)

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20100215/5bc6cfdc/attachment-0001.htm>


More information about the TRNSYS-users mailing list