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

How to control EnergyPlus parameters for each timestep using Python?

asked 2019-07-29 05:55:40 -0600

Arceus's avatar

I am trying to control the EnergyPlus simulation parameters for 2 Zone HVAC Data Center using Python. I want to get the output (like PUE, DEC temperature) after each timestep, calculate the input for the next timestep, and provide the input for the next simulation timestep.

I have tried using eppy package, but, it can only change the parameters after running the entire simulation.

edit retag flag offensive close merge delete

Comments

Did you manage to find something for your task? I'm currently searching for something similar but didn't find anything till now.

Eko123's avatar Eko123  ( 2020-01-20 02:34:46 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
9

answered 2019-07-29 09:47:16 -0600

Instead of using eppy, I would recommend using an EnergyPlus feature - Energy Management Systems (EMS). This replicates a Building Automation System, which at its core is a combination of:

  • sensors to measure EnergyPlus outputs (PUE, DEC temperature)
  • actuators to override standard EnergyPlus behavior (the inputs you want to set directly)
  • programs to define the logic and calculations for how sensors and actuators work together

Each EMS component can use updated information from EnergyPlus at each timestep. There are many posts on Unmet Hours regarding how to use EMS, if you search for EnergyPlus EMS in the Search or ask your question bar at the top of the page or look at posts using the ems question tag.

edit flag offensive delete link more
9

answered 2019-07-30 08:55:48 -0600

As an aside, we are actively working on enabling a feature to allow exactly what you are looking for, a Python-based EMS engine. It's still a few releases away so I'd look for alternatives, but just know that this is coming soon.

edit flag offensive delete link more

Comments

Is there an update on the Python-base EMS engine? How often are new releases?

carolyng's avatar carolyng  ( 2019-09-29 20:51:30 -0600 )edit
1

This feature is going to be a major part of our work in FY20, so be on the lookout for some capability added to the Spring release. EnergyPlus is released twice a year in March and September.

Edwin's avatar Edwin  ( 2019-09-30 11:53:41 -0600 )edit

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

4 followers

Stats

Asked: 2019-07-29 05:55:40 -0600

Seen: 1,524 times

Last updated: Jul 30 '19