Skip to content

Install OpenFOAM on workstation

Install OpenFOAM on workstation published on No Comments on Install OpenFOAM on workstation

0. Install gcc, mpich

1. Download from http://openfoam.org/

2. Put the source file and thirdparty file in the /scratch/***/OpenFOAM, unzip both

3. Modify etc/cshrc:
set foamInstall = /scratch/***/$WM_PROJECT
if use mpich, modify accordingly. remember add mpich directory to default system include/library environment.
C_INCLUDE_PATH
CPLUS_INCLUDE_PATH
LD_LIBRARY_PATH
LIBRARY_PATH

4. Download and install boost as
http://www.boost.org/doc/libs/1_61_0/more/getting_started/unix-variants.html#easy-build-and-install

5. Set WM_NCOMPPROCS for parallel compiling

6. Install openfoam as: http://openfoam.org/download/3-0-1-source/

7. To install paraview4, we need qt-4.8. However, even we indicate the library directory to our compiled qt, there is still problem says:
...undefined reference to `QListData::detach_grow(int*, int)'...
So we will compile the qt under thirdparty directory.

8. download qt-4.8.6 from https://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz.mirrorlist

9. unzip in the ThirdParty directory, modify makeQt accordingly, and run to compile

10. Now we can compile paraview by
makeParaview4 -qt-4.8.6