OpenFOAM 11 on Rocky 9
Jump to navigation
Jump to search
Headnode Rocky 9 and OpenHPC 3 - with development tools and standard openhpc packages already installed
Pull down and extract OpenFOAM
wget -O - http://dl.openfoam.org/source/11 | tar xvz wget -O - http://dl.openfoam.org/third-party/11 | tar xvz mv OpenFOAM-11-version-11 OpenFOAM-11 mv ThirdParty-11-version-11 ThirdParty-11
Setup software prereqs
dnf -y install qt5-qtwebkit qt5-qtwebkit-devel qt5 qt5-qttools-libs-help qt5-qttools-devel qt5-qtx11extras-devel qt5-qtxmlpatterns-devel qt5-qtsvg-devel dnf -y install boost-devel gnuplot openmpi-devel ln -s /usr/bin/qmake-qt5 /usr/bin/qmake module load openmpi4/4.1.5 # gcc version 12
Build OpenFOAM
# update the etc/bashrc file so you have
[definetech@head-rocky9 ThirdParty-11]$ grep INST_DIR ../OpenFOAM-11/etc/bashrc
# FOAM_INST_DIR is the location of the OpenFOAM installation which defaults to
export FOAM_INST_DIR=$(cd $(dirname ${BASH_SOURCE:-$0})/../.. && pwd -P) || \
export FOAM_INST_DIR=/opt/ohpc/pub/apps/openfoam/OpenFOAM11
export WM_THIRD_PARTY_DIR=/opt/ohpc/pub/apps/openfoam/ThirdParty-11
<end bashrc>
source OpenFOAM-11/etc/bashrc
[definetech@head-rocky9 ThirdParty-11]$ pwd
/opt/ohpc/pub/apps/openfoam/ThirdParty-11
[definetech@head-rocky9 ThirdParty-11]$ ./Allwmake