Cantera solves chemical kinetics, thermodynamics, and transport problems for gas mixtures. One job type covers five kinds of problem, chosen with mode:
mode | What it computes |
|---|---|
equilibrium | The equilibrium state and composition under a constraint (TP, HP, SP, SV, UV, TV), optionally from an equivalence ratio with fuel and oxidizer |
reactor | A constant-volume or constant-pressure reactor over time: species and temperature histories and ignition delay, with optional wall heat loss |
flame | A freely propagating, one-dimensional premixed flame: species and temperature profiles and flame speed, with a choice of transport model, Soret diffusion, and grid refinement |
transport | Viscosity, thermal conductivity, and diffusion coefficients over a temperature range, with optional binary diffusion coefficients |
path_analysis | Element fluxes and rates of production, with a reaction path diagram |
It runs on CPU.
Inputs
- The mechanism: one of the built-in mechanisms with
mechanism_id(gri30for natural gas combustion,h2o2for hydrogen), or your own as an uploaded file or an artifact in Cantera YAML (CHEMKIN, CTI, and XML mechanisms also chain in from other tools). - The problem: a structured
problem_specwhose fields depend on the mode (the allowed fields are checked), or a full Cantera YAML problem incantera_yaml, or aproblemobject.
Outputs
Each mode fills its own table: reactor_history, flame_profile, transport_table, species, or rate_of_production (CSV), alongside the full output zip, which for path_analysis includes the path diagram.
Chaining
Mechanisms from RMG Mechanism Generator, Mechanism Reduction, and NASA / Cantera Species Builder can feed straight into a Cantera step in a workflow.
Not covered
Well-stirred and plug-flow reactors, other flame configurations, surface chemistry, electrochemistry, and sensitivity analysis aren't available yet. For real-fluid properties (steam, refrigerants) use CoolProp; for vapor–liquid equilibrium use VLE / Flash.