diff --git a/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allrun b/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allrun index 7e70664f4e..cc16b197b6 100755 --- a/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allrun +++ b/tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allrun @@ -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