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

Sum up Variables Over SystemTimeStep (EMS_E+)

asked 2018-11-24 09:16:20 -0600

Daniel.A gravatar image

updated 2018-11-24 16:13:47 -0600

We know that each ZoneTimeStep maybe consists of some SystemTimeStep. I want to sum a special variable over all SystemTimeSteps at a ZoneTimeStep and then report it as schedule. The @TrendSum function just provide sum of variables for several ZoneTimeSteps not for SystemTimeStep.

Sincerely Daniel.A

edit retag flag offensive close merge delete

1 Answer

Sort by ┬╗ oldest newest most voted

answered 2018-12-04 14:57:06 -0600

First, define a custom output variable at the system timestep which is summed (not averaged). Let's say the value you are reporting is "MyEMSOutput".

EnergyManagementSystem:OutputVariable ,
MyEMSOutputVariable[units], !- Name
MyEMSOutput , !- EMS Variable Name
Summed , !- Type of Data in Variable
SystemTimeStep; !- Update Frequency

Then, report it at the zone timestep frequency. EnergyPlus will accumulate (sum) the variable at the end of every system timestep and then report it at the end of every zone timestep.

*, !- Key Value
MyEMSOutputVariable, !- Variable Name
Timestep; !- Reporting Frequency
edit flag offensive delete link more


thank you for answer...I did it and it works when I just intend to have an Output:Variable. Suppose the situation I intend to set a schedule as sum of SystemTimeStep variable over ZoneTimeStep.

At first we do steps you mentioned above, Then I write this code: Set ScheduleTest=MyEMSOutputVariable and set Calling manager: EndOfZoneTimestepBeforeZoneReporting but what I Observed is:


Timestep MyEMSOutputVariable ScheduleTest

00:02 1
00:05 0
00:07 1
00:10 0 0
00:11 1
00:13 0
00:16 1
00:20 1 1

Daniel.A gravatar imageDaniel.A ( 2018-12-09 00:49:09 -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: 2018-11-24 09:16:20 -0600

Seen: 45 times

Last updated: Dec 04