[TRNSYS-users] Fwd: Equation editor
Jeff Thornton
thornton at tess-inc.com
Mon Feb 18 08:15:29 PST 2019
Adnan,
I gave you the solution to your problem in the last email - copied below. Your case 3 is exactly the solution we listed - all you have to do is replace the ID1 to ID4 names with your WinID names that correspond to the 4 cases.
Jeff - TESS
Sent from my iPhone
> On Feb 17, 2019, at 10:45 PM, adnan rasheed via TRNSYS-users <trnsys-users at lists.onebuilding.org> wrote:
>
>
>
>
> ---------- Forwarded message ---------
> From: adnan rasheed <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>
>
>
>
> 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
>
>
>> On Fri, Feb 15, 2019 at 11:50 PM Jeff Thornton <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> 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, adnanrasheed at knu.ac.kr
>>>
>>>
>>> Sender notified by
>>> Mailtrack 02/15/19, 7:45:22 PM
>>> _______________________________________________
>>> TRNSYS-users mailing list
>>> 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, adnanrasheed at knu.ac.kr
>
>
> --
> Adnan Rasheed
> PhD Researcher
> Kyungpook National University
> Daegu, South Korea.
> +82-102762-0105
> adnan.upm.spain at gmail.com, adnanrasheed at knu.ac.kr
>
> Sender notified by
> Mailtrack 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20190218/ca1fbd9c/attachment.htm>
More information about the TRNSYS-users
mailing list