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 \rm
-rf constant
/polyMesh
23 \
cp -r ..
/wingMotion2D_simpleFoam
/constant
/polyMesh constant
/polyMesh
25 runApplication mapFields ..
/wingMotion2D_simpleFoam
-sourceTime latestTime
-consistent
26 mv 0/pointDisplacement.unmapped
0/pointDisplacement
27 runApplication pimpleDyMFoam
28 #runApplication decomposePar
29 #runParallel pimpleDyMFoam 2
30 #runApplication reconstructPar
32 # ----------------------------------------------------------------- end-of-file