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 -0500

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

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 gravatar imageYi 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 gravatar imagejack_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 gravatar imageYi 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 gravatar imagejack_l ( 2017-11-30 06:01:06 -0500 )edit

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

Yi Zhang gravatar imageYi Zhang ( 2017-11-30 17:06:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

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

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 



Question Tools

1 follower

Stats

Asked: 2017-11-28 07:36:29 -0500

Seen: 74 times

Last updated: Dec 01 '17