Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / tutorials / incompressible / pimpleDyMFoam / wingMotion / Allrun
blobc1939edcae0ff08f50b53792935dd6e9805c4445
1 #!/bin/sh
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/
22 cp -r 0.org 0
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