Mixture#
- class ansys.chemkin.core.mixture.Mixture(chem: ansys.chemkin.core.chemistry.Chemistry)#
define a mixture based on the gas species in the given chemistry set.
Overview#
List the mixture composition. |
|
Create the equilibrium state mixture corresponding to mixture itself. |
|
Get enthalpy of the mixture. |
|
Get specific heat capacity of the mixture. |
|
Get species rate of productions. |
|
Get molar reaction rates. |
|
Get species specific heat capacity at constant pressure. |
|
Get species enthalpy. |
|
Get species viscosity. |
|
Get species conductivity. |
|
Get species diffusion coefficients. |
|
Get viscosity of the gas mixture. |
|
Get conductivity of the gas mixture. |
|
Get mixture-averaged species diffusion coefficients of the gas mixture. |
|
Get multi-component species binary diffusion coefficients. |
|
Get thermal diffusivity of the gas mixture. |
|
Get volumetric heat release rate. |
|
Get species mass rates of production. |
|
List species molar production rate. |
|
List species mass rate of production in descending order. |
|
List information about reaction rate in descending order. |
|
Set mole fractions using equivalence ratio. |
|
Set mass fractions using equivalence ratio. |
|
Compute the EGR composition in mole fraction. |
|
Check whether the mixture is fully defined. |
|
Turn ON the real-gas cubic EOS. |
|
Turn on the ideal gas law to compute mixture properties. |
|
Set the mixing rule for calculating the real-gas mixture properties. |
Get chemistry set index. |
|
Get the number of gas species. |
|
Get gas mixture pressure [dynes/cm2]. |
|
Get gas mixture temperature. |
|
Get mixture volume. |
|
Get mixture mole fraction. |
|
Get mixture mass fraction. |
|
Get mixture molar concentrations. |
|
Get the available real-gas EOS model that is provided in the mechanism. |
|
Get species molecular masses. |
|
Get mean molar mass of the gas mixture. |
|
Get mixture mass density. |
Normalize the mixture composition. |
|
Get mean molar mass of the gas mixture. |
|
Convert mole fraction to mass fraction. |
|
Convert mass fraction to mole fraction. |
|
Convert mass fractions to molar concentrations. |
|
Convert mole fractions to molar concentrations. |
|
Get mass density from the given mixture condition. |
|
Get mixture specific heat capacity at constant pressure. |
|
Get mixture enthalpy. |
|
Get species molar rate of production. |
|
Get the molar rates of the gas reactions. |
Import detail#
from ansys.chemkin.core.mixture import Mixture
Property detail#
- property Mixture.chemid: int#
Get chemistry set index.
- property Mixture.kk: int#
Get the number of gas species.
- property Mixture.pressure: float#
Get gas mixture pressure [dynes/cm2].
- property Mixture.temperature: float#
Get gas mixture temperature.
- property Mixture.volume: float#
Get mixture volume.
- property Mixture.x: numpy.typing.NDArray[numpy.double]#
Get mixture mole fraction.
- property Mixture.y: numpy.typing.NDArray[numpy.double]#
Get mixture mass fraction.
- property Mixture.concentration: numpy.typing.NDArray[numpy.double]#
Get mixture molar concentrations.
- property Mixture.eos: int#
Get the available real-gas EOS model that is provided in the mechanism.
- property Mixture.wt: numpy.typing.NDArray[numpy.double]#
Get species molecular masses.
- property Mixture.wtm: float#
Get mean molar mass of the gas mixture.
- property Mixture.rho: float#
Get mixture mass density.
Attribute detail#
- Mixture.transport_data#
- Mixture.userealgas#
- Mixture.mole_fractions#
- Mixture.mass_fractions#
- Mixture.species_molar_weight#
- Mixture.mean_molar_weight#
Method detail#
- static Mixture.normalize(frac: numpy.typing.ArrayLike) tuple[int, numpy.typing.NDArray[numpy.double]]#
Normalize the mixture composition.
- static Mixture.mean_molar_mass(frac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double], mode: str) float#
Get mean molar mass of the gas mixture.
- static Mixture.mole_fraction_to_mass_fraction(molefrac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double]) numpy.typing.NDArray[numpy.double]#
Convert mole fraction to mass fraction.
- static Mixture.mass_fraction_to_mole_fraction(massfrac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double]) numpy.typing.NDArray[numpy.double]#
Convert mass fraction to mole fraction.
- static Mixture.mass_fraction_to_concentration(chemid: int, p: float, t: float, massfrac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double]) numpy.typing.NDArray[numpy.double]#
Convert mass fractions to molar concentrations.
- static Mixture.mole_fraction_to_concentration(chemid: int, p: float, t: float, molefrac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double]) numpy.typing.NDArray[numpy.double]#
Convert mole fractions to molar concentrations.
- Mixture.list_composition(mode: str, option: str = ' ', bound: float = 0.0)#
List the mixture composition.
- static Mixture.density(chemid: int, p: float, t: float, frac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double], mode: str) float#
Get mass density from the given mixture condition.
- static Mixture.mixture_specific_heat(chemid: int, p: float, t: float, frac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double], mode: str) float#
Get mixture specific heat capacity at constant pressure.
- static Mixture.mixture_enthalpy(chemid: int, p: float, t: float, frac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double], mode: str) float#
Get mixture enthalpy.
- static Mixture.rate_of_production(chemid: int, p: float, t: float, frac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double], mode: str) numpy.typing.NDArray[numpy.double]#
Get species molar rate of production.
- static Mixture.reaction_rates(chemid: int, numbreaction: int, p: float, t: float, frac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double], mode: str) tuple[numpy.typing.NDArray[numpy.double], numpy.typing.NDArray[numpy.double]]#
Get the molar rates of the gas reactions.
- Mixture.find_equilibrium()#
Create the equilibrium state mixture corresponding to mixture itself.
- Mixture.hml() float#
Get enthalpy of the mixture.
- Mixture.cpbl() float#
Get specific heat capacity of the mixture.
- Mixture.rop() numpy.typing.NDArray[numpy.double]#
Get species rate of productions.
- Mixture.rxn_rates() tuple[numpy.typing.NDArray[numpy.double], numpy.typing.NDArray[numpy.double]]#
Get molar reaction rates.
- Mixture.species_cp() numpy.typing.NDArray[numpy.double]#
Get species specific heat capacity at constant pressure.
- Mixture.species_h() numpy.typing.NDArray[numpy.double]#
Get species enthalpy.
- Mixture.species_visc() numpy.typing.NDArray[numpy.double]#
Get species viscosity.
- Mixture.species_cond() numpy.typing.NDArray[numpy.double]#
Get species conductivity.
- Mixture.species_diffusion_coeffs() numpy.typing.NDArray[numpy.double]#
Get species diffusion coefficients.
- Mixture.mixture_viscosity() float#
Get viscosity of the gas mixture.
- Mixture.mixture_conductivity() float#
Get conductivity of the gas mixture.
- Mixture.mixture_diffusion_coeffs() numpy.typing.NDArray[numpy.double]#
Get mixture-averaged species diffusion coefficients of the gas mixture.
- Mixture.mixture_binary_diffusion_coeffs() numpy.typing.NDArray[numpy.double]#
Get multi-component species binary diffusion coefficients.
- Mixture.mixture_thermal_diffusion_coeffs() numpy.typing.NDArray[numpy.double]#
Get thermal diffusivity of the gas mixture.
- Mixture.vol_hrr() float#
Get volumetric heat release rate.
- Mixture.rop_mass() numpy.typing.NDArray[numpy.double]#
Get species mass rates of production.
- Mixture.list_rop(threshold: float = 0.0) tuple[numpy.typing.NDArray[numpy.int32], numpy.typing.NDArray[numpy.double]]#
List species molar production rate.
- Mixture.list_rop_mass(threshold: float = 0.0) tuple[numpy.typing.NDArray[numpy.int32], numpy.typing.NDArray[numpy.double]]#
List species mass rate of production in descending order.
- Mixture.list_reaction_rates(threshold: float = 0.0) tuple[numpy.typing.NDArray[numpy.int32], numpy.typing.NDArray[numpy.double]]#
List information about reaction rate in descending order.
- Mixture.x_by_equivalence_ratio(chemistryset: ansys.chemkin.core.chemistry.Chemistry, fuel_molefrac: numpy.typing.NDArray[numpy.double], oxid_molefrac: numpy.typing.NDArray[numpy.double], add_molefrac: numpy.typing.NDArray[numpy.double], products: list[str], equivalenceratio: float, threshold: float = 1e-10) int#
Set mole fractions using equivalence ratio.
- Mixture.y_by_equivalence_ratio(chemistryset: ansys.chemkin.core.chemistry.Chemistry, fuel_massfrac: numpy.typing.NDArray[numpy.double], oxid_massfrac: numpy.typing.NDArray[numpy.double], add_massfrac: numpy.typing.NDArray[numpy.double], products: list[str], equivalenceratio: float, threshold: float = 1e-10) int#
Set mass fractions using equivalence ratio.
- Mixture.get_egr_mole_fraction(egr_ratio: float, threshold: float = 1e-08) numpy.typing.NDArray[numpy.double]#
Compute the EGR composition in mole fraction.
- Mixture.validate() int#
Check whether the mixture is fully defined.
- Mixture.use_realgas_cubic_eos()#
Turn ON the real-gas cubic EOS.
- Mixture.use_idealgas_law()#
Turn on the ideal gas law to compute mixture properties.
- Mixture.set_realgas_mixing_rule(rule: int = 0)#
Set the mixing rule for calculating the real-gas mixture properties.