This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/tutorials/incompressible/pimpleDyMFoam/wingMotion/Allrun

33 lines
1.1 KiB
Text
Raw Normal View History

2010-11-24 23:08:12 +00:00
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Make 3D mesh in slab of cells.
cd wingMotion_snappyHexMesh
runApplication blockMesh
runApplication snappyHexMesh -overwrite
# Make a 2D mesh by extruding a patch and solve to steady state.
cd ../wingMotion2D_simpleFoam
runApplication extrudeMesh
runApplication autoPatch 90 -overwrite
runApplication createPatch -overwrite
runApplication simpleFoam
# Copy the mesh from the steady state case and map the results to a
# mesh motion case, then solve transient.
cd ../wingMotion2D_pimpleDyMFoam
2016-06-04 19:22:22 +00:00
\rm -rf constant/polyMesh
\cp -r ../wingMotion2D_simpleFoam/constant/polyMesh constant/polyMesh
2016-01-14 13:43:24 +00:00
\cp -r 0.org 0
2010-11-24 23:08:12 +00:00
runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent
mv 0/pointDisplacement.unmapped 0/pointDisplacement
2017-04-17 13:18:03 +00:00
runApplication pimpleDyMFoam
#runApplication decomposePar
#runParallel pimpleDyMFoam 2
#runApplication reconstructPar
2010-11-24 23:08:12 +00:00
# ----------------------------------------------------------------- end-of-file