File size: 1,030 Bytes
5a600cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
mkdir 0
# Refine in the z direction 6 times
min=0
for max in 0.64 1.03 1.94 3.67 7.00 13.36
do
runApplication -s R_z_${min}_to_${max} foamPostProcess -func R
foamDictionary system/refineMeshDict.z -set "zone/radius=$max" \
-output system/refineMeshDict
runApplication -s z_${min}_to_${max} refineMesh
done
# Refine in cylindrical coordinate directions 3 times
max=18.47
for min in 13.36 7.00 3.67
do
runApplication -s R_cyl_${min}_to_${max} foamPostProcess -func R
runApplication -s eRThetaZ_cyl_${min}_to_${max} \
foamPostProcess -func eRThetaZ
foamDictionary system/refineMeshDict.cyl -set "zone/innerRadius=$min" \
-output system/refineMeshDict
runApplication -s cyl_${min}_to_${max} refineMesh
done
rm -f system/refineMeshDict
#------------------------------------------------------------------------------
|