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 2021-05-07 17:40:35 -0600

ChrisW's avatar

updated 2021-05-11 09:48:02 -0600

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.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2021-05-11 09:49:21 -0600

Use a text editor like Notepad.

edit flag offensive delete link more
1

answered 2021-05-11 12:33:48 -0600

updated 2021-05-11 12:34:20 -0600

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.

edit flag offensive delete link more

Comments

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

ChrisW's avatar ChrisW  ( 2021-05-11 14:06:57 -0600 )edit
1

answered 2021-05-11 11:54:41 -0600

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.

edit flag offensive delete link more

Comments

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

ChrisW's avatar ChrisW  ( 2021-05-11 14:06:18 -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: 2021-05-07 17:40:35 -0600

Seen: 190 times

Last updated: May 11 '21