Code Generation¶
-
pyrometheus.gen_thermochem_code(sol: cantera.composite.Solution) → str¶ For the mechanism given by sol, return Python source code for a class conforming to a module containing a class called
Thermochemistryadhering to theThermochemistryinterface.
-
pyrometheus.get_thermochem_class(sol: cantera.composite.Solution)¶ For the mechanism given by sol, return a class conforming to the
Thermochemistryinterface.
Interface of the Generated Per-Mechanism Code¶
-
class
pyrometheus.Thermochemistry¶ -
model_name¶
-
num_elements¶
-
num_species¶
-
num_reactions¶
-
num_falloff¶
-
one_atm¶ What is this? In what units?
-
gas_constant¶
-
species_names¶
-
species_indices¶
-
get_specific_gas_constant(self, Y)¶
-
get_density(self, p, T, Y)¶
-
get_pressure(self, rho, T, Y)¶
-
get_mix_molecular_weight(self, Y)¶
-
get_concentrations(self, rho, Y)¶
-
get_mixture_specific_heat_cp_mass(self, T, Y)¶
-
get_mixture_specific_heat_cv_mass(self, T, Y)¶
-
get_mixture_enthalpy_mass(self, T, Y)¶
-
get_mixture_internal_energy_mass(self, T, Y)¶
-
get_species_specific_heats_R(self, T)¶
-
get_species_enthalpies_RT(self, T)¶
-
get_species_entropies_R(self, T)¶
-
get_species_gibbs_RT(self, T)¶
-
get_equilibrium_constants(self, T)¶
-
get_temperature(self, H_or_E, T_guess, Y, do_energy=False)¶
-
Canonical Names¶
-
class
cantera.composite.Solution¶ See
cantera.Solution.