[TRNSYS-users] Fwd: Equation editor

David BRADLEY d.bradley at tess-inc.com
Mon Feb 18 06:49:02 PST 2019


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:
>
>
> ---------- Forwarded message ---------
> From: *adnan rasheed* <adnan.upm.spain at gmail.com 
> <mailto:adnan.upm.spain at gmail.com>>
> Date: Sat, Feb 16, 2019 at 1:01 PM
> Subject: Re: [TRNSYS-users] Equation editor
> To: Jeff Thornton <thornton at tess-inc.com <mailto:thornton at tess-inc.com>>
>
>
> 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
>
> Mailtrack 
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 
> 	Sender notified by
> Mailtrack 
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 
> 02/16/19, 12:56:33 PM 	
>
>
>
> On Fri, Feb 15, 2019 at 11:50 PM Jeff Thornton <thornton at tess-inc.com 
> <mailto:thornton at tess-inc.com>> wrote:
>
>     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
>
>     On Feb 15, 2019, at 4:48 AM, adnan rasheed via TRNSYS-users
>     <trnsys-users at lists.onebuilding.org
>     <mailto:trnsys-users at lists.onebuilding.org>> wrote:
>
>>     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
>>     adnan.upm.spain at gmail.com <mailto:adnan.upm.spain at gmail.com>,
>>     adnanrasheed at knu.ac.kr <mailto:adnanrasheed at knu.ac.kr>
>>
>>
>>     Mailtrack
>>     <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>>     	Sender notified by
>>     Mailtrack
>>     <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>>     02/15/19, 7:45:22 PM 	
>>
>>     _______________________________________________
>>     TRNSYS-users mailing list
>>     TRNSYS-users at lists.onebuilding.org
>>     <mailto:TRNSYS-users at lists.onebuilding.org>
>>     http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
>
>
>
> -- 
> Adnan Rasheed
> PhD Researcher
> Kyungpook National University
> Daegu, South Korea.
> +82-102762-0105
> adnan.upm.spain at gmail.com <mailto:adnan.upm.spain at gmail.com>, 
> adnanrasheed at knu.ac.kr <mailto:adnanrasheed at knu.ac.kr>
>
>
> -- 
> Adnan Rasheed
> PhD Researcher
> Kyungpook National University
> Daegu, South Korea.
> +82-102762-0105
> adnan.upm.spain at gmail.com <mailto:adnan.upm.spain at gmail.com>, 
> adnanrasheed at knu.ac.kr <mailto:adnanrasheed at knu.ac.kr>
>
> Mailtrack 
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 
> 	Sender notified by
> Mailtrack 
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 
> 02/18/19, 1:45:00 PM 	
>
>
> _______________________________________________
> 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
F:+1.608.278.1475
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/20190218/1aee22ef/attachment.htm>


More information about the TRNSYS-users mailing list