File size: 1,438 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/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/physicalProperties.u \
        constant/physicalProperties.u.propane
    mv constant/physicalProperties.u.hydrogen \
        constant/physicalProperties.u

    mv constant/physicalProperties.b \
        constant/physicalProperties.b.propane
    mv constant/physicalProperties.b.hydrogen \
        constant/physicalProperties.b

    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 foamRun
    fi
)

# Run the hydrogen case
(
    cd moriyoshiHomogeneousHydrogen || exit 1

    foamRunTutorials
)

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