Adnan,
There is also an AND() function available. The function returns
a 1 if both the first and second arguments are 1. For instance:
zz = AND(x,y)
zz will be 1 if both x and y are 1.
There is a full list of functions in the 06-TRNEdit.pdf manual
(section 6.3.9.1)
kind regards,
David
On 02/17/2019 22:45, adnan rasheed via
TRNSYS-users wrote:
Thanks Jeff,
The detail is like that...
Case 1
EQUATION Editor
Weather data --------------------------------- Solar
radiation Win_id_1
= 0
Win_id_2 = 1
Win id =
GT(Solar_R,100)*Win_ID_1+(LT(Solar_R,100))*Win_ID_2 ----------------------------------------------------------Type
56 input (for controlling Window)
Case 2
EQUATION Editor
Win_id_1
Weather data----------------------------------- Temp
Win_id_2
Win id = GT(Temp,20)*Win_ID_1+(LT(Temp,20))*Win_ID_2
BOTH CASE 1 AND 2 WORKS FINE.
Case 3
now case three i want to control both temp and solar
radiation combine and need to get one output for TYPE 56
Like when temp > 20 and solar radiation > 100
output should be 0.. and when temp < 20 and solar
radiation < 100 out put should be 1
Hope this explanation will help.
Thank you very much for looking into my problem.
Regards
Adnan
|
Sender notified by
Mailtrack 02/16/19,
12:56:33 PM |
|
Adnan,
You didn’t give us enough information to be able to
write the equations. What happens when the radiation
is high but the temperature is low? And the opposite
condition? But we can set it up in a basic format
for you to edit:
Equations 3
SolarHigh = GT(Solar_R,100)
TempHigh = GT(Temp,100)
Win_ID =
SolarHigh*TempHigh*ID1+SolarHigh*(1-TempHigh)*
ID2+(1-SolarHigh)*TempHigh*ID3+(1-SolarHigh)*(1-TempHigh)*
ID4
Basically set up your equation to account for all 4
outcomes. Just fill in the correct ID in the equation
above and you should be good.
Jeff - TESS
Sent
from my iPhone
Hello
everyone,
i am using simulation studio's equation
editor, two equations with different
parameters set values separately, and they
work fine now i want to control two parameters
together with two equation combine how i can
do this
my equations are e.g
1) win_id_input = INT(GT(Solar_R,100)*Win_ID_1+(LT(Solar_R,100))*Win_ID_2
2)
win_id_input = INT(GT( temp,100)* Win_ID_1+(LT( temp,100))* Win_ID_2
need one out put both conditions together,
Thanks in advance
Adnan Rasheed
PhD Researcher
Kyungpook National
University
Daegu, South
Korea.
+82-102762-0105
|
Sender
notified by
Mailtrack
02/15/19,
7:45:22 PM |
|
--
Adnan Rasheed
PhD
Researcher
Kyungpook
National University
Daegu,
South Korea.
+82-102762-0105
--
Adnan
Rasheed
PhD
Researcher
Kyungpook
National University
Daegu,
South Korea.
+82-102762-0105
|
Sender notified by
Mailtrack 02/18/19,
1:45:00 PM |
|
_______________________________________________
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
F:+1.608.278.1475
d.bradley@tess-inc.com
http://www.tess-inc.com
http://www.trnsys.com
|