The openCARP ecosystem comprises the openCARP simulator, carputils, meshtool, meshalyzer, LimpetGUI, carputilsGUI and a number of examples as detailed here.
In the next section, we provide instructions for installing openCARP, optionally with carputils and meshtool.
Additionally, you can install the openCARP visualization tools:
The carputilGUI is a web-based interface to parametrize, run and visualize openCARP examples, but is not part of the standard openCARP installation. It can be used as a standalone tool and is not needed for running openCARP.
In this section, we provide instructions for installing the openCARP simulator, the carputils framework and meshtool.
Note for Windows users: On Windows 11, you can use openCARP via the Windows Subsystem for Linux (WSL), and follow the Linux installation instructions. Alternatively, you can use the openCARP Docker containers
If you do not wish to develop in openCARP, we advise you to install openCARP, carputils and meshtool together, using the Precompiled installation packages for Linux and macOS.
Alternatively, you can use one of the following installation methods:
If you installed openCARP without carputils, you can also find the instructions for installing carputils separately.
Before installing openCARP, install Python3 and pip.
Using your package manager would be preferable for most users.
Make sure they work by running the following commands.
python3 --version
python3 -m pip --version
For Ubuntu users: you might have to run these commands before installing your python3-pip.
add-apt-repository universe
apt-get update
We provide openCARP installation packages on our release page. Currently, they will install openCARP, carputils, meshtool, and the examples. Meshalyzer is not yet included, please install it separately.
For Ubuntu and Debian, please download the .deb package.
Note: the packages of versions <= 9.0 are compatible with Ubuntu 18.04 and 20.04, and Debian 10 (and potentially more recent distributions). The packages of openCARP versions from 10.0 to 17.0 are compatible with Ubuntu 20.04 and 22.04, and Debian 11 (and potentially more recent distributions). openCARP versions > 17.0 provide a package compatible with Ubuntu 22.04, 24.04 and Debian 12, as well as a package compatible with Ubuntu 20.04 and Debian 11. If the latest
.debpackage is not compatible with your OS version, we invite you to build openCARP from source or to use the AppImage package.
Installing the package can require to install the following packages as a prerequisite:
apt-get install git python3 python3-testresources python-is-python3
We recommand to install the package via apt-get like
cd <path-to-your-downloaded-deb-file>
apt-get update
apt-get install ./opencarp-vXX.X.deb
with XX.X the version that you've downloaded.
For RHEL, Rocky Linux, CentOS (8 or later) or Fedora (31 or later), please download the .rpm package.
We recommand to install the package via dnf like
cd <path-to-your-downloaded-rpm-file>
dnf install ./opencarp-vXX.X.rpm
with XX.X the version that you downloaded.
After installation, you can find the examples installed to /usr/local/lib/opencarp/share/examples.
If you want to later run the examples, you should first copy them in your user space, for instance with:
cp -r /usr/local/lib/opencarp/share/examples ~/opencarp-examples
If the above packages don't work for you for some reason (no support of the operating system, no superuser permissions, etc.), please use the openCARP AppImage, which is a package for any recent enough Linux-based operating system. The documentation for using the AppImage is available inside the README.md file of the AppImage package or here.
The AppImage only supports openCARP binaries, meshtool and carputils installation, so please check other components (examples and Meshalyzer) according to your needs.
Note: If you are not using carputils, and want to run simulations with MPI using a command such as
mpiexec -n 4 openCARP ..., you will in addition have to add the location of the MPI executables to your path by running the command:export PATH=/usr/local/lib/opencarp/lib/petsc/bin:${PATH}.
To finish the installation, you should now set up carputils
For macOS (10.14 or later), please download the .pkg installer. Before running the installer, call xcode-select --install on the command line (Programs -> Utilities -> Terminal).
Note: For versions of openCARP >11.0, please use the
.pkginstaller coresponding to the architecture of your computer: use thearm64installer for an Apple Silicon computer, and thex86_64installer for systems with an Intel chip. If you don't know which one to choose, click on the Apple logo on the top left of the screen, then click on "About This Mac". If your processor's name contains "Intel", then use thex86_64installer ; if it contains "Apple", use thearm64installer.
You may need to open the installer using the context menu (right click on the item and then select Open) to confirm the security warning.
After installation, you can find the examples installed to /usr/local/lib/opencarp/share/examples.
If you want to later run the examples, you should first copy them in your user space, for instance with:
cp -r /usr/local/lib/opencarp/share/examples ~/opencarp-examples
To finish the installation, you should now set up carputils
Note: If you are not using carputils, and want to run simulations with MPI using a command such as
mpiexec -n 4 openCARP ..., you will in addition have to add the location of the MPI executables to your path:export PATH=/usr/local/lib/opencarp/lib/openmpi/bin:${PATH}
If you want to use openCARP with carputils, you should also set up carputils. With the command install_carputils.sh, you can create a virtual environment containing carputils in the current directory:
install_carputils.sh
You can then activate this environment and start using carputils:
. ./venv_carputils/bin/activate
To check that carputils has been set up correctly, you can run the command cusummary, which will give you some information about the carputils settings.
You can deactivate carputils environment at any time with the command deactivate.
Note: carputils' environment will only be activated for your current session. In particular, it must be activated again if you want to use carputils in a new terminal window.
Note: alternative ways for installing carputils are available in the carputils installation section.
To confirm if the package is successfully installed, open a terminal and try the following commands.
Run openCARP binary as follows. If it prints the building information (e.g. GITtag: v10.0, etc), your openCARP is successfully installed. Enjoy the simulator!
openCARP -buildinfo
Run carputils in Python as follows. If it prints the installation location, your carputils is successfully installed. Enjoy Python coding!
python3 -c "import carputils; print(carputils)"
If you expect to change the openCARP source code, or want to use features that are not available within the precompiled packages, we suggest you follow the build instructions to install from source.
If you want to keep your host system clean but still be able to run and change openCARP, our Docker container might be most suitable for you. Docker containers should also run on Windows. See docker installation instructions for detailed instructions on how to install and use (docker/README.md) the openCARP docker containers.
If you want to install openCARP on a High-Performance Computing system, you may want to install openCARP using Spack
In addition to openCARP, carputils and meshtool, we advise you to install the openCARP visualization tools Meshalyzer and LimpetGUI:
There are tagged with installation-containers-packages, petsc, mpi, compilation, docker, spack, carputils, meshalyzer, macos, windows, hpc, cpu.
Here we display the 5 most recent questions. You can click on each tag to show all questions for this tag.
You can also ask a new question.
© Copyright 2020 openCARP project Supported by DFG and EuroHPC Contact Imprint and data protection