File size: 1,362 Bytes
5a600cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

runApplication chemkinToFoam \
               chemkin/grimech30.dat chemkin/thermo30.dat chemkin/transportProperties \
               constant/reactionsGRI constant/thermo.compressibleGasGRI

runApplication blockMesh

if ! isTest $@
then
    # Run the application without chemistry until 1500 to let the flow develop
    runApplication -a foamDictionary -entry "startTime" -set "0" system/controlDict
    runApplication -a foamDictionary -entry "writeInterval" -set "1500" system/controlDict
    runApplication -a foamDictionary -entry "endTime" -set "1500" system/controlDict
    runApplication -a foamDictionary -entry "chemistry" -set "off" constant/chemistryProperties

    runApplication foamRun

    # Run with chemistry until flame reach its full size
    runApplication -a foamDictionary -entry "startTime" -set "1500" system/controlDict
    runApplication -a foamDictionary -entry "writeInterval" -set "100" system/controlDict
    runApplication -a foamDictionary -entry "endTime" -set "5000" system/controlDict
    runApplication -a foamDictionary -entry "chemistry" -set "on" constant/chemistryProperties
fi

runApplication -o foamRun

#------------------------------------------------------------------------------