OpenFOAM® System Requirements

OpenFOAM®  System Requirements

Minimum recommended versions

  • gcc: 4.8.5
  • cmake: 3.3 (required for ParaView and CGAL build)
  • boost: 1.48 (required for CGAL build)
  • fftw: 3.3.7 (optional - required for FFT-related functionality)
  • Qt: 5.9.3 (optional - required for ParaView build)

System requirements for Ubuntu 18.04 LTS

Note
OpenFOAM v1806 ships with ParaView 5.5.2 which has a dependency on QT5.

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 install qt5-default libqt5x11extras5-dev libqt5help5 qtdeclarative5-dev qttools5-dev libqtwebkit-dev freeglut3-dev libqt5opengl5-dev texinfo
sudo apt-get install libscotch-dev libcgal-dev
  • To check version of MPI library installed, run: mpirun --version (for Ubuntu 18.04 it will be version 2.1.1)
  • To check compiler version installed, run: gcc --version (for Ubuntu 18.04 the system version will be 7.3.0)
  • System version of cmake is 3.10.2 for Ubuntu 18.04 (cmake --version)
  • System version of CGAL library is 4.11.2 for Ubuntu 18.04 (apt-cache show libcgal-dev)
  • System version of scotch library is 6.0.4 for Ubuntu 18.04 (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)

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"

Frequently asked questions

  • Q: Compilation crashes on chemistryModule.
  • A: This happens during the compilation on Virtual machine, which is having only 1 GB of RAM set. Restart the Virtual machine with more memory e.g. 2 GB for successful compilation.
  • Q: ParaView compilation fails.
  • A: Please refer to the BUILD.md guide in ThirdParty directory or to the following questions.
  • Q: My distribution does not come with the required versions of the libraries
  • A: Follow the BUILD.md guide and compile cmake, QT5 libraries, even GCC or LLVM Clang compilers in ThirdParty directory
  • Q: How do I compile paraview with my version of QT?
  • A: Follow section Making QT in BUILD.md

./makeQt 5.9.3
./makeParaview -qt-5.9.3 5.5.2
  • Q: I run Paraview on virtual machine, which does not provide OpenGL 3.2., but only Mesa. Do I need to compile Paraview with Mesa?
  • A: Try set the following environmental variable first. Otherwise compile with Mesa libraries:

export MESA_GL_VERSION_OVERRIDE=3.2