tutorials/combustion/reactingFoam/RAS/SandiaD_LTS: Prevent end time alteration in the test loop

This commit is contained in:
Will Bainbridge
2019-11-01 12:11:17 +00:00
parent e6e0b5ee9d
commit 6cc02fc0f9

View File

@ -14,21 +14,24 @@ runApplication chemkinToFoam \
runApplication blockMesh
runApplication setFields
# Run the application without chemistry until 1500 to let the flow field develop
foamDictionary -entry "startTime" -set "0" system/controlDict
foamDictionary -entry "writeInterval" -set "1500" system/controlDict
foamDictionary -entry "endTime" -set "1500" system/controlDict
rm -rf constant/chemistryProperties > /dev/null 2>&1
foamDictionary -entry "chemistry" -set "off" constant/chemistryProperties
if ! isTest $@
then
# Run the application without chemistry until 1500 to let the flow develop
foamDictionary -entry "startTime" -set "0" system/controlDict
foamDictionary -entry "writeInterval" -set "1500" system/controlDict
foamDictionary -entry "endTime" -set "1500" system/controlDict
rm -rf constant/chemistryProperties > /dev/null 2>&1
foamDictionary -entry "chemistry" -set "off" constant/chemistryProperties
runApplication $application
runApplication $application
# Run with chemistry until flame reach its full size
foamDictionary -entry "startTime" -set "1500" system/controlDict
foamDictionary -entry "writeInterval" -set "100" system/controlDict
foamDictionary -entry "endTime" -set "5000" system/controlDict
rm -rf constant/chemistryProperties > /dev/null 2>&1
foamDictionary -entry "chemistry" -set "on" constant/chemistryProperties
# Run with chemistry until flame reach its full size
foamDictionary -entry "startTime" -set "1500" system/controlDict
foamDictionary -entry "writeInterval" -set "100" system/controlDict
foamDictionary -entry "endTime" -set "5000" system/controlDict
rm -rf constant/chemistryProperties > /dev/null 2>&1
foamDictionary -entry "chemistry" -set "on" constant/chemistryProperties
fi
runApplication -o $application