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
Shock-tube species profiles as a function of time
Growth of diamond film using CVD
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#
Constant-pressure, adiabatic kinetics simulation
Integrating constant pressure ignition using SciPy
Constant-pressure, adiabatic kinetics simulation with sensitivity analysis
Plug flow reactor with surface chemistry
Reactors separated by a moving piston
Acceleration of reactor integration using a sparse preconditioned solver
Continuously stirred tank reactor with periodic behavior
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#
Burner-stabilized flame including ionized species
Freely-propagating flame with charged species
Opposed-flow premixed strained flame
Laminar flame speed calculation
Flame speed as a function of equivalence ratio
Detached flat flame stabilized at a stagnation point
Laminar flame speed sensitivity analysis
Burner-stabilized flame with imposed temperature profile
Catalytic combustion of methane on platinum
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