reaction mechanism simulator (rms)

20
Reaction Mechanism Simulator (RMS) Matt Johnson

Upload: others

Post on 24-Dec-2021

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Reaction Mechanism Simulator (RMS)

ReactionMechanismSimulator(RMS)

MattJohnson

Page 2: Reaction Mechanism Simulator (RMS)

TheReactionMechanismGenerator(RMG)Software

• OpensourcesoftwaredevelopedbytheGreenResearchGroupatMITandtheCoMoChEng GroupatNortheasternUniversity.

• Softwareaimstopredict thechemistryofagivensystembyautomatically determiningtherelevantspeciesandreactionsunderthespecifiedconditions.

• Particularlyusefulforsystemsinvolvingpyrolysisandcombustionchemistry.

Page 3: Reaction Mechanism Simulator (RMS)

HowRMGworks

3

Page 4: Reaction Mechanism Simulator (RMS)

Flux-BasedAlgorithmOverview

Page 5: Reaction Mechanism Simulator (RMS)

AutomaticMechanismGeneration

1. Determinewhatchemicalreactionscanhappen

2. Estimateratesforthosereactions

3. Decidewhatreactionsareimportant

4. Sensitivityandfluxanalysis

RMG

GraphTheoryandCheminformatics

MachineLearningandQuantumChemistry

DifferentialEquationsandGraphTheoryRMS

Page 6: Reaction Mechanism Simulator (RMS)

RMSCurrentFeatures• Extensiveandeasytoextendrateandthermodynamic

propertycalculators• Reactors

– BatchConstantTemperatureandPressureIdealGas– BatchConstantTemperatureandVolumeIdealDiluteLiquid– BatchConstantVolumeAdiabaticIdealGas– IdealPlugFlowReactorConstantTandP(implicitly)

• Sensitivityanalysisforallreactors• Highqualityflexiblefluxdiagramgeneration• Simulationrateofproductionanalysisandplottingtools• YAMLbasedinputfilethatisbotheasytoextendandeasy

tochange

Page 7: Reaction Mechanism Simulator (RMS)

DominantOtherCodes

• Chemkin Pro– Commercialcode– BasedonaDepartmentofEnergycodethatfirstreleasedin2001

– Fortran

• Cantera– Opensourcecode– Developmentstartedin1998firstreleasedin2003– C++

Page 8: Reaction Mechanism Simulator (RMS)

ComparisonWithOtherCodes

Page 9: Reaction Mechanism Simulator (RMS)

Chemkin FluxDiagram

Page 10: Reaction Mechanism Simulator (RMS)

Cantera FluxDiagram

Page 11: Reaction Mechanism Simulator (RMS)

RMSFluxDiagram:

Page 12: Reaction Mechanism Simulator (RMS)

Timings

Page 13: Reaction Mechanism Simulator (RMS)

MethylPropylEtherCombustion403species,9712reactionsStoichiometricwithO2

ConstantTemperatureandPressureat10barAveragesof10runs

RMSis~1.7xfasterthanCantera orChemkin

Page 14: Reaction Mechanism Simulator (RMS)

RMSImprovementsoverChemkin andCantera

• Moreflexibleandeasiertomanipulateinputfileformat• Moreinformativeandandmoreflexiblefluxdiagramgeneration• APIismucheasiertowrite• APIismucheasiertouse• Newobjectsareautomaticallyrecognizedbytheparserafterthey

areaddedtotheAPI• Fastersolve• Whenanalyticjacobians arenotavailablefallsbacktoautomatic

differentiationusingForwardDiff• Features

– Diffusionlimitations– Constantconcentrationspecies

Page 15: Reaction Mechanism Simulator (RMS)

RMSCurrentDependencies• DifferentialEquations• Parameters• Unitful• ForwardDiff• StaticArrays• LinearAlgebra• MathProgBase• Clp• PyCall

– rdkit– rmgpy– pydot

• Images• YAML• SpecialFunctions• PyPlot• Test

Page 16: Reaction Mechanism Simulator (RMS)

Codesusedintesting

• Chemkin Pro• Cantera

Page 17: Reaction Mechanism Simulator (RMS)

RMSFutureFeatures

• AnalyticJacobians (mostlydone)• Domainswithparameterizedtemperature,pressureandvolume(verysoon)

• Interfaces– Inlets– Outlets– Pipes– Heatsources– FlowsandDiffusiveFluxes

• Multi-phasereactors(gas-liquidandcatalysis)

Page 18: Reaction Mechanism Simulator (RMS)

Chemkin InputFile:

Page 19: Reaction Mechanism Simulator (RMS)

Cantera InputFile:

Page 20: Reaction Mechanism Simulator (RMS)

RMSInputFile: