2 cd ${0%/*} ||
exit 1 # run from this directory
4 # Source tutorial run functions
5 .
$WM_PROJECT_DIR/bin
/tools
/RunFunctions
7 # Make 3D mesh in slab of cells.
8 cd wingMotion_snappyHexMesh
9 runApplication blockMesh
10 runApplication snappyHexMesh
-overwrite
12 # Make a 2D mesh by extruding a patch and solve to steady state.
13 cd ..
/wingMotion2D_simpleFoam
14 runApplication extrudeMesh
15 runApplication autoPatch
90 -overwrite
16 runApplication createPatch
-overwrite
17 runApplication simpleFoam
19 # Copy the mesh from the steady state case and map the results to a
20 # mesh motion case, then solve transient.
21 cd ..
/wingMotion2D_pimpleDyMFoam
22 cp -r ..
/wingMotion2D_simpleFoam
/constant
/polyMesh
/* constant
/polyMesh
/
24 runApplication mapFields ..
/wingMotion2D_simpleFoam
-sourceTime latestTime
-consistent
25 mv 0/pointDisplacement.unmapped
0/pointDisplacement
26 runApplication decomposePar
27 runParallel pimpleDyMFoam
3
28 runApplication reconstructPar
30 # ----------------------------------------------------------------- end-of-file