Code Generation#
- pyrometheus.gen_thermochem_code(sol: Solution) str #
For the mechanism given by sol, return Python source code for a class conforming to a module containing a class called
Thermochemistry
adhering to theThermochemistry
interface.
- pyrometheus.get_thermochem_class(sol: Solution)#
For the mechanism given by sol, return a class conforming to the
Thermochemistry
interface.
Internal Functionality#
- pyrometheus.equilibrium_constants_expr(sol: Solution, react: Reaction, gibbs_rt)#
Generate code for equilibrium constants.
- Returns
Equilibrium constant expression for reaction react in terms of the species Gibbs functions gibbs_rt as a
pymbolic.primitives.Expression
- pyrometheus.rate_coefficient_expr(rate_coeff: Arrhenius, t)#
- Returns
The rate coefficient expression for rate_coeff in terms of the temperature t as a
pymbolic.primitives.Expression
- pyrometheus.third_body_efficiencies_expr(sol: Solution, react: Reaction, c)#
- Returns
The third-body concentration expression for reaction react in terms of the species concentrations c as a
pymbolic.primitives.Expression
- pyrometheus.troe_falloff_expr(react: Reaction, t)#
- Returns
The Troe falloff center expression for reaction react in terms of the temperature t as a
pymbolic.primitives.Expression
- pyrometheus.falloff_function_expr(react: Reaction, i, t, red_pressure, falloff_center)#
- Returns
Falloff function expression for reaction react in terms of the temperature t, reduced pressure red_pressure, and falloff center falloff_center as a
pymbolic.primitives.Expression
- pyrometheus.rate_of_progress_expr(sol: Solution, react: Reaction, c, k_fwd, k_eq)#
- Returns
Rate of progress expression for reaction react in terms of species concentrations c with rate coefficients k_fwd and equilbrium constants k_eq as a
pymbolic.primitives.Expression
- pyrometheus.production_rate_expr(sol: Solution, species, r_net)#
- Returns
Species production rate for species species in terms of the net reaction rates of progress r_net as a
pymbolic.primitives.Expression
Interface of the Generated Per-Mechanism Code#
Canonical Names#
- class cantera.composite.Solution#
See
cantera.Solution
.
- class cantera._cantera.Reaction#
See
cantera.Reaction
.
- class cantera._cantera.Arrhenius#
See
cantera.Arrhenius
.