[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Insert equation



Title: Insert equation

Dear Samir,

 

You could use something like the following:

 

Tsouf = 20*LT(Text,16) + (….)*GE(Text,16)*LT(Text,32) + 18*GT(Text,32)

 

With (…) = Input2-(Input3/(0.34*MAX(Input4,0.0001))

 

The LT, GE and GT are boolean equations (less than, greater or equal than, greater than) resulting in a factor of 1 if the condition is satisfied and 0 if not. So for eqample Text = 18,5 would give:

Tsouf = 20*1 + (…)*0 + 18*0 = 20

 

Good luck

Stefan de Kool

 

Met vriendelijke groeten,

Stefan de Kool

 

Cauberg-Huygen Raadgevende Ingenieurs B.V.

Bezoekadres: Boterdiep 48, 3077 AW  ROTTERDAM

Postadres: Postbus 9222, 3007 AE  ROTTERDAM

Telefoon: +31 (0)10-2443638

Fax: +31 (0)10-425 44 43

http://www.chri.nl

E-mail: s.dekool@chri.nl

 


Van: Chehal, Samir [mailto:Samir.Chehal@jacobs.com]
Verzonden: donderdag 19 april 2007 9:54
Aan: trnsys-users@engr.wisc.edu
Onderwerp: [TRNSYS-users] Insert equation

 

Hello,

I try to model this schedule :

If Text<16 Tsouff = 20

If 16<Text<32

Tsouff = Input2-(Input3/(0.34*MAX(Input4,0.0001))

If Text>32

Tsouff = 18

And I don’t know how integrate these conditions with “equation”.

Best Regards

=========================================================

NOTICE - This communication may contain confidential and privileged
information that is for the sole use of the intended recipient. Any viewing,
copying or distribution of, or reliance on this message by unintended
recipients is strictly prohibited. If you have received this message in
error, please notify us immediately by replying to the message and deleting
it from your computer.

=========================================================