#!/bin/bash
#SBATCH --job-name=OpenFOAM-2506-case
#SBATCH --partition=highcpu
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=9
#SBATCH --time=00:10:00

module load gcc/15.2.0 openmpi/5.0.8  
module load openfoam/2506

source $OPENFOAM_ROOT/etc/bashrc

# Copy cavity example case
# cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .
cd cavity

blockMesh
decomposePar -force
mpirun -np $SLURM_NTASKS icoFoam -parallel
reconstructPar

