Difference between revisions of "OpenFOAM 11 on Rocky 9"

From Define Wiki
Jump to navigation Jump to search
(Created page with "Headnode Rocky 9 and OpenHPC 3 - with development tools and standard openhpc packages already installed == Pull down and extract OpenFOAM == <pre> wget -O - http://dl.openfo...")
 
Line 14: Line 14:
  
 
<pre>
 
<pre>
dnf -y install qt5-qtwebkit qt5-qtwebkit-devel
+
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
 
dnf -y install boost-devel gnuplot openmpi-devel
 +
ln -s /usr/bin/qmake-qt5 /usr/bin/qmake
 
module load  openmpi4/4.1.5
 
module load  openmpi4/4.1.5
 
# gcc version 12  
 
# gcc version 12  
Line 23: Line 24:
  
 
<pre>
 
<pre>
 +
# 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
  
 
</pre>
 
</pre>

Revision as of 17:55, 30 December 2023

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