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

Equations behind models (energy plus)

asked 2015-08-10 07:41:59 -0500

m_socha gravatar image

Hey, I have questions regarding EnergyPlus: how can I open models for example HVACTemplate:Boiler to see the code/equations input and output which goes behind them. Are the submodels/objects written in C++ or ruby or different language? And the last question where can i create new or adopt existing objects (models). Best regards, Gosia

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
7

answered 2015-08-10 08:20:45 -0500

updated 2015-08-10 08:22:28 -0500

The easiest way to find out the algorithm for each model is to look at the Engineering Reference which is available in two places:

http://nrel.github.io/EnergyPlus/

https://energyplus.net/documentation

If you want to look at the specific source code, you can do that also. It is written in C++ and is available at:

https://github.com/NREL/EnergyPlus

For the boilers, I would start with the following C++ files:

https://github.com/NREL/EnergyPlus/blob/develop/src/EnergyPlus/Boilers.cc

https://github.com/NREL/EnergyPlus/blob/develop/src/EnergyPlus/BoilerSteam.cc

It is much easier to use the existing objects that are already in EnergyPlus than to create new ones but if none of the existing models matches the piece of equipment or building component or type of system that you are looking to model, you can either add or modify the source code. The instructions are here:

https://github.com/NREL/EnergyPlus

Since EnergyPlus is open source code you can modify for your own use. If you want to ultimately contribute the code back to the project so that anyone can use your model, I would suggest that you contact the development team by using the help desk so that we can guide you through the process. The helpdesk can be reached here:

http://energyplus.helpserve.com/

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

 



Question Tools

1 follower

Stats

Asked: 2015-08-10 07:41:59 -0500

Seen: 219 times

Last updated: Aug 10 '15