tutorials: Added the new Allmesh scripts

This commit is contained in:
Henry Weller
2018-06-10 17:40:12 +01:00
parent 49f853110b
commit 2bd229df02
11 changed files with 314 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Set application name
application=$(getApplication)
# Meshing
runApplication blockMesh
runApplication surfaceFeatures
runApplication snappyHexMesh -overwrite
runApplication createBaffles -overwrite
runApplication mergeOrSplitBaffles -split -overwrite
#------------------------------------------------------------------------------

View File

@ -0,0 +1,25 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Copy propeller surface from resources directory
cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
runApplication blockMesh
runApplication surfaceFeatures
runApplication snappyHexMesh -overwrite
# Generate face/cell sets and zones
runApplication topoSet -dict system/createInletOutletSets.topoSetDict
# Create the inlet/outlet and AMI patches
runApplication createPatch -overwrite
runApplication renumberMesh -noFields -overwrite
# Test by running moveDynamicMesh
#runApplication moveDynamicMesh -checkAMI
#------------------------------------------------------------------------------