Snippet:EnergyPlus on Hypatia

From HUES Platform Wiki
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.

Author(s) Ralph Evins
Language Bash
Tags Hypatia
Snippet code #!/bin/bash

inpath="/mnt/project/evr/eplus" inidf=$1 epw=$2

  1. Get the right library

export LD_LIBRARY_PATH=/share/libs/glibc/2.14/lib

  1. Delete old files created by previous runs of the preprocessor

rm $inpath/$inidf-*.idf

  1. Run the preprocessor

/share/apps/EnergyPlus/EnergyPlus-8-1-0/PreProcess/ParametricPreProcessor/parametricpreprocessor "$inpath/$inidf.idf"

  1. Run each parametric version

for file in $inpath/$inidf-*.idf do

	echo runenergyplus $file $epw

done

  1. Move idf file to output directory

mv $inpath/$inidf-*.idf $inpath/Output/

  1. Delete all files with the following extensions

exts="svg shd rvaudit mtd eso eio bnd audit expidf" for ext in $exts do rm $inpath/Output/*.$ext done

Notes