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

IDF files in openstudio output folders

asked 2016-05-30 16:05:04 -0500

Maryam's avatar

updated 2016-05-31 01:51:39 -0500

I wanted to know if I can use the IDF file in OpenStudio output folders to edit some simulation parameters in energyplus; and will the changes in IDF file affect the OpenStudio model as well?

If so, could you please let me know which of the IDF files is the right one to use? Because After running simulation in OpenStudio, I have two output folders which have the IDF files. One is under 3-Userscript-0 and the other is under 4-EnergyPlusPreProcess-0.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2016-05-31 01:50:02 -0500

updated 2016-05-31 01:52:00 -0500

  • The file that gets simulated is the last one you see: out.idf at the root of 4-EnergyPlusPreProcess-0.
  • As Amir pointed out, changes to the IDF file generated by OpenStudio will not back-propagate. So that's fine to use the generated IDF file, change that, simulate it again until you fix a bug. But it's not an interactive workflow: if you change the OSM again, you'd have to redo these changes.
  • If you really need to make changes that you cannot do in OpenStudio purely, the typical thing to have an interactive process where you can still modify the OpenStudio OSM file is to write an EnergyPlus Measure. You can find some information about EnergyPlus Measures in the Measure Writer's Reference Guide
edit flag offensive delete link more

Comments

is a measure that reads that modified IDF possible ? obviously it would not do all e+ objects, but within the constraints of what OS can import from an IDF, how hard would it be to write the measure that reads out.idf and updates the .osm ?

TomB's avatar TomB  ( 2016-05-31 06:42:38 -0500 )edit

OS doesn't reverse translate a lot of objects so it'd be almost pointless until you're just importing basic stuff such as schedules, or until a strong effort is done on reverse translating (not DOE's priority right now). So not sure why you would do that but that's easy to do using a terminal or a measure for that matter...

workspace = OpenStudio:Workspace:load("Path/myfile.idf").get rt = OpenStudio::EnergyPlus::ReverseTranslator.new osm = rt.translateWorkspace(library)

Julien Marrec's avatar Julien Marrec  ( 2016-05-31 07:56:13 -0500 )edit

Thank you Julien!

Maryam's avatar Maryam  ( 2016-06-01 11:47:24 -0500 )edit
2

answered 2016-05-30 17:23:39 -0500

Changes you make to the IDF file will not back-propagate to the OpenStudio model.

edit flag offensive delete link more

Comments

Thank you Amir!

Maryam's avatar Maryam  ( 2016-06-01 11:47:45 -0500 )edit

Your Answer

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

Add Answer

Careers

Question Tools

Stats

Asked: 2016-05-30 16:05:04 -0500

Seen: 708 times

Last updated: May 31 '16