Modifying the batch file[LINK]
Generally, the batch files set several environment variables that govern the execution of the specific program.
Table 32. Environment Variables used in Batch Files
Environment Variable Name
|
Description
|
Program Path
|
Specific or relative program path
|
Program Name
|
Name of program
|
Input_Path
|
Input Path Specification
|
Output_Path
|
Output Path Specification
|
Weather_Path
|
Weather Data Path Specification
|
Or, as seen in the batch file text:
:Instructions:
: Complete the following path and program names.
: path names must have a following \ or errors will happen
set program_path =
set program_name = <specific program name will be here>
set input_path =
set output_path =
set weather_path = ..\..\WeatherData\
As the instructions in the batch file show, the path character must terminate the path specification or errors can occur. The “weather_path” specification shows an example of using a “relative” path specification. Depending on the program, this specification, of course, might change.
set weather_path = ..\..\WeatherData\
What the specification says is that above (..) and above again (..) and then “WeatherData” is where the weather data files are located. This kind of relative path would be true for most “Preprocess” programs in the installed folders. The following illustrates the folder tree: (this is usually EnergyPlusV) Preprocess Specific Program Folders WeatherData
Thus, the user can simply put the name of the weather data file onto the batch file run and it will look for that file in the installed WeatherData folder.
Modifying the batch file[LINK]
Generally, the batch files set several environment variables that govern the execution of the specific program.
Table 32. Environment Variables used in Batch FilesOr, as seen in the batch file text:
As the instructions in the batch file show, the path character must terminate the path specification or errors can occur. The “weather_path” specification shows an example of using a “relative” path specification. Depending on the program, this specification, of course, might change.
What the specification says is that above (..) and above again (..) and then “WeatherData” is where the weather data files are located. This kind of relative path would be true for most “Preprocess” programs in the installed folders. The following illustrates the folder tree: (this is usually EnergyPlusV) Preprocess Specific Program Folders WeatherData
Thus, the user can simply put the name of the weather data file onto the batch file run and it will look for that file in the installed WeatherData folder.
Documentation content copyright © 1996-2015 The Board of Trustees of the University of Illinois and the Regents of the University of California through the Ernest Orlando Lawrence Berkeley National Laboratory. All rights reserved. EnergyPlus is a trademark of the US Department of Energy.
This documentation is made available under the EnergyPlus Open Source License v1.0.