2

Running EnergyPlus through an API

Hello,

I'm new to EnergyPlus and was wondering if it would be possible to access it via an API?

The idea is to have the building modeled in EnergyPlus, and then to have our application (opentaps.org) access it by passing in weather data and then getting in return modeled energy use. We would then calculate the energy savings against actual meter readings, value those energy savings, and distribute payments between different groups (building owner, tenants, investor, etc.)

Do you currently have an API access? If not do you think it would make sense for us to make one for EnergyPlus?

sichen1234's avatar
143
sichen1234
asked 2020-01-30 18:06:46 -0500
shorowit's avatar
11.8k
shorowit
updated 2020-01-30 19:17:41 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

6

Nearly everyone who uses EnergyPlus interacts with it through an API.

OpenStudio is the primary API for EnergyPlus. EnergyPlus and OpenStudio are maintained by NREL. jEPlus, eppy (python), and params are other APIs for EnergyPlus that other forum users have made work.

I strongly recommend using one of the above APIs instead of making your own. It's a lot of work to just maintain an API to stay up to date with recent versions of EnergyPlus, let alone build one.

mdahlhausen's avatar
9.5k
mdahlhausen
answered 2020-01-31 09:53:58 -0500
edit flag offensive 0 remove flag delete link

Comments

Absolutely! We'd certainly use an existing API instead of trying to develop one ourselves!

I had read about OpenStudio before but thought it was more for visually modeling buildings, rather than running weather data through an existing building model to calculate the energy use. Maybe I missed something there?

Also I thought that ModelKit (params) seems to have a lot of what we're looking for. I liked that they have some prototype commercial buildings models. Has anybody had any experience working with ModelKit/Params?

sichen1234's avatar sichen1234 (2020-02-04 16:49:15 -0500) edit

The devs will mostly agree that OpenStudio is better suited for parametric modeling, instead of a single "proposed building" case. Take a look at the example files for the Parametric Analysis Tool. I have set up scenarios similar to what you describe, but to run sensitivity studies. Regarding the prototype commercial buildings, you can take a look at the 'openstudio-standards' gem.

Luis Lara's avatar Luis Lara (2020-02-05 14:59:47 -0500) edit

Thanks, Luis. That is very interesting. Actually I'm going to start a separate topic on this: https://unmethours.com/question/42673...

sichen1234's avatar sichen1234 (2020-02-05 17:25:55 -0500) edit
add a comment see more comments