mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: tutorials: demoing mesh alignment before shm. Fixes #3409
This commit is contained in:
40
tutorials/mesh/moveDynamicMesh/rotorDisk_inclined/Allrun
Executable file
40
tutorials/mesh/moveDynamicMesh/rotorDisk_inclined/Allrun
Executable file
@ -0,0 +1,40 @@
|
||||
#!/bin/sh
|
||||
cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cp -rf \
|
||||
"$FOAM_TUTORIALS"/resources/geometry/rotorDisk \
|
||||
constant/triSurface
|
||||
|
||||
runApplication surfaceTransformPoints -rotate-angle '((1 0 0) 5)' \
|
||||
"$FOAM_TUTORIALS"/resources/geometry/rotorDisk/rotatingZone.obj \
|
||||
constant/triSurface/rotatingZone.obj
|
||||
|
||||
restore0Dir
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication surfaceFeatureExtract
|
||||
|
||||
runApplication topoSet
|
||||
|
||||
runApplication surfaceMeshExtract -featureAngle 45 -patches '(ZZZZZZ)' \
|
||||
-faceZones '(movingZone)' -extractZonePoints constant/triSurface/dummy.obj
|
||||
|
||||
foamDictionary constant/dynamicMeshDict -entry dynamicFvMesh \
|
||||
-set dynamicMotionSolverFvMesh
|
||||
foamDictionary system/controlDict -entry stopAt -set writeNow
|
||||
|
||||
runApplication moveDynamicMesh -overwrite
|
||||
|
||||
rm -rf constant/polyMesh/{sets,faceZones,pointMesh} 1
|
||||
|
||||
foamDictionary constant/dynamicMeshDict -entry dynamicFvMesh -set staticFvMesh
|
||||
foamDictionary system/controlDict -entry stopAt -set endTime
|
||||
|
||||
runApplication snappyHexMesh -overwrite
|
||||
|
||||
runApplication $(getApplication)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user