First time here? Check out the Help page!

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

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

asked 9 years ago

Rehan Khalid's avatar

updated 4 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 9 years ago

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.

Preview: (hide)
link

Comments

Thank you for that help. I appreciate it !

Rehan Khalid's avatar Rehan Khalid  ( 9 years ago )

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 9 years ago

Seen: 266 times

Last updated: Feb 11 '16