splitBaffles identifies baffle faces; i.e., faces on the mesh boundary which share the exact same set of points as another boundary face. It then splits the points to convert these faces into completely separate boundary patches. This functionality was previously provided by calling mergeOrSplitBaffles with the "-split" option. mergeBaffles also identifes the duplicate baffle faces, but then merges them, converting them into a single set of internal faces. This functionality was previously provided by calling mergeOrSplitBaffles without the "-split" option.
22 lines
625 B
Bash
Executable File
22 lines
625 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Copy propeller surfaces from resources directory
|
|
cp $FOAM_TUTORIALS/resources/geometry/propeller*.obj.gz constant/geometry/
|
|
|
|
runApplication blockMesh
|
|
runApplication surfaceFeatures
|
|
runApplication snappyHexMesh -overwrite
|
|
|
|
# Create the inlet/outlet and AMI patches
|
|
runApplication createBaffles -overwrite
|
|
runApplication splitBaffles -overwrite
|
|
|
|
# Renumbering
|
|
runApplication renumberMesh -noFields -overwrite
|
|
|
|
#------------------------------------------------------------------------------
|