Files
OpenFOAM-12/tutorials/incompressibleVoF/damBreakLaminarFine/Allrun

29 lines
913 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 the case
isTest "$@" && path=.. || path=$FOAM_TUTORIALS/incompressibleVoF
cp -rn $path/damBreakLaminar/constant $path/damBreakFine/system .
cp -rn $path/damBreak/0 $path/damBreak/constant $path/damBreak/system .
rm -f 0/alpha.water
# Set a new time-step
runApplication -s controlDict foamDictionary system/controlDict \
-entry deltaT -set 5e-4
# Increase the number of limiter iterations
runApplication -s fvSolution foamDictionary system/fvSolution \
-entry solvers/"alpha.water.*"/nLimiterIter -set 5
# Run
runApplication blockMesh -dict system/blockMeshDict.fine
runApplication setFields
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
#------------------------------------------------------------------------------