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

Revision history [back]

click to hide/show revision 1
initial version

Hi. I was doing some tests with the API and I came across some things like that.

First, you could use the api.exchange.warmup_flag () function to avoid calculations during the warm-up stage of the simulation. It is easy to use a conditional if api.exchange.warmup_flag (state) == 0: which checks for equality to 0 (the function returns 1 if it is warm-up and 0 otherwise).

Second, it sure returns all that amount of information and not the 48 measurements that you would like because you are calculating in each timestep of the simulation. You can use a conditional as follows if api.exchange.zone_time_step_number (state)% n == 0 :, where n would be equal to the timestep that you have configured in your IDF if you want hourly values.

I hope you find it useful.

Greetings.