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

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

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

Rehan Khalid gravatar image

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

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
2

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

Archmage gravatar image

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

Comments

Thank you for that help. I appreciate it !

Rehan Khalid gravatar image Rehan Khalid  ( 2016-02-11 21:09:28 -0500 )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

Stats

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

Seen: 156 times

Last updated: Feb 11 '16