#!/bin/sh
cd "${0%/*}" || exit                                # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions        
#------------------------------------------------------------------------------

restore0Dir

gmshToFoam hydrofoil.msh

createPatch -overwrite

nProc=$(getNumberOfProcessors)

decomposePar

mpirun -np $nProc pimpleFoam -parallel

reconstructPar



#------------------------------------------------------------------------------
