[Beowulf] Openfoam advice
Benson Muite
benson.muite at ut.ee
Thu Mar 15 08:02:01 PDT 2018
Hi Faraz,
Last looked at OpenFOAM 4-X
https://github.com/OpenFOAM/OpenFOAM-4.x
Though development has migrated to
https://develop.openfoam.com/Development/OpenFOAM-plus
Steps I used in a bash build script for 4-X on a cluster with OpenMPI,
qt, zlib and cmake already installed are below. Scaling for OpenFOAM
depends significantly on what is being simulated.
Regards,
Benson
#!/bin/bash
cd $HOME
module purge
module load qt-4.8.6
module load openmpi-2.1.0
module load zlib-1.2.6
module load cmake-2.8.12.2
mkdir OpenFOAM8
cd OpenFOAM8
git clone https://github.com/OpenFOAM/OpenFOAM-4.x.git
git clone https://github.com/OpenFOAM/ThirdParty-4.x.git
mkdir gmp
cd gmp
wget "https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz" -O gmp-6.1.2.tar.xz
tar -xvf gmp-6.1.2.tar.xz
cd gmp-6.1.2
./configure --prefix=$HOME/OpenFOAM7/gmp/install
make
make check
make install
cd ..
cd ..
mkdir mpfr
cd mpfr
wget www.mpfr.org/mpfr-current/mpfr-3.1.5.tar.gz
tar -xvf mpfr-3.1.5.tar.gz
cd mpfr-3.1.5
./configure --with-gmp=$HOME/OpenFOAM8/gmp-6.1.2/install
--prefix=$HOME/OpenFOAM
8/mpfr/install
make
make install
cd ..
cd ..
mkdir flex
cd flex
wget
"http://sourceforge.net/projects/flex/files/latest/download?source=typ_redi
rect" -O flex-2.6.0.tar.gz
tar -xvf flex-2.6.0.tar.gz
cd flex-2.6.0
./configure --prefix=$HOME/OpenFOAM8/flex/install
make
make install
cd ..
cd ..
cd OpenFOAM-4.x
export MPI_ARCH_PATH=/storage/software/openmpi-2.1.0/
export WM_COMPILE_OPTION=-I/storage/software/openmpi-2.1.0/include
export FOAM_INST_DIR=$HOME/OpenFOAM8
export WM_CC=mpicc; export WM_CXX=mpicxx
export WM_COMPILE_OPTION=-I$HOME/OpenFOAM8/flex/install/include
foamDotFile=$FOAM_INST_DIR/OpenFOAM-4.x/etc/bashrc
[ -f $foamDotFile ] && . $foamDotFile
source etc/bashrc WM_NCOMPPROCS=1024 WM_MPLIB=SYSTEMOPENMPI
export PATH=$PATH:$HOME/OpenFOAM8/flex/install/bin
export
C_INCLUDE_PATH=/storage/software/openmpi-2.1.0/include:$HOME/OpenFOAM8/fl
ex/install/include
export
CPLUS_INCLUDE_PATH=/storage/software/openmpi-2.1.0/include:$HOME/OpenFOAM
8/flex/install/include
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib64:$HOME/OpenFOAM8/gmp/install/lib:$
HOME/OpenFOAM8/flex/install/lib
export
LIBRARY_PATH=/storage/software/zlib-1.2.6/lib:$HOME/OpenFOAM8/gmp/install
/lib:$HOME/OpenFOAM8/flex/install/lib
export
C_INCLUDE_PATH=$C_INCLUDE_PATH:/storage/software/zlib-1.2.6/include:$HOME
/OpenFOAM8/gmp/install/include
export
CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/storage/software/zlib-1.2.6/inclu
de:$HOME/OpenFOAM8/gmp/install
cd ..
cd ThirdParty-4.x
wget
"http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.
gz/download" -O boost_1_57_0.tar.gz
tar -xvf boost_1_57_0.tar.gz
mv boost_1_57_0 boost-system
./Allwmake
cd ..
cd OpenFOAM-4.x
./Allwmake
On 03/15/2018 04:16 PM, fabricio wrote:
> Em 15-03-2018 11:02, Faraz Hussain escreveu:
>> I know OpenFOAM is probably one of the most challenging and intricate
>> softwares to build and run.. I have been tasked with installing it on
>> a system to test how long some benchmark models run on 100 -> 1000
>> cores. My questions are:
>>
>> 1) Can I build this as a user, i.e non-root?
>
> Yes.
>
>> 2) Can I build it with no GUI support, i.e no paraview?
>
> Yes.
>
>> 3) What are some good benchmarks I can run that will scale to 1000 cores?
>
> Haven't run on this # of cores, maybe somebody else can help you.
>
>
> [ ]'s
> _______________________________________________
> Beowulf mailing list, Beowulf at beowulf.org sponsored by Penguin Computing
> To change your subscription (digest mode or unsubscribe) visit
> http://www.beowulf.org/mailman/listinfo/beowulf
More information about the Beowulf
mailing list