#!/bin/bash
#SBATCH --job-name=openfoam-1906-case
#SBATCH --partition=batch
#SBATCH --time=10:00
#SBATCH --nodes=1
#SBATCH --ntasks=8

module load gcc/9.2.0 mvapich2/2.3.4 openfoam/1906_200312

source $OPENFOAM_ROOT/etc/bashrc

# Run OpenFoam
blockMesh
decomposePar -force
srun icoFoam -parallel
reconstructPar

