Difference between revisions of "OpenFOAM 11 on Rocky 9"
Jump to navigation
Jump to search
| Line 39: | Line 39: | ||
[definetech@head-rocky9 ThirdParty-11]$ ./Allwmake | [definetech@head-rocky9 ThirdParty-11]$ ./Allwmake | ||
| + | </pre> | ||
| + | |||
| + | == Crashed on Wes Machine with OF12 == | ||
| + | <pre> | ||
| + | # he was having problems on 12 - id also to ln -s ${mpi_dir}/lib -> lib64 as installer was searching for that | ||
| + | # OF source file | ||
| + | setenv FOAM_INST_DIR /home/apps/OpenFOAM | ||
| + | setenv foamDotFile /home/apps/OpenFOAM/OpenFOAM-12/etc/bashrc | ||
| + | setenv WM_MPLIB SYSTEMMPI | ||
| + | setenv MPI_ARCH_PATH /opt/ohpc/pub/mpi/openmpi4-gnu12/4.1.5 | ||
| + | setenv MPI_ARCH_LIB /opt/ohpc/pub/mpi/openmpi4-gnu12/4.1.5/lib | ||
| + | setenv MPI_ARCH_INC /opt/ohpc/pub/mpi/openmpi4-gnu12/4.1.5/include | ||
</pre> | </pre> | ||
Latest revision as of 21:32, 8 September 2024
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
Crashed on Wes Machine with OF12
# he was having problems on 12 - id also to ln -s ${mpi_dir}/lib -> lib64 as installer was searching for that
# OF source file
setenv FOAM_INST_DIR /home/apps/OpenFOAM
setenv foamDotFile /home/apps/OpenFOAM/OpenFOAM-12/etc/bashrc
setenv WM_MPLIB SYSTEMMPI
setenv MPI_ARCH_PATH /opt/ohpc/pub/mpi/openmpi4-gnu12/4.1.5
setenv MPI_ARCH_LIB /opt/ohpc/pub/mpi/openmpi4-gnu12/4.1.5/lib
setenv MPI_ARCH_INC /opt/ohpc/pub/mpi/openmpi4-gnu12/4.1.5/include