Bugfix: added mapping methods to point patch vector fields that have pointField ...
[foam-extend-4.0.git] / tutorials / incompressible / pimpleDyMFoam / wingMotion / Allrun
bloba4ca68512c8829a6d55bc386e293c91649e8937f
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 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
24 \cp -r 0.org 0
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