Skip to content

Commit

Permalink
Merge pull request NREL#7509 from NREL/CurrentEnvironment_EMSGuide_7303
Browse files Browse the repository at this point in the history
Add explanation for CurrentEnvironment built-in EMS variable in ApplicationGuideEMS.pdf [NREL#7303]
  • Loading branch information
mjwitte authored Sep 23, 2019
2 parents 60ed720 + c745104 commit f3b4e41
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,16 @@ \subsection{Built-In Variables}\label{built-in-variables}
IsRaining & 0 (= no) or 1 (= yes) \tabularnewline
ZoneTimeStep & Durating of the zone timestep in hours \tabularnewline
SystemTimeStep & Current duration of the system timestep in hours \tabularnewline
CurrentEnvironment & Integer index for the current environment period (sizing periods and run periods accumulate throughout the run) \tabularnewline
CurrentEnvironment & Integer index for the current environment period (sizing periods and run periods accumulate throughout the run). \tabularnewline
Null & Special structure that stops an actuator from overriding control \tabularnewline
ActualDateAndTime & A simple sum of the values of the date/time function. Could be used in random seeding. \tabularnewline
ActualTime & A simple sum of the values of the time part of the date/time function. Could be used in random seeding. \tabularnewline
WarmupFlag & 0 (= not during warmup) or 1 (= during warmup) \tabularnewline
\bottomrule
\end{longtable}

For the built-in variable CurrentEnvironment, it depends on how many SizingPeriod modules and RunPeriod modules are activated in the idf file. For example, if there are two SizingPeriod:DesignDay objects (winter, then summer), plus one each of SizingPeriod:WeatherFileDays, SizingPeriod:WeatherFileConditionType, and RunPeriod are all specified, then the index for each one is: 1 for heating design day, 2 for cooling design day, 3 for SizingPeriod:WeatherFileDays, 4 for SizingPeriod:WeatherFileConditionType, and 5 for RunPeriod. For accurate index values, please check in the eplusout.sql file (the table of EnvironmentPeriods) or refer to the order of the Environment reports in the eio output.

\subsection{Trend Variables}\label{trend-variables}

Trend variables are used to log data over time. They hold the history of Erl variables from previous zone timesteps. You create trend variables with an EnergyManagementSystem:TrendVariable input object,~ each of which declares a user-defined Erl trend variable and maps it to a global Erl variable for logging.
Expand Down

0 comments on commit f3b4e41

Please sign in to comment.