This reference documentation is for the EnergyPlus™ program (version 8.1.0.009) written in Fortran using the CMake build system.
Find EnergyPlusFortran on GitHub at the following link: https://github.com/dmey/EnergyPlusFortran
EnergyPlusFortran is a fork of NREL's EnergyPlusRelease Fortran version 8.1.0.009. Some of the missing files which could not be located in the original repository above, were added from the nrgsim EnergyPlus-Fortran repository and SQLite.
EnergyPlusFortran compiles the standalone EnergyPlus™ program energyplus
plus a static library (libenergyplus.a
) containing all public functions.
To build the EnergyPlus™ executable and library, run the following commands:
$ mkdir build && cd build $ cmake .. $ cmake --build .
The energyplus
program and the libenergyplus.a
library can be found in the build
folder after compilation.
EnergyPlusFortran was tested to work on the following systems:
Make sure you have installed the Intel® Visual Studio Integration plugins or CMake will not be able to identify your compiler (No CMAKE_Fortran_COMPILER could be found
error).
Make sure that you use Intel® Command-Line Window when launching CMake - The Intel® compiler provides a command-line window with the appropriate environment variables already set (see: Using the Intel® Command-Line Window).
You may also need to specify the generator flag -G
in CMake; for example, if you are using Intel® Command-Line Window for Visual Studio 2010, then the CMake command should now be cmake -G "Visual Studio 10 2010" ..
. For more information on how to specify generators in CMake see cmake-generators.
The instructions outlined above are for compiling EnergyPlus™ without the External Interface (ExternalInterface.f90
was renamed ExternalInterface.f90_off
).