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 2018-02-04 13:40:40 -0600

Milad's avatar

updated 2018-02-05 08:20:46 -0600

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!

edit retag flag offensive close merge delete

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  ( 2018-02-05 12:28:35 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2018-02-05 09:35:55 -0600

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

edit flag offensive delete link more
2

answered 2018-02-05 00:21:29 -0600

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

edit flag offensive delete link more

Comments

1

One can use Python with jEPlus.

MatthewSteen's avatar MatthewSteen  ( 2018-02-05 12:24:07 -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

1 follower

Stats

Asked: 2018-02-04 13:40:40 -0600

Seen: 626 times

Last updated: Feb 05 '18