Files
OpenFOAM-12/tutorials/combustion/XiFoam/RAS/Allrun
Will Bainbridge 36731b2fe9 tutorials: Prevent foamDictionary output from printing during test loop
foamDictionary executions are now wrapped by runApplication like any
other execution so that they do not print during a test loop.
foamDictionary does not produce a conforming log, however, so
log.foamDictionary has been filtered out of the formation of the test
loop report so that false failures are not reported.
2020-07-24 14:11:32 +01:00

47 lines
1.3 KiB
Bash
Executable File

#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Clone the propane case and set it up for hydrogen
cloneCase moriyoshiHomogeneous moriyoshiHomogeneousHydrogen
(
cd moriyoshiHomogeneousHydrogen || exit 1
mv constant/thermophysicalProperties \
constant/thermophysicalProperties.propane
mv constant/thermophysicalProperties.hydrogen \
constant/thermophysicalProperties
mv constant/combustionPropertiesInclude \
constant/combustionPropertiesInclude.propane
mv constant/combustionPropertiesInclude.hydrogen \
constant/combustionPropertiesInclude
)
# Run the propane case
(
cd moriyoshiHomogeneous || exit 1
foamRunTutorials
if ! isTest $@
then
runApplication -a foamDictionary system/controlDict -entry deltaT -set 1e-05
runApplication -a foamDictionary system/controlDict -entry endTime -set 0.015
runApplication -a foamDictionary system/controlDict -entry writeInterval -set 50
runApplication -a XiFoam
fi
)
# Run the hydrogen case
(
cd moriyoshiHomogeneousHydrogen || exit 1
foamRunTutorials
)
#------------------------------------------------------------------------------