fuellib.fuel.mixture.Mixture

class fuellib.fuel.mixture.Mixture(fuel)

Bases: object

Class representing fuel mixture.

Initialize the Mixture class with fuel data.

Methods

aromatics

Calculate aromatics content of the mixture.

dcn

Calculate derived cetane number of the mixture.

k

Calculate thermal conductivity of the mixture.

lhv

Calculate heat of combustion (lower heating value) of the mixture.

mu

Calculate dynamic viscosity of the mixture.

mw

Calculate the mean molecular weight of the mixture.

naphthalenes

Calculate naphthalenes content of the mixture.

nu

Calculate kinematic viscosity of the mixture.

pvap

Calculate vapor pressure of the mixture.

pvap_antoine_coeffs

Estimate Antoine coefficients for vapor pressure of the mixture.

rho

Calculate mixture density at a given temperature.

sigma

Calculate surface tension of the mixture.

smoke_point

Calculate smoke point of the mixture.

t_flash

Calculate flash point of the mixture.

t_freeze

Calculate freeze point of the mixture.

ysi

Calculate yield sooting index of the mixture.

Parameters:

fuel (Fuel)

__init__(fuel)

Initialize the Mixture class with fuel data.

Parameters:

fuel (Fuel)

Return type:

None

aromatics(yi)

Calculate aromatics content of the mixture.

Parameters:

yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

Returns:

Mixture aromatics content in volume percent.

Return type:

Quantity[float]

dcn(yi, *, temp_ref=Quantity(298.15, 'kelvin'))

Calculate derived cetane number of the mixture.

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

  • temp_ref (Quantity[float]) – Reference temperature for liquid densities.

Returns:

Mixture derived cetane number.

Return type:

Quantity[float]

k(yi, temp)

Calculate thermal conductivity of the mixture.

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

  • temp (Quantity[float]) – Temperature to compute property.

Returns:

Thermal conductivity in W/m/K.

Return type:

Quantity[float]

lhv(yi)

Calculate heat of combustion (lower heating value) of the mixture.

Parameters:

yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

Returns:

Mixture heat of combustion in J/kg.

Return type:

Quantity[float]

mu(yi, temp, correlation='Nannoolal', mixing_rule='Kendall-Monroe')

Calculate dynamic viscosity of the mixture.

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound.

  • temp (Quantity[float]) – Temperature to compute property.

  • correlation (Literal['Dutt', 'Nannoolal']) – Component viscosity correlation (“Dutt” or “Nannoolal”). Defaults to “Nannoolal”.

  • mixing_rule (Literal['Kendall-Monroe', 'Arrhenius']) – Mixture rule (“Kendall-Monroe” or “Arrhenius”). Defaults to “Kendall-Monroe”.

Returns:

Mixture dynamic viscosity in Pa*s.

Raises:

ValueError – If correlation is not Dutt or Nannoolal.

Return type:

Quantity[float]

mw(yi=None)

Calculate the mean molecular weight of the mixture.

Parameters:

yi (Quantity[ndarray[tuple[int]]] | None) – Mass fractions of each compound. Defaults to fuel.y0 (initial mass fractions).

Returns:

Mean molecular weight of the mixture in kg/mol.

Return type:

Quantity[float]

naphthalenes(yi)

Calculate naphthalenes content of the mixture.

Parameters:

yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

Returns:

Mixture naphthalenes content in volume percent.

Return type:

Quantity[float]

nu(yi, temp, correlation='Nannoolal', mixing_rule='Kendall-Monroe')

Calculate kinematic viscosity of the mixture.

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound.

  • temp (Quantity[float]) – Temperature to compute property.

  • correlation (Literal['Dutt', 'Nannoolal']) – Component viscosity correlation (“Dutt” or “Nannoolal”). Defaults to “Nannoolal”.

  • mixing_rule (Literal['Kendall-Monroe', 'Arrhenius']) – Mixture rule (“Kendall-Monroe” or “Arrhenius”). Defaults to “Kendall-Monroe”.

Returns:

Mixture kinematic viscosity in m^2/s.

Raises:

ValueError – If correlation is not Dutt or Nannoolal.

Return type:

Quantity[float]

pvap(yi, temp, correlation='Lee-Kesler')

Calculate vapor pressure of the mixture.

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

  • temp (Quantity[float]) – Temperature to compute property.

  • correlation (Literal['Ambrose-Walton', 'Lee-Kesler']) – Correlation method (“Ambrose-Walton” or “Lee-Kesler”).

Returns:

Mixture vapor pressure in Pa.

Return type:

Quantity[float]

pvap_antoine_coeffs(yi, temp_vals=None, units='mks', correlation='Lee-Kesler')

Estimate Antoine coefficients for vapor pressure of the mixture.

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

  • temp_vals (Quantity[ndarray[tuple[int]]] | None) – Temperature range or nodes for Antoine fit in Kelvin. Defaults to [273.15, min(Tb_mix)].

  • units (Literal['mks', 'cgs', 'dyne/cm^2', 'Pa']) – Units for pressure in fit. Defaults to “mks” (Pa).

  • correlation (Literal['Ambrose-Walton', 'Lee-Kesler']) – Correlation method. Defaults to “Lee-Kesler”.

Returns:

Coefficients A, B, C, D.

Return type:

tuple[float, float, float, float]

rho(yi, temp)

Calculate mixture density at a given temperature.

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound.

  • temp (Quantity[float]) – Temperature to compute property.

Returns:

Mixture density in kg/m^3.

Return type:

Quantity[float]

sigma(yi, temp, correlation='Brock-Bird')

Calculate surface tension of the mixture.

Uses arithmetic pseudo-property method recommended by Hugill and van Welsenes (1986).

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

  • temp (Quantity[float]) – Temperature to compute property.

  • correlation (Literal['Pitzer', 'Brock-Bird']) – Correlation method (“Pitzer” or “Brock-Bird”). Defaults to “Brock-Bird”.

Returns:

Mixture surface tension in N/m.

Return type:

Quantity[float]

smoke_point(yi, correlation='NJFCP')

Calculate smoke point of the mixture.

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

  • correlation (Literal['NJFCP', 'McEnally']) – Smoke point correlation (“NJFCP” or “McEnally”). Defaults to “NJFCP”.

Returns:

Mixture smoke point in mm.

Return type:

Quantity[float]

t_flash(yi, *, correlation='Alibakhshi', mixing_rule='Liaw')

Calculate flash point of the mixture.

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

  • correlation (Literal['Alqaheem', 'Alibakhshi']) – Correlation method (“Alqaheem” or “Alibakhshi”). Defaults to “Alibakhshi”.

  • mixing_rule (Literal['linear', 'Liaw']) – Mixing rule to apply (“linear” or “Liaw”). See documentation for details. Defaults to “Liaw”.

Returns:

Mixture flash point in K.

Raises:

ValueError – If an unknown correlation method is specified.

Return type:

Quantity[float]

t_freeze(yi, *, alpha=1.0)

Calculate freeze point of the mixture.

Parameters:
  • yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

  • alpha (float) – Scaling applied to the ideal mixing-entropy term. Defaults to 1.0.

Returns:

Mixture freeze point in K.

Return type:

Quantity[float]

ysi(yi)

Calculate yield sooting index of the mixture.

Parameters:

yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.

Returns:

Mixture yield sooting index.

Return type:

Quantity[float]