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 createPatch
-overwrite
16 runApplication simpleFoam
18 # Copy the mesh from the steady state case and map the results to a
19 # mesh motion case, then solve transient.
20 cd ..
/wingMotion2D_pimpleDyMFoam
21 cp -r ..
/wingMotion2D_simpleFoam
/constant
/polyMesh
/* constant
/polyMesh
/
23 runApplication mapFields ..
/wingMotion2D_simpleFoam
-sourceTime latestTime
-consistent
24 mv 0/pointDisplacement.unmapped
0/pointDisplacement
25 runApplication decomposePar
26 runParallel
`getApplication` 4
27 runApplication reconstructPar
29 # ----------------------------------------------------------------- end-of-file