Snippet:EnergyPlus on Hypatia
|Description|| EnergyPlus is installed as a module. The following lines load the module and set an environmental variable that determines the weather file location, and should be added to the file /home/usr/.bash_profile:
module load EnergyPlus/8.1.0 export ENERGYPLUS_WEATHER=/mnt/project/usr/eplus/weather
The bash script runenergyplus (similar to RunEPlus.bat on Windows) is used to run simulations. The arguments are the IDF filename and the weather file name (without extensions).
To use parametric objects, a separate script (below) must be called to execute the parametric pre-processor. Currently this executes each model in sequence, and can only use one core per process. Since crude parallel execution (adding & to the command line) causes huge clashes due to the way runenergyplus moves input files to a common name and path. For now, for parallel execution, separate jobs must be submitted to the queue.
|Snippet code|| #!/bin/bash
inpath="/mnt/project/evr/eplus" inidf=$1 epw=$2
for file in $inpath/$inidf-*.idf do
echo runenergyplus $file $epw
mv $inpath/$inidf-*.idf $inpath/Output/
exts="svg shd rvaudit mtd eso eio bnd audit expidf" for ext in $exts do rm $inpath/Output/*.$ext done