Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
languagebash
titleserial Serial job based on cavity tutorial
collapsetrue
#!/bin/bash#SBATCHbash
#SBATCH --time 1:00:00
#SBATCH --nodes 1 
#SBATCH --tasks-per-node 96 96 
#SBATCH -p standard96:test
#SBATCH --job-name=of_test_job
#SBATCH --output=outlog/ol-%x.%j.out
#SBATCH --error=outlog/ol-%x.%j.err
 
export I_MPI_FALLBACK=0
export I_MPI_DEBUG=6
export I_MPI_FABRICS=shm:ofi
export I_MPI_OFI_PROVIDER=psm2
export I_MPI_PMI_LIBRARY=libpmi.so

#-------------------------------------- 
module load gcc/9.2.0
module load openmpi/gcc.9/3.1.5
module load openfoam/gcc.9/5

# initialize WorkingOpenFOAM Directoriesenvironment
#---------------------
WORKDIR=$TMPDIR/openfoam# initialize OpenFOAM environment
source $WM_PROJECT_DIR/etc/bashrc
.source ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions  # Tutorial run functions
## provides fcts like runApplication
 
# set working directory
#---------------------
WORKDIR="$(pwd)"

# get and open example
#---------------------
cp -r $WM_PROJECT_DIR/tutorials/incompressible/icoFoam/cavity $WORKDIR/
cd cavity
$WORKDIR 
# run script with OpenFOAMseveral incases parallel
#------------------------------
runApplication./Allrun
decomposePar
runParallel# pimpleFoamrun 
#clean the work directorysingle case
#----------------------------
rm -rf processor*


#cd cavity
#runApplication blockMesh
#icoFoam > icoFoam.log 2>&1

Some important advice when running OpenFOAM on a supercomputer

...