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

ChrisW's avatar

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

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

Use a text editor like Notepad.

edit flag offensive delete link more
1

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

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

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 -0500 )edit
1

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

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

1 follower

Stats

Asked: 2021-05-07 17:40:35 -0500

Seen: 154 times

Last updated: May 11 '21