First time here? Check our help page!
3

Skip Warming in the simulation data exchange with Python API

Hi everyone. I am using the new EnergyPlus Python API in version 9.4. When I set the callback_begin_zone_timestep_after_init_heat_balance function from the Runtime API, I set a function to run when the simulation starts. In this way, with the Data Transfer API I obtain information on each time step and execute actions according to some calculations.

My problem starts when the Warming process is executed. During this initial stage of the simulation, the callback function is also executed, which I would like to avoid, because it hinders the information that I generate and then do a post-processing.

Is there a way to identify the beginning and the end of the Warming with the EnergyPlus Python API? Or any alternative to execute the callback function after the Warming process finishes? Thanks

hermmanhender's avatar
243
hermmanhender
asked 2020-10-27 17:38:32 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2020-11-09 09:47:22 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

Resolved.

There is a DataTransfer API function called warmup_flag() that returns 1 while the warm-up process is running and 0 when not.

hermmanhender's avatar
243
hermmanhender
answered 2020-10-30 12:00:09 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments