snappyHexMesh now generates a face-zone for the AMI-s, and createBaffles and mergeOrSplitPoints -split are used to create the patches. Before, snappy generated AMI patches directly, which were then converted to AMI-s with createPatch. This way, the AMI-s match exactly at the start of the simulation. For more complicated cases that may be derived from this tutorial, this could be important.
22 lines
639 B
Bash
Executable File
22 lines
639 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 surface from resources directory
|
|
cp $FOAM_TUTORIALS/resources/geometry/propeller.obj.gz constant/triSurface/
|
|
|
|
runApplication blockMesh
|
|
runApplication surfaceFeatures
|
|
runApplication snappyHexMesh -overwrite
|
|
|
|
# Create the inlet/outlet and AMI patches
|
|
runApplication createBaffles -overwrite
|
|
runApplication mergeOrSplitBaffles -split -overwrite
|
|
|
|
# Renumbering
|
|
runApplication renumberMesh -noFields -overwrite
|
|
|
|
#------------------------------------------------------------------------------
|