First time here? Check out the Help page!

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

Editing IDF from the command line

asked 3 years ago

ChrisW's avatar

updated 3 years ago

I am using the command line to run energy plus. Is there any way we can directly modify IDF (like output meter) in the command line? My understanding is that the functions we can use in the command line are rather simple.

Preview: (hide)

3 Answers

Sort by » oldest newest most voted
1

answered 3 years ago

Use a text editor like Notepad.

Preview: (hide)
link
1

answered 3 years ago

updated 3 years ago

Just to throw in more options, you can write an OpenStudio EnergyPlus measure; this is a measure that alters an IDF file instead of an OSM file. If you save an OSW file (simple JSON file describing one or more measures and the argument values) you can run that from the command line using the OpenStudio CLI. It can just produce the IDF file, or it can also run the simulation and any reporting measures you might want.

Preview: (hide)
link

Comments

Yes OpenStudio is indeed another option. I will try it. Thank you.

ChrisW's avatar ChrisW  ( 3 years ago )
1

answered 3 years ago

If you really wanted to do this, you might choose epJSON instead of IDF and then use a JSON command-line tool (here are several for example) for JSON manipulation.

Preview: (hide)
link

Comments

Ah I never used epJSON before. I guess a text editor might work for me. Thank you!

ChrisW's avatar ChrisW  ( 3 years ago )

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: 3 years ago

Seen: 212 times

Last updated: May 11 '21