#!/bin/bash
#SBATCH --job-name=OpenFOAM-2006-case
#SBATCH --partition=batch
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=8
#SBATCH --time=00:10:00

module load gcc/9.2.0  mvapich2/2.3.4 openfoam/2006_201012

cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity/* .

source $OPENFOAM_ROOT/etc/bashrc

blockMesh
decomposePar -force
srun icoFoam -parallel
reconstructPar