Openfoam on the cluster

Usage

 

module load openfoam/v11

 

Installation notes

#wget http://dl.openfoam.org/source/11

#wget http://dl.openfoam.org/third-party/11

wget https://codeload.github.com/OpenFOAM/OpenFOAM-11/tar.gz/refs/tags/version-11

mv version-11 OpenFOAM-11-version-11.tar.gz

wget https://codeload.github.com/OpenFOAM/ThirdParty-11/tar.gz/refs/tags/version-11

mv version-11 ThirdParty-11-version-11.tar.gz

 

 

tar -zxvf OpenFOAM-11-version-11.tar.gz

mv OpenFOAM-11-version-11 OpenFOAM-11

tar -zxvf ThirdParty-11-version-11.tar.gz

mv ThirdParty-11-version-11 ThirdParty-11

mv ThirdParty-11 /sw/openfoam/v11/

mv OpenFOAM-11 /sw/openfoam/v11/

##You need gcc version 5.4 or higher.

module load gcc/13.1.0

module load cmake/3.26.4

module load mpi/openmpi/4.0.2

module load library/zlib/1.2.12

module load library/boost/1.78.0gcc920

 

vi ~/.bashrc

alias of11="source source /sw/openfoam/v11/OpenFOAM-11/etc/bashrc"

of11

  1. Install Third Party

cd /sw/openfoam/v11/ThirdParty-11

./Allwmake 2>&1 | tee allwmakeLogs.txt

 

  1. Install openFOAM

alias of11="source source /sw/openfoam/v11/OpenFOAM-11/etc/bashrc"

of11

cd /sw/openfoam/v11/OpenFOAM-11

./Allwmake -j 2>&1 | tee allwmakeLogs.txt

 

Reference

https://www.cemf.ir/how-to-install-openfoam-9/

https://openfoamwiki.net/index.php/Installation/Working_with_the_Shell

https://openfoam.org/download/11-source/

 

Â