2

Linux: Running EP indepently from OpenStudio 1.6.0 ?

If one wants to run EnergyPlus 8.2.0 simulations from command terminal window independently from OpenStudio by

/usr/local/share/openstudio-1.6.0/EnergyPlus-8-2-0/runenergyplus XXX.idf weatherfile.epw, this fails because because EnergyPlus expects required libraries and executables in appropriate bin sub-directories, whereas the OpenStudio installation places them in EnergyPlus-8-2-0 and PostProcess subdirectories, respectively. (This could be considered a bug in the OpenStudio installation, although this is apparently not an issue if simulations are initiated by OpenStudio)

Is there a remedy ?

OS-user-AT's avatar
2.3k
OS-user-AT
asked 2015-02-23 17:21:18 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2015-02-24 07:25:16 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

3 Answers

3

Why not use E+ directly and side-step OpenStudio?

Just make sure the following system variables are setup in bash/zsh

Ex.

export ENERGYPLUS_DIR=~/energyplus/EnergyPlus-8-2-0

export ENERGYPLUS_WEATHER=$ENERGYPLUS_DIR/WeatherData

export PATH=$PATH:$ENERGYPLUS_DIR

You can then just use:

runenergyplus XXX.idf WEATHERFILE

As of E+ v8 and onwards, the bin directory is no longer used. So 'PreProcess' and 'PostProcess' is the standard install.

scottb's avatar
542
scottb
answered 2015-02-24 07:49:21 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

If you don't "have to" run E+ simulations in a terminal (e.g. for scripting reasons), you can run the jobs on the free web server: http://server2.ensims.com. After logging on (u/p= public/test), just drag and drop the files and download full results when it finishes.

Yi Zhang's avatar
1.2k
Yi Zhang
answered 2015-02-24 07:32:53 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

the following hack provides a work-around: with admin priviledges,

(1) create subdirectories /usr/local/share/openstudio-1.6.0/EnergyPlus-8-2-0/bin /usr/local/share/openstudio-1.6.0/bin (2) copy the following files into the sub-directories:

/usr/local/share/openstudio-1.6.0/bin

Energy+.idd EnergyPlus HVAC-Diagram libbcvtb.so libepexpat.so libepfmiimport.so ReadVarsESO

/usr/local/share/openstudio-1.6.0/bin

Energy+.idd EnergyPlus HVAC-Diagram libbcvtb.so libepexpat.so libepfmiimport.so ReadVarsESO

(3) after these installation modifications simulations can be started as a normal user by

/usr/local/share/openstudio-1.6.0/EnergyPlus-8-2-0/runenergyplus   XXX.idf  weatherfile.epw

This will produce a link to Energy+.idd in the working directory, 
which has to be removed after the simulation manually, because otherwise
the next simulation run is blocked by the existing link.

APPLICATION:
In OpenStudio, not all available Output variables can be switched on or off; however by editing the idf file, more output options can be set; after this, one can directly start new simulations by program call (3).

OS-user-AT's avatar
2.3k
OS-user-AT
answered 2015-02-24 04:32:34 -0500
edit flag offensive 0 remove flag delete link

Comments

@osuserAT FYI you can use an OpenStudio Measure to add things to the model, even if they aren't exposed in the GUI yet. See the measure.rb file in this Measure for an example of how to add output variables.

aparker's avatar aparker (2015-02-24 08:51:26 -0500) edit
add a comment see more comments