openfoam/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allrun
Mark Olesen 9b1c0786ce TUT: verificationAndValidation Allrun uses bash
STYLE: double-quote "$@" for isTest/notTest
2020-03-30 21:14:29 +02:00

40 lines
1.3 KiB
Bash
Executable File

#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
# Application name
application=$(getApplication)
restore0Dir
runApplication chemkinToFoam \
chemkin/grimech30.dat chemkin/thermo30.dat chemkin/transportProperties \
constant/reactionsGRI constant/thermo.compressibleGasGRI
runApplication blockMesh
runApplication setFields
if isTest "$@"
then
# Test without chemistry
foamDictionary constant/chemistryProperties -entry chemistry -set off
runApplication $application
else
# Run without chemistry until 1500 to let the flow field develop
foamDictionary system/controlDict -entry writeInterval -set 1500
foamDictionary system/controlDict -entry endTime -set 1500
foamDictionary constant/chemistryProperties -entry chemistry -set off
runApplication $application
# Run with chemistry until flame reaches its full size
foamDictionary system/controlDict -entry writeInterval -set 100
foamDictionary system/controlDict -entry endTime -set 5000
foamDictionary constant/chemistryProperties -entry chemistry -set on
runApplication -o $application
fi
#------------------------------------------------------------------------------