Files
OpenFOAM-12/tutorials/combustion/XiFoam/RAS/Allrun
Will Bainbridge a2bb959e23 tutorials/combustion/XiFoam/RAS/moriyoshiHomogeneous: Simplification
Re-scripted the tutorials to take advantage of foamDictionary and .orig
2019-11-28 14:47:18 +00:00

47 lines
1.2 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
foamDictionary system/controlDict -entry deltaT -set 1e-05
foamDictionary system/controlDict -entry endTime -set 0.015
foamDictionary system/controlDict -entry writeInterval -set 50
runApplication -a XiFoam
fi
)
# Run the hydrogen case
(
cd moriyoshiHomogeneousHydrogen || exit 1
foamRunTutorials
)
#------------------------------------------------------------------------------