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

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

asked 2017-06-20 12:11:43 -0600

building_performance's avatar

updated 2017-06-20 14:40:22 -0600

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++.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-06-20 16:59:25 -0600

updated 2017-06-20 17:00:27 -0600

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2017-06-20 12:11:43 -0600

Seen: 490 times

Last updated: Jun 20 '17