First time here? Check out the Help page!

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

using python code in E+

asked 7 years ago

Milad's avatar

updated 7 years ago

Hi I would like to do parametric analysis in EnergyPlus. I heard this can be done by using python code. I am wondering how can we insert python code to the E+ and how to start coding in python?

Sorry, I am beginner but I have to do it. My project scale later would be on urban- scale which is much more difficult.

Thanks!

Preview: (hide)

Comments

If you're new to coding/programming/scripting, Ruby is another language that is worth mentioning, which is used by the tool Params to modify EnergyPlus files.

MatthewSteen's avatar MatthewSteen  ( 7 years ago )

2 Answers

Sort by » oldest newest most voted
2

answered 7 years ago

You can't insert python code in the E+ model, it's the reverse: you use python to edit the idf file and then call the E+ simulation through eppy. In this case you should build your idf as usual and then use the python script to fill those fields you want to scroll in the parametric simulation.

However, as suggested by Tom, I would recommend using jEPlus, because it's a very easy tool to start with. It is also limited in its functionality, therefore you can use python scripts to cover its shortcomings. You can include python scripts in the parameter tree (i.e. use them before the E+ simulation starts, to build your idf) or in the rvx file (i.e. use them after the simulation, in the results collection phase).

Preview: (hide)
link
2

answered 7 years ago

TomB's avatar

There are many ways to do parametric analysis with energyplus. JEPlus is one, but it is not python based which you've asked for. Nonetheless, I recommend looking into it, to understand how it works and whether it suits your needs. Also, read up on eppy.

A few getting started resources

Preview: (hide)
link

Comments

1

One can use Python with jEPlus.

MatthewSteen's avatar MatthewSteen  ( 7 years ago )

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: 7 years ago

Seen: 677 times

Last updated: Feb 05 '18