[TRNSYS-users] Raising flags

keilholz, werner werner.keilholz at cstb.fr
Thu Oct 25 05:29:25 PDT 2007


Hi Stefan, 

 

Here's a trick to hold a value for a given duration (just set the value of
the variable 'Duration' in the macro to 8760 if you want to keep it
forever). 

 

HTH,

 

Werner

 

  _____  

De : Stefan de Kool [mailto:S.deKool at chri.nl] 
Envoyé : jeudi 25 octobre 2007 09:43
À : trnsys-users at engr.wisc.edu
Objet : Re: [TRNSYS-users] Raising flags

 

Dear Karl,

Thanks for the idea. The problem is though that as soon as Tin gets less
than Tset again, it 'looses' its value. What i want is to keep it at Tset
untill another condition is met, but not when Tin<Tset. In fact i want to
include some form of hysteresis in a control loop. 

(PS: you can use GE instead of combining GT and EQL)

Kind regards

Stefan

 

  _____  

Van: Karl Vonderputten [mailto:karl at chromagen.com.au] 
Verzonden: woensdag 24 oktober 2007 23:27
Aan: Stefan de Kool
Onderwerp: RE: [TRNSYS-users] Raising flags

 

Hello Mr De kool

 

You could try the following to raise a flag

 

Eqns 3

Tset  = 60  ! Tset whatever set point

Tin = [9,6] ! Whatever output from whatever control card

Tout = Tset*GT(Tin, Tset)+ Tset*EQL(Tin, Tset) + Tin * LT( Tin, Tset) 

 

I included the expression in the middle because I was not sure what the
equation would do if the 

Value Tin was ever exactly equal to Tset. It may not be necessary

 

Please let me know if this was helpful

(I may like to use it later myself)

 

Regards

 

Karl Von Der Putten

 

 

 

From: Stefan de Kool [mailto:S.deKool at chri.nl] 
Sent: Thursday, 25 October 2007 1:03 AM
To: trnsys-users at engr.wisc.edu
Subject: [TRNSYS-users] Raising flags

 

Dear all,

 

Does anyone know if there is a way to 'raise flags' in trnsys? I want to
give a certain variable a value at the moment a certain temperature is
reached and to keep that variable at that value regardless of further
temperature changes.

 

Regards,

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 at chri.nl

 

 

 

 

 





****************************************************************************
********
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
****************************************************************************
********







 
 
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20071025/9893bbb8/attachment-0005.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hold_duration.zip
Type: application/octet-stream
Size: 20150 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20071025/9893bbb8/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 5894 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20071025/9893bbb8/attachment-0005.jpg>


More information about the TRNSYS-users mailing list