Now pimpleDyMFoam is exactly equivalent to pimpleFoam when running on a staticFvMesh. Also when the constant/dynamicMeshDict is not present a staticFvMesh is automatically constructed so that the pimpleDyMFoam solver can run any pimpleFoam case without change. pimpleDyMFoam: Store Uf as an autoPtr for better error handling pimpleFoam: Set initial deltaT from the Courant number for improved stability on start-up and compatibility with pimpleDyMFoam ENH: pimpleFoam: Merged dynamic mesh functionality of pimpleDyMFoam into pimpleFoam and replaced pimpleDyMFoam with a script which reports this change. The pimpleDyMFoam tutorials have been moved into the pimpleFoam directory. This change is the first of a set of developments to merge dynamic mesh functionality into the standard solvers to improve consistency, usability, flexibility and maintainability of these solvers. Henry G. Weller CFD Direct Ltd. tutorials/incompressible/pimpleFoam: Updated pimpleDyMFoam tutorials to run pimpleFoam Renamed tutorials/incompressible/pimpleFoam/RAS/wingMotion/wingMotion2D_pimpleDyMFoam -> tutorials/incompressible/pimpleFoam/RAS/wingMotion/wingMotion2D_pimpleFoam
31 lines
881 B
Bash
Executable File
31 lines
881 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
|
|
|
# copy propeller surface from resources directory
|
|
cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
|
|
|
|
# - meshing
|
|
|
|
runApplication blockMesh
|
|
runApplication surfaceFeatureExtract
|
|
runApplication snappyHexMesh -overwrite
|
|
runApplication renumberMesh -overwrite
|
|
|
|
# force removal of fields generated by snappy
|
|
rm -rf 0
|
|
|
|
# - generate face/cell sets and zones
|
|
runApplication topoSet -dict system/createInletOutletSets.topoSetDict
|
|
|
|
# - create the inlet/outlet and AMI patches
|
|
runApplication createPatch -overwrite
|
|
|
|
# - test by running moveDynamicMes
|
|
#runApplication moveDynamicMesh -checkAMI
|
|
|
|
# - set the initial fields
|
|
restore0Dir
|
|
|
|
#------------------------------------------------------------------------------
|