-
Notifications
You must be signed in to change notification settings - Fork 253
Expand file tree
/
Copy pathinput.py
More file actions
86 lines (78 loc) · 1.85 KB
/
input.py
File metadata and controls
86 lines (78 loc) · 1.85 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
# Data sources
database(
thermoLibraries = ['KlippensteinH2O2', 'primaryThermoLibrary','DFT_QCI_thermo','CH','CHN','CHO','CHON','CN','NISTThermoLibrary','thermo_DFT_CCSDTF12_BAC','GRI-Mech3.0-N'],
reactionLibraries = [('Nitrogen_Dean_and_Bozzelli',False)],
seedMechanisms = ['ERC-FoundationFuelv0.9'],
kineticsDepositories = ['training'],
kineticsFamilies = ['!Intra_Disproportionation', '!Substitution_O'],
kineticsEstimator = 'rate rules',
)
# Constraints on generated species
generatedSpeciesConstraints(
#maximumCarbonAtoms = 7,
#maximumHydrogenAtoms = 8,
#maximumOxygenAtoms = 5,
maximumNitrogenAtoms = 2,
#maximumSiliconAtoms = 0,
#maximumSulfurAtoms = 0,
#maximumHeavyAtoms = 3,
maximumRadicalElectrons = 2,
)
# List of species
species(
label='CH3NO2',
reactive=True,
structure=adjacencyList(
"""
1 C u0 p0 {2,S} {3,S} {4,S} {5,S}
2 H u0 p0 {1,S}
3 H u0 p0 {1,S}
4 H u0 p0 {1,S}
5 N u0 p0 {1,S} {6,D} {7,S}
6 O u0 p2 {5,D}
7 O u0 p3 {5,S}
"""),
)
species(
label='O2',
reactive=True,
structure=adjacencyList(
"""
1 O u1 p2 {2,S}
2 O u1 p2 {1,S}
"""),
)
species(
label='N2',
reactive=True,
structure=adjacencyList(
"""
1 N u0 p1 {2,T}
2 N u0 p1 {1,T}
"""),
)
# Reaction systems
simpleReactor(
temperature=(1500,'K'),
pressure=(10.0,'bar'),
initialMoleFractions={
"CH3NO2": 0.1,
"O2": 0.21,
"N2": 0.69,
},
terminationConversion={
'CH3NO2': 0.1,
},
)
model(
toleranceKeepInEdge=1e-5,
toleranceMoveToCore=0.1,
toleranceInterruptSimulation=0.1,
maximumEdgeSpecies=10000
)
options(
units='si',
saveRestartPeriod=None,
drawMolecules=False,
generatePlots=False,
)