Files
OpenFOAM-12/tutorials/multiphase/interPhaseChangeFoam/propeller/Allmesh
Will Bainbridge a95c904390 tutorials/propeller: Mesh AMI-s as a face-zone, rather than patches
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.
2018-08-07 13:12:53 +01:00

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
#------------------------------------------------------------------------------