1

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

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.

Rehan Khalid's avatar
197
Rehan Khalid
asked 2016-02-10 20:29:29 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2021-02-26 09:00:29 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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.

Archmage's avatar
7.2k
Archmage
answered 2016-02-11 07:00:19 -0500
edit flag offensive 0 remove flag delete link

Comments

Thank you for that help. I appreciate it !

Rehan Khalid's avatar Rehan Khalid (2016-02-11 21:09:28 -0500) edit
add a comment see more comments