helmholtzResonance

#!/bin/sh
cd “${0%/*}” || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#——————————————————————————

restore0Dir

# Run function links the appropriate mesh files and clones the case
run()
{
(
cd system
rm -f blockMeshDict.caseBlocks blockMeshDict.caseBoundary
ln -s blockMeshDict.${1}Blocks blockMeshDict.caseBlocks
ln -s blockMeshDict.${1}Boundary blockMeshDict.caseBoundary
)

cloneCase . “$1”

(
cd “$1” || exit
runApplication blockMesh
runApplication decomposePar
runParallel $(getApplication)
)
}

# Run with a fully resolved plenum
run resolved

# Run with the plenum modelled by a boundary condition
run modelled

if notTest “$@”
then
# Plot a comparison of the pressure in the neck
cat

実行年月:08/01/2021