-
Notifications
You must be signed in to change notification settings - Fork 253
Expand file tree
/
Copy pathinput.py
More file actions
91 lines (83 loc) · 1.87 KB
/
input.py
File metadata and controls
91 lines (83 loc) · 1.87 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Data sources
database(
thermoLibraries = ['primaryThermoLibrary', 'GRI-Mech3.0'],
reactionLibraries = [],
seedMechanisms = ['GRI-Mech3.0'],
kineticsDepositories = ['training'],
kineticsFamilies = ['!Intra_Disproportionation','!Substitution_O'],
kineticsEstimator = 'rate rules',
)
# Constraints on generated species
generatedSpeciesConstraints(
maximumRadicalElectrons = 2,
)
# List of species
species(
label='O2', # oxygen
reactive=True,
structure=SMILES("[O][O]"),
)
species(
label='C8H18i', # isooctane
reactive=True,
structure=SMILES("CC(C)CC(C)(C)C"),
)
species(
label='C2H6On', # ethanol
reactive=True,
structure=SMILES("CCO"),
)
species(
label='C7H8t', # toluene
reactive=True,
structure=SMILES("Cc1ccccc1"),
)
species(
label='C6H12n', # hex-1-ene
reactive=True,
structure=SMILES("CCCCC=C"),
)
species(
label='Ar', # argon
reactive=False,
structure=SMILES("[Ar]"),
)
# Reaction systems
simpleReactor(
temperature=(1000,'K'),
pressure=(1.0,'bar'),
initialMoleFractions={
"O2": 0.00707000960551,
"C8H18i": 6.89999461306e-05,
"C2H6On": 0.0018620014036,
"C7H8t": 4.80001013417e-05,
"C6H12n": 2.1000044337e-05,
"Ar": 0.990929988899,
},
terminationConversion = {'C2H6On': 0.9},
terminationTime = (2e2,'s'),
)
simulator(
atol=1e-16,
rtol=1e-8,
)
model(
toleranceKeepInEdge=0.0,
toleranceMoveToCore=0.01,
toleranceInterruptSimulation=1.0,
maximumEdgeSpecies=1000000,
)
#pressureDependence(
# method='reservoir state',
# grainSize=(2.0,'kcal/mol'),
# numberOfGrains=200,
# temperatures=(300,2000,'K',8),
# pressures=(0.01,100,'bar',5),
# interpolation=('Chebyshev', 6, 4),
#)
options(
units='si',
saveRestartPeriod=(1,'day'),
drawMolecules=False,
generatePlots=False,
)