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

Revision history [back]

If you call the EnergyPlus CLI with the -h flag, it will display all options:

C:\EnergyPlusV9-0-1\energyplus.exe -h EnergyPlus, Version 9.0.1-bb7ca4f0da Usage: energyplus [options] [input-file] Options: -a, --annual Force annual simulation -c, --convert Output IDF->epJSON or epJSON->IDF, dependent on input file type ... (truncated) ... Example: energyplus -w weather.epw -r input.idf

The -c or --convert option is used to generate an epJSON file from an IDF. So you can do:

C:\EnergyPlusV9-0-1\energyplus.exe -c in.idf

and it will output the in.epJSON file. Note that it still runs the energy simulation in addition to converting the input file, so if you only want to convert the file, you might modify the IDF so that it doesn't run an annual simulation.

Finally, you can now run the epJSON file like so:

C:\EnergyPlusV9-0-1\energyplus.exe -r in.epJSON

If you call the EnergyPlus CLI with the -h flag, it will display all options:

C:\EnergyPlusV9-0-1\energyplus.exe -h
EnergyPlus, Version 9.0.1-bb7ca4f0da
Usage: energyplus [options] [input-file]
Options:
  -a, --annual                 Force annual simulation
  -c, --convert                Output IDF->epJSON or epJSON->IDF, dependent on
                               input file type
   ...
   (truncated)
   ...
Example: energyplus -w weather.epw -r input.idf

The -c or --convert option is used to generate an epJSON file from an IDF. So you can do:

C:\EnergyPlusV9-0-1\energyplus.exe -c in.idf

and it will output the in.epJSON file. Note that it still runs the energy simulation in addition to converting the input file, so if you only want to convert the file, you might modify the IDF so that it doesn't run an annual simulation.

Finally, you can now run the epJSON file like so:

C:\EnergyPlusV9-0-1\energyplus.exe -r in.epJSON

If you call the EnergyPlus CLI with the -h flag, it will display all options:

C:\EnergyPlusV9-0-1\energyplus.exe -h
EnergyPlus, Version 9.0.1-bb7ca4f0da
Usage: energyplus [options] [input-file]
Options:
  -a, --annual                 Force annual simulation
  -c, --convert                Output IDF->epJSON or epJSON->IDF, dependent on
                               input file type
   ...
   (truncated)
   ...
Example: energyplus -w weather.epw -r input.idf

The -c or --convert option is used to generate an epJSON file from an IDF. IDF (and vice versa). So you can do:

C:\EnergyPlusV9-0-1\energyplus.exe -c in.idf

and it will output the in.epJSON file. Note that it still runs the energy simulation in addition to converting the input file, so if you only want to convert the file, you might modify the IDF so that it doesn't run an annual simulation.

Finally, you can now run the epJSON file like so:

C:\EnergyPlusV9-0-1\energyplus.exe -r in.epJSON

If you call the EnergyPlus CLI with the -h flag, it will display all options:

C:\EnergyPlusV9-0-1\energyplus.exe -h
EnergyPlus, Version 9.0.1-bb7ca4f0da
22.1.0-ed759b17ee, YMD=2022.05.05 09:35
Usage: energyplus [options] [input-file]
Options:
  -a, --annual                 Force annual simulation
  -c, --convert                Output IDF->epJSON or epJSON->IDF, dependent on
                               input file type
   ...
   (truncated)
   ...
--convert-only                 Only convert IDF->epJSON or epJSON->IDF,
                               dependent on input file type. No simulation
Example: energyplus -w weather.epw -r input.idf

The -c or --convert--convert-only option is used to generate an epJSON file from an IDF (and vice versa). So you can do:

C:\EnergyPlusV9-0-1\energyplus.exe -c C:\EnergyPlusV22-1-0\energyplus.exe --convert-only in.idf

and it will output the in.epJSON file. Note that it still runs the energy simulation in addition to converting the input file, so if you only want to convert the file, you might modify the IDF so that it doesn't run an annual simulation.

Finally,

Then you can now run the epJSON file like so:

C:\EnergyPlusV9-0-1\energyplus.exe C:\EnergyPlusV22-1-0\energyplus.exe -r in.epJSON

Alternatively, you can use the --convert or -c option to do both steps (convert the file and run the simulation) at the same time:

C:\EnergyPlusV22-1-0\energyplus.exe -c in.idf

If you call the EnergyPlus CLI with the -h flag, it will display all options:

C:\EnergyPlusV9-0-1\energyplus.exe C:\EnergyPlusV22-1-0\energyplus.exe -h
EnergyPlus, Version 22.1.0-ed759b17ee, YMD=2022.05.05 09:35
Usage: energyplus [options] [input-file]
Options:
  -a, --annual                 Force annual simulation
  -c, --convert                Output IDF->epJSON or epJSON->IDF, dependent on
                               input file type
   ...
   (truncated)
   ...
--convert-only                 Only convert IDF->epJSON or epJSON->IDF,
                               dependent on input file type. No simulation
Example: energyplus -w weather.epw -r input.idf

The --convert-only option is used to generate an epJSON file from an IDF (and vice versa). So you can do:

C:\EnergyPlusV22-1-0\energyplus.exe --convert-only in.idf

and it will output the in.epJSON file.

Then you can run the epJSON file like so:

C:\EnergyPlusV22-1-0\energyplus.exe -r in.epJSON

Alternatively, you can use the --convert or -c option to do both steps (convert the file and run the simulation) at the same time:

C:\EnergyPlusV22-1-0\energyplus.exe -c in.idf

If you call the EnergyPlus CLI with the -h flag, it will display all options:

C:\EnergyPlusV22-1-0\energyplus.exe -h
EnergyPlus, Version 22.1.0-ed759b17ee, YMD=2022.05.05 09:35
Usage: energyplus [options] [input-file]
Options:
  -a, --annual                 Force annual simulation
  -c, --convert                Output IDF->epJSON or epJSON->IDF, dependent on
                               input file type
   ...
   (truncated)
   ...
--convert-only                 Only convert IDF->epJSON or epJSON->IDF,
                               dependent on input file type. No simulation
Example: energyplus -w weather.epw -r input.idf

The --convert-only option is used to generate an epJSON file from an IDF (and vice versa). So you can do:

C:\EnergyPlusV22-1-0\energyplus.exe --convert-only in.idf

and it will output the in.epJSON file.

Then you can run the epJSON file like so:

C:\EnergyPlusV22-1-0\energyplus.exe -r in.epJSON

Alternatively, you can use the --convert or -c option to do both steps (convert the file and run the simulation) at the same time:

C:\EnergyPlusV22-1-0\energyplus.exe -c in.idf