The mixture.py module#
Summary#
define a mixture based on the gas species in the given chemistry set. |
Mixing multiple gas mixtures at gioven temperature. |
|
Mixing multiple gas mixtures adiabatically. |
|
Compute the mixture temperature from the given mixture enthalpy. |
|
Get Mixture by interpolation. |
|
Compare properties of mixture B against those of mixture A. |
|
Get the equilibrium mixture composition. |
|
Find the equilibrium state mixture corresponding to the given mixture. |
|
Find the Chapman-Jouguet state mixture and detonation wave speed. |
Description#
Chemkin Mixture utilities.
Module detail#
- mixture.isothermal_mixing(recipe: list[tuple[Mixture, float]], mode: str, finaltemperature: float) Mixture#
Mixing multiple gas mixtures at gioven temperature.
- mixture.adiabatic_mixing(recipe: list[tuple[Mixture, float]], mode: str) Mixture#
Mixing multiple gas mixtures adiabatically.
- mixture.cal_mixture_temperature_from_enthalpy(mixture: Mixture, h_mixture: float, guesstemperature: float = 0.0) int#
Compute the mixture temperature from the given mixture enthalpy.
- mixture.interpolate_mixtures(mixtureleft: Mixture, mixtureright: Mixture, ratio: float) Mixture#
Get Mixture by interpolation.
- mixture.compare_mixtures(mixture_a: Mixture, mixture_b: Mixture, atol: float = 1e-10, rtol: float = 0.001, mode: str = 'mass') tuple[bool, float, float]#
Compare properties of mixture B against those of mixture A.
- mixture.calculate_equilibrium(chemid: int, p: float, t: float, frac: numpy.typing.NDArray[numpy.double], wt: numpy.typing.NDArray[numpy.double], mode_in: str, mode_out: str, eq_option: int = 1, use_realgas: int = 0) tuple[list[float], numpy.typing.NDArray[numpy.double]]#
Get the equilibrium mixture composition.