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

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

asked 2017-11-28 07:36:29 -0600

updated 2017-11-28 07:58:30 -0600

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?

edit retag flag offensive 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 -0600 )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 -0600 )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 -0600 )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 -0600 )edit

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

Yi Zhang's avatar Yi Zhang  ( 2017-11-30 17:06:32 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-12-01 06:00:54 -0600

updated 2017-12-01 07:44:25 -0600

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.

edit flag offensive delete link more

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 -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: 2017-11-28 07:36:29 -0600

Seen: 269 times

Last updated: Dec 01 '17