2

using python code in E+

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!

Milad's avatar
261
Milad
asked 2018-02-04 13:40:40 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2018-02-05 08:20:46 -0500
edit flag offensive 0 remove flag 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 -0500) edit
add a comment see more comments

2 Answers

2

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

jack_l's avatar
305
jack_l
answered 2018-02-05 09:35:55 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
2

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

TomB's avatar
1.7k
TomB
answered 2018-02-05 00:21:29 -0500
edit flag offensive 0 remove flag delete link

Comments

1

One can use Python with jEPlus.

MatthewSteen's avatar MatthewSteen (2018-02-05 12:24:07 -0500) edit
add a comment see more comments