|
| 1 | +# Example input file for 2-BTP/CF3Br in methane flames |
| 2 | + |
| 3 | +database( |
| 4 | + thermoLibraries = ['primaryThermoLibrary', 'DFT_QCI_thermo', 'thermo_DFT_CCSDTF12_BAC', |
| 5 | + 'halogens', 'CHOBr_G4','CHOF_G4','CHOFBr_G4', '2-BTP', '2-BTP_G4', 'Fluorine', |
| 6 | + 'CBS_QB3_1dHR','NISTThermoLibrary','JetSurF2.0'], |
| 7 | + #reactionLibraries = ['2-BTP/seed'], #optional: use NISTs 2-BTP kinetics library as seed or reaction library |
| 8 | + reactionLibraries = [], |
| 9 | + seedMechanisms = ['FFCM1(-)'], #optional: use FFCM1(-) kinetics library as seed for methane combustion |
| 10 | + kineticsDepositories = ['training'], |
| 11 | + kineticsFamilies = ['default','halogens'], # load both the `default` and `halogens` recommended kinetics families |
| 12 | + kineticsEstimator = 'rate rules', |
| 13 | +) |
| 14 | + |
| 15 | +species( |
| 16 | + label = "2-BTP", |
| 17 | + reactive = True, |
| 18 | + structure = SMILES("FC(F)(F)C(Br)=C") |
| 19 | +) |
| 20 | + |
| 21 | +species( |
| 22 | + label = "CF3Br", |
| 23 | + reactive = True, |
| 24 | + structure = SMILES("FC(F)(F)Br") |
| 25 | +) |
| 26 | + |
| 27 | +species( |
| 28 | + label = 'CH4', |
| 29 | + reactive = True, |
| 30 | + structure = SMILES('C') |
| 31 | +) |
| 32 | + |
| 33 | +species( |
| 34 | + label = "O2", |
| 35 | + reactive = True, |
| 36 | + structure = adjacencyList( |
| 37 | + """ |
| 38 | + multiplicity 3 |
| 39 | + 1 O u1 p2 c0 {2,S} |
| 40 | + 2 O u1 p2 c0 {1,S} |
| 41 | +""" |
| 42 | +)) |
| 43 | + |
| 44 | +species( |
| 45 | + label = "N2", |
| 46 | + reactive = False, |
| 47 | + structure = adjacencyList( |
| 48 | + """ |
| 49 | + 1 N u0 p1 c0 {2,T} |
| 50 | + 2 N u0 p1 c0 {1,T} |
| 51 | + """ |
| 52 | +)) |
| 53 | + |
| 54 | +# reactor for methane combustion |
| 55 | +simpleReactor( |
| 56 | + temperature=[(1000,'K'),(1800,'K')], |
| 57 | + pressure=(1.0,'bar'), |
| 58 | + nSims=12, |
| 59 | + initialMoleFractions={ |
| 60 | + "CH4" : [0.05,0.15], |
| 61 | + "O2": 0.21, |
| 62 | + "N2": 0.78, |
| 63 | + }, |
| 64 | + terminationConversion={ |
| 65 | + 'CH4': 0.99, |
| 66 | + }, |
| 67 | + terminationTime=(1,'s'), |
| 68 | + ) |
| 69 | + |
| 70 | +# reactor for CF3Br in methane flame |
| 71 | +simpleReactor( |
| 72 | + temperature=[(1000,'K'),(1800,'K')], |
| 73 | + pressure=(1.0,'bar'), |
| 74 | + nSims=24, |
| 75 | + initialMoleFractions={ |
| 76 | + "CF3Br": [0.0,0.04], |
| 77 | + "CH4" : [0.05,0.15], |
| 78 | + "O2": 0.21, |
| 79 | + "N2": 0.78, |
| 80 | + }, |
| 81 | + terminationConversion={ |
| 82 | + 'CH4': 0.99, |
| 83 | + }, |
| 84 | + terminationTime=(1,'s'), |
| 85 | + ) |
| 86 | + |
| 87 | +# reactor for 2-BTP in methane flame |
| 88 | +simpleReactor( |
| 89 | + temperature=[(1000,'K'),(2200,'K')], |
| 90 | + pressure=(1.0,'bar'), |
| 91 | + nSims=24, |
| 92 | + initialMoleFractions={ |
| 93 | + "2-BTP": [0.0,0.04], |
| 94 | + "CH4" : [0.05,0.15], |
| 95 | + "O2": 0.21, |
| 96 | + "N2": 0.78, |
| 97 | + }, |
| 98 | + terminationConversion={ |
| 99 | + 'CH4': 0.99, |
| 100 | + }, |
| 101 | + terminationTime=(1,'s'), |
| 102 | + ) |
| 103 | + |
| 104 | +# pressue dependence is not yet implemented for halogen chemistry |
| 105 | +# pressureDependence( |
| 106 | +# method='modified strong collision', |
| 107 | +# maximumGrainSize=(0.5,'kcal/mol'), |
| 108 | +# minimumNumberOfGrains=250, |
| 109 | +# temperatures=(300,2200,'K',8), |
| 110 | +# pressures=(0.01,100,'bar',5), |
| 111 | +# interpolation=('Chebyshev', 6, 4), |
| 112 | +# ) |
| 113 | + |
| 114 | + |
| 115 | +simulator( |
| 116 | + atol = 1e-16, |
| 117 | + rtol = 1e-08, |
| 118 | + sens_atol = 1e-06, |
| 119 | + sens_rtol = 0.0001, |
| 120 | +) |
| 121 | + |
| 122 | +model( |
| 123 | + toleranceMoveToCore = 0.25, |
| 124 | + toleranceInterruptSimulation = 1, |
| 125 | + maximumEdgeSpecies = 5e5, |
| 126 | + filterReactions = True, |
| 127 | + filterThreshold = 5e8, |
| 128 | + minCoreSizeForPrune=400, |
| 129 | + minSpeciesExistIterationsForPrune=4, |
| 130 | +) |
| 131 | + |
| 132 | + |
| 133 | +# model( |
| 134 | +# toleranceMoveToCore=1, |
| 135 | +# toleranceInterruptSimulation=1e8, |
| 136 | +# toleranceKeepInEdge=0.05, |
| 137 | +# maximumEdgeSpecies=200000, |
| 138 | +# minCoreSizeForPrune=50, |
| 139 | +# minSpeciesExistIterationsForPrune=2, |
| 140 | +# filterReactions = True, |
| 141 | +# filterThreshold=5e8 |
| 142 | +# ) |
| 143 | + |
| 144 | +generatedSpeciesConstraints( |
| 145 | + allowed=['input species','seed mechanisms','reaction libraries'], |
| 146 | + maximumCarbonAtoms=12, |
| 147 | + maximumOxygenAtoms=6, |
| 148 | + # maximumHeavyAtoms=24, |
| 149 | + maximumRadicalElectrons=2, |
| 150 | + maximumSingletCarbenes=1, |
| 151 | + maximumCarbeneRadicals=0, |
| 152 | + allowSingletO2 = False, |
| 153 | +) |
| 154 | + |
| 155 | +options( |
| 156 | + units = "si", |
| 157 | + saveRestartPeriod = None, |
| 158 | + generateOutputHTML = True, |
| 159 | + generatePlots = False, |
| 160 | + saveSimulationProfiles = True, |
| 161 | + saveEdgeSpecies = False, |
| 162 | + keepIrreversible = True, |
| 163 | + verboseComments = False, |
| 164 | +) |
0 commit comments