#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

rm -rf constant/polyMesh*
rm -rf constant/case_*
rm -rf log*

source /nfs/prg/OpenFOAM/OpenFOAM-dev/etc/bashrc
foamDictionary system/controlDict -entry startFrom -set startTime
foamDictionary system/controlDict -entry endTime -set 100

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
fluent3DMeshToFoam mesh.msh
runApplication -s ofdev createBaffles -overwrite
runApplication -s ofdev foamRun -solver fluid

rm -rf constant/polyMesh
source /nfs/prg/OpenFOAM/OpenFOAM-11/etc/bashrc
. $WM_PROJECT_DIR/bin/tools/RunFunctions
fluent3DMeshToFoam mesh.msh
runApplication -s of11 createBaffles -overwrite
runApplication -s of11 foamRun -solver fluid


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