The official release of the Modelica Buildings Library that can be downloaded at simulationresearch.lbl.gov/modelica/download.html contains all binaries required to simulated the models in Buildings.ThermalZones_9_6_0. You should not have to do any other installations or settings and skip the instructions below.
However, binaries can also be downloaded and installed either using an installation script or
using a manual installation.
This is only required for users who clone the Buildings
library from github.
Developers may install or build these binaries individually.
There are three different binaries:
To install or build these libraries, proceed as described below.
If the Buildings library is cloned from github, then the EnergyPlus libraries need to be installed by running
Buildings/Resources/src/ThermalZones/install.py --binaries-for-os-only
To install the binaries for all operating systems, omit the flag --binaries-for-os-only
.
Rebuilding this library requires CMake to be installed.
To rebuild the library, run
cd modelica-buildings rm -rf build && mkdir build && cd build && \ cmake ../ && cmake --build . --target install && \ cd .. && rm -rf build
Rebuilding this library requires CMake to be installed.
To rebuild the library, run
cd Buildings/Resources/src/fmi-library rm -rf build && mkdir build && \ cd build && cmake .. && cmake --build . && \ cd .. && rm -rf build
Alternatively, instead of using install.py
,
the binaries can be downloaded from the following links:
Operating system | Link |
---|---|
Linux | https://spawn.s3.amazonaws.com/custom/Spawn-light-0.5.0-ab07bde9bb-Linux.tar.gz |
Windows | https://spawn.s3.amazonaws.com/custom/Spawn-light-0.5.0-ab07bde9bb-win64.zip |
To install, proceed as follows:
Operating system | Link |
---|---|
Linux |
Run from a terminal wget https://spawn.s3.amazonaws.com/custom/Spawn-light-0.5.0-ab07bde9bb-Linux.tar.gz; tar xzf Spawn-light-0.5.0-ab07bde9bb-Linux.tar.gz; export PATH=${PATH}:`pwd`/Spawn-light-0.5.0-ab07bde9bb-Linux/bin
and restart your Modelica environment. You may put the last line in your |
Windows |
|
Modelica tries to invoke spawn-0.5.0-ab07bde9bb[.exe]
in this order:
Buildings[ x.y.z]/Resources/bin/spawn-0.5.0-ab07bde9bb/linux64/bin/spawn-0.5.0-ab07bde9bband on Windows, it searches for
Buildings[ x.y.z]/Resources/bin/spawn-0.5.0-ab07bde9bb/win64/bin/spawn-0.5.0-ab07bde9bb.exewhere
Buildings[ x.y.z]
is the installation folder of the Modelica Buildings Library.
This file is distributed with the Modelica Buildings Library installation,
together with all files needed to translate and simulate a model in a Modelica environment.
SPAWNPATH
for
spawn-0.5.0-ab07bde9bb[.exe]
.
PATH
for
spawn-0.5.0-ab07bde9bb[.exe]
.
If none of this succeeds, it will stop with an error.