Python Examples#
See also
To find examples covering a specific topic, see the index of example tags.
If you’re just getting started with Cantera, see our Python Tutorial for an introduction to the Cantera Python interface.
Thermodynamics#
Equilibrium with charged species and multiple condensed phases
Adiabatic flame temperature including solid carbon formation
Isentropic, adiabatic flow (with units)
Surface with coverage-dependent thermo
Kinetics#
Viewing a reaction path diagram
Growth of diamond film using CVD
Shock-tube species profiles as a function of time
Jet-stirred reactor temperature and species profiles
Lithium Ion Battery Discharge Curve
Solid oxide fuel cell using elementary kinetics
Interactive Reaction Path Diagrams
Transport#
Porous media transport using the dusty gas model
Parallelizing transport property calculations
Reactor networks#
Continuously stirred tank reactor with periodic behavior
Constant-pressure, adiabatic kinetics simulation
Reactors separated by a moving piston
Integrating constant pressure ignition using SciPy
Constant-pressure, adiabatic kinetics simulation with sensitivity analysis
Plug flow reactor with surface chemistry
Acceleration of reactor integration using a sparse preconditioned solver
Soot precursor formation with time-varying mass flow rate
Reactors with walls and heat transfer
Using ExtensibleReactor to implement wall inertia
Plug flow reactor modeled as a chain of well stirred reactors
Plug flow reactor: silicon nitride deposition
Plug flow reactor modeling approaches
Continuously Stirred Tank Reactor
Diesel-type internal combustion engine simulation with gaseous fuel
Ignition delay time using the Redlich-Kwong real gas model
One-dimensional packed-bed, catalytic-membrane reactor
Reactor cascade model for reactive flows in inert porous media
1D reacting flows#
Flame speed as a function of equivalence ratio
Burner-stabilized flame including ionized species
Opposed-flow premixed strained flame
Freely-propagating flame with charged species
Laminar flame speed sensitivity analysis
Laminar flame speed calculation
Catalytic combustion of methane on platinum
Detached flat flame stabilized at a stagnation point
Burner-stabilized flame with imposed temperature profile
Saving, loading, and restarting 1D calculations
Diffusion flame unstable branch
Diffusion flame extinction strain rate
Scaling of diffusion flames with pressure and strain rate
Flame Speed with Convergence Analysis