2 cd ${0%/*} || exit 1 # run from this directory
4 # Source tutorial run functions
5 . $WM_PROJECT_DIR/bin/tools/RunFunctions
9 # create the underlying block mesh
10 runApplication blockMesh
12 # create the set for the obstacles
13 runApplication setSet -batch createObstacle.setSet
14 mv log.setSet log.setSet1
16 # create the obstacles - add obstacle patches to wallFilm patch
17 runApplication subsetMesh c0 -patch wallFilm -overwrite
19 # split the obstacle patches into cube[1-6]_patch[1-6]
20 echo "running patchifyObstacles"
21 ./patchifyObstacles > log.patchifyObstacles 2>&1
23 # Create the wall film region via extrusion
24 runApplication extrudeToRegionMesh -overwrite
26 # Fine tuning of U and T boundary conditions
27 runApplication changeDictionary
29 # Copy the system settings over to the wall film region
30 rm -rf system/wallFilmRegion
31 cp -r system/wallFilmRegion.org system/wallFilmRegion
33 find ./0 -maxdepth 1 -type f -exec \
34 sed -i "s/wallFilm/\"(region0_to.*)\"/g" {} \;
37 paraFoam -touch -region wallFilmRegion