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,14 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
runApplication topoSet -constant
# Split the mesh to generate the ACMI coupled patches
runApplication createBaffles -overwrite
#------------------------------------------------------------------------------

View File

@ -0,0 +1,26 @@
#!/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/
# Meshing
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 moveDynamicMes
#runApplication moveDynamicMesh -checkAMI
#------------------------------------------------------------------------------

View File

@ -0,0 +1,30 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication surfaceFeatures
runApplication foamyHexMesh
# Collapse only patch faces from incomplete conformation
runApplication -s indirectPatchFaces \
collapseEdges -collapseFaceSet indirectPatchFaces -latestTime -overwrite
# Collapse small edges and sliver faces
runApplication -s collapseFaces \
collapseEdges -collapseFaces -latestTime -overwrite
runApplication checkMesh -allTopology -allGeometry -latestTime
latestTime=`foamListTimes -latestTime`
# Move the mesh into polyMesh
rm -rf constant/polyMesh
mv "${latestTime}"/polyMesh constant
# Clean up intermediate meshes
rm -r [1-9]*
#------------------------------------------------------------------------------