First time here? Check our help page!
1

How to output variables each time step for EnergyPlus for co-simulation with external script?

Basically i need to output variables (zone air temperature, zone air humidity, etc) each time step from EnergyPlus, instead of at the end of whole simulation. By that way, external scrip can read the outputs from EnergyPlus each timestep, and make some changes by external scripts and send back to EnergyPlus for next timestep calculations. I know it can be done similarly by EMS objects in EnergyPlus. It is not easy to implement my control logics through EMS.
But instead I plan to build the coupling through external script: Python/C/C++.

building_performance's avatar
441
building_performance
asked 2017-06-20 12:11:43 -0500, updated 2017-06-20 14:40:22 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

If you want to exchange variables with EnergyPlus at the zone time step then you can either use the BCVTB (https://simulationresearch.lbl.gov/bcvtb), or export EnergyPlus as an FMU (http://simulationresearch.lbl.gov/fmu...). The documentation of both tools explain how you need to expose the inputs/outputs which should be exchanged.

For the latter, you will need a master algorithm such as PyFMI (https://pypi.python.org/pypi/PyFMI) or the BCVTB to couple the EnergyPlusFMU to your external script.

Thierry Nouidui's avatar
1.5k
Thierry Nouidui
answered 2017-06-20 16:59:25 -0500, updated 2017-06-20 17:00:27 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments