First time here? Check our help page!
2

Editing IDF from the command line

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.

ChrisW's avatar
121
ChrisW
asked 2021-05-07 17:40:35 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2021-05-11 09:48:02 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

3 Answers

1

Use a text editor like Notepad.

__AmirRoth__'s avatar
4.4k
__AmirRoth__
answered 2021-05-11 09:49:21 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

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.

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2021-05-11 12:33:48 -0500, updated 2021-05-11 12:34:20 -0500
edit flag offensive 0 remove flag delete link

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
add a comment see more comments
1

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.

shorowit's avatar
11.8k
shorowit
answered 2021-05-11 11:54:41 -0500
edit flag offensive 0 remove flag delete link

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
add a comment see more comments