×
Menu
Index

15.5.5. Simulation Data

Every context has access to the simulation item. The “simulation” item contains details for the current time step and information about the simulation such as the reporting interval or the time step size.
Variable
Description
context.simulation.has_feb29
Returns true if simulation is running over a leap-year.
context.simulation.year_day
Returns the year day of the simulation, index from the 1st January
context.simulation.week_day
Returns the week day type of the current simulation day, Monday = 1 etc.
context.simulation.hour
Returns the current hour.
context.simulation.minute
Returns the current minute.
context.simulation.step
Index of current time step.
context.simulation.time_step_size_mins
Returns the number of minutes in one simulation time step. {1, 2, 6, 10, 30}
context.simulation.reporting_interval_mins
Returns the reporting interval in minutes. {6, 10, 30, 60}
context.simulation.is_preconditioning
Is the current iteration part of the preconditioning period?
 
Simulation and Weather data variable are reported for the current iteration. All the other variables refer to values calculated during the previous time step.