Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

how to set first value of a user created trend variable in EMS

asked 2016-02-10 20:29:29 -0600

Rehan Khalid's avatar

updated 2021-02-26 09:00:29 -0600

I have created a user defined variable in EMS and want to manipulate it. How can I define its initial condition i.e. set the first value of the variable to be used by later timesteps.

My equation is: set Ts = aa@TrendValue Temp_s 1 + bb(@TrendValue Temp_a_in 1 +cc)

here Ts is the variable I created and am trying to calculate and Temp_s is the trend variable associated with it. The initial condition I want to specify is: Ts (1) = Tain (1) + deltaTss/effectiveness

aa, bb, cc and dd have been calculated using a subroutine.

I'd appreciate any help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-02-11 07:00:19 -0600

Archmage's avatar

There is no provision for initializing the data stored in an EMS trend. However, in practice the EMS trend will be filled with data during the warmup days that occur before the programs really proceeds with final simulations. The trend history gets filled at the same time the thermal history is being determined.

edit flag offensive delete link more


Thank you for that help. I appreciate it !

Rehan Khalid's avatar Rehan Khalid  ( 2016-02-11 21:09:28 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2016-02-10 20:29:29 -0600

Seen: 231 times

Last updated: Feb 11 '16