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

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Copy pipe surface from resources directory
mkdir -p constant/geometry
cp $FOAM_TUTORIALS/resources/geometry/pipe*.obj.gz constant/geometry/

runApplication surfaceFeatures
runApplication snappyHexMeshConfig  -bounds '((-26 -26 -60) (26 26 84))' -cylindricalBackground -nCells '(10 20 100)'
runApplication -s broken blockMesh -region broken -dict system/blockMeshDict


foamDictionary system/blockMeshDict -entry geometry/rotatingZone/point1 -set '(0 0 -120)'
foamDictionary system/blockMeshDict -entry geometry/rotatingZone/point2 -set '(0 0 180)'
foamDictionary system/blockMeshDict -entry geometry/outer/point1 -set '(0 0 -120)'
foamDictionary system/blockMeshDict -entry geometry/outer/point2 -set '(0 0 180)'

runApplication -s fixed blockMesh -region fixed -dict system/blockMeshDict

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