OpenFOAM® System Requirements

OpenFOAM®  System Requirements

Minimum recommended versions

  • gcc: 4.8.0
  • cmake: 2.8.11 (required for ParaView and CGAL build)
  • boost: 1.48 (required for CGAL build)
  • Qt: 4.7.2 (optional - required for ParaView build)

System requirements for Ubuntu OS

Install the dependencies by copying and pasting the following lines to the command line:

sudo apt-get install build-essential flex bison cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev
Paralelisation OpenMPI library together with Scotch and GCAL libraries can be compiled from the ThirdParty directory or the system versions can be installed:

sudo apt-get install libscotch-dev libcgal-dev
  • To check version of MPI library installed, run: mpirun --version (for Ubuntu 15.10 it will be version 1.6.5)
  • To check compiler version installed, run: gcc --version (for Ubuntu 15.10 the system version will be 5.2.1)
  • System version of cmake is 3.2.2 for Ubuntu 15.10 (cmake --version)
  • System version of CGAL library is 4.6.1 for Ubuntu 15.10 (sudo apt-cache show libcgal-dev)
  • System version of scotch library is 5.1.12b for Ubuntu 15.10 (sudo apt-cache show libscotch-dev)
  • The GCC compiler is used as the default, with additional support for Intel ICC (from version 15.0.3) and LLVM Clang (from version 3.4)

System requirements for OpenSUSE Tumbleweed OS

Install the dependencies by copying and pasting the following lines to the command line:

sudo zypper install -t pattern devel_C_C++
sudo zypper install cmake boost-devel gnuplot mpfr-devel openmpi-devel glu-devel
sudo zypper install libQtWebKit-devel libqt4-devel qt4-assistant-adp-devel qt4-x11-tools
This installs
  • MPI library: openmpi 1.8.8
  • gcc:5.2.1
  • cmake: 3.3.2
  • CGAL: 4.7-1.2

Check that the openmpi installation can be found, e.g.

mpicc --show
This should display a complete compilation line. Above command is used in OpenFOAM+ to obtain the compilation and link options. If the command cannot be found, the following lines need to be added to the user’s $HOME/.bashrc:

export PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/mpi/gcc/openmpi/lib

Using IntelMPI

To run with IntelMPI, for any version above IntelMPI 5.1, e.g. 5.1, 2017.1, etc., use the LD_PRELOAD environment variable to pre-load the appropriate Intel® MPI binding library. For more details, see INTELMPI release note page 13 The following line must be added to the user’s $HOME/.bashrc

export LD_PRELOAD="libmpi.so"