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

Re: [TRNSYS-users] Keeping a value during a period



Pauline,
  There are a few Types that might help you. The first is a moving average component (either Type84 or Type939) which calculates the average value of an input over a certain period of time (for instance over the last 4 hours). The second is the "input value delay" (Type93 or Type661 in the TESS Libs). These components hold on to an input value for a desired number of timesteps before "releasing" it as an output. There are also some controllers in the TESS Libraries that have "lock-outs" (the controller must stay on or off for a certain time after changing state) and another that will calculate run-time (the time that has elapsed since its input changed state.)
Best,
 David



On 4/24/2013 08:26, Pauline GELIN wrote:

Hello,

 

I would like to modelize a manual night ventilation. For that I need to keep the value of temperature for the time X (for example 17 pm) and compare this value with a set temperature during a given period (for example a night).

 

I don’t know to keep a value in a variable during a given period. Could anyone help me?

 

I began with the following formulas but  when the condition of the first  variable is not checked it returns 0 and the third variable doesn’t return  what I want :

 

T17h = eql(mod(TIME,24),17)*temperature_zone10

periode = or(lt(mod(TIME,24),9),gt(mod(TIME,24),17))

vnat = gt(T17h,24)*periode*2

 

 

Thanks a lot for your help.

 

Best Regards,

 

Pauline GELIN

Ingénieur Conception environnementale

 

cid:image004.jpg@01CE062A.F4C2C000

 

cid:image006.jpg@01CE062A.F4C2C000

10 avenue des canuts

69120 VAULX EN VELIN

T : 04.37.45.33.33 

 

Ligne directe : 04.37.45.33.47

 

www.katene.coop

www.quadriplus-groupe.com

www.woopa.coop



_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@cae.wisc.edu
https://mailman.cae.wisc.edu/listinfo/trnsys-users

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
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