2

How to include weather related objects in my parametric E+ model?

I'm building a parametric E+ simulation using jEPlus. I want to include in each idf some weather-related objects (e.g. I want to change the HVAC availability schedule, depending on which weather file is used for that simulation). Any hints for doing that? Better using EPMacro or a python code?

jack_l's avatar
305
jack_l
asked 2017-11-28 07:36:29 -0500
Julien Marrec's avatar
29.7k
Julien Marrec
updated 2017-11-28 07:58:30 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Hmm, it is a tough one! If running each weather file as a separate project is not an option for you, the only workaround I can think of now is using Python script, although it has its own limitations. What does your project do? If it involves a 'small' number of weather and availability schedule combinations, you may create the list manually using the job list file...

Yi Zhang's avatar Yi Zhang (2017-11-29 08:30:08 -0500) edit

Doing it maually is definitely an option (I just have 3-5 different climates, each one having a related group of objects in the idf). I was just looking for a smart way to do it.

jack_l's avatar jack_l (2017-11-29 10:50:52 -0500) edit
1

For 3-5 climates, you can probably run them as separate projects :-) Does the climate-dependent group of objects themselves contain parameters to be processed by EP-Macro or manipulated by jEPlus? If they are just static text blocks, Python will do. I can expand this to a answer if you want.

Yi Zhang's avatar Yi Zhang (2017-11-29 11:24:59 -0500) edit

As for now they are static group of objects. I was thinking that Python should read the job name and, depending on the number associated with the weather file, add a different text block to the idf. But maybe you had a different idea, so if you could expand it to an answer, it would be highly appreciated :)

jack_l's avatar jack_l (2017-11-30 06:01:06 -0500) edit

:-) that's exactly what I was to suggest!

Yi Zhang's avatar Yi Zhang (2017-11-30 17:06:32 -0500) edit
add a comment see more comments

1 Answer

2

Just in case someone will need it, I solved the problem in this way: I wrote a python script (as suggested by Yi Zhang), included in the parameter tree. The script performs the following simple operations: 1) it opens the in.epw file in the job folder (I thought that was easier than extracting the job name, but that's up to you); 2) it reads the location name in the first line of the epw file; 3) depending on the location name it appends a different group of objects to the in.idf file.

jack_l's avatar
305
jack_l
answered 2017-12-01 06:00:54 -0500, updated 2017-12-01 07:44:25 -0500
edit flag offensive 0 remove flag delete link

Comments

Is it possible to share how you did this in more detail or possibly a script example?

Neil Bulger's avatar Neil Bulger (2019-12-22 14:19:24 -0500) edit
add a comment see more comments