bloc.carbon_utils#

Functions#

get_solid_carbon_species(gas[, n_C_min, ...])

Return a list of solid carbon species from the gas phase object.

get_solid_carbon_mass_fraction(gas[, solid_sp, n_C_min])

Return the mass fraction of solid carbon species in the gas object.

Module Contents#

bloc.carbon_utils.get_solid_carbon_species(gas, n_C_min=300, solid_species_base=['C(s)', 'C(soot)', 'CSOLID'])#

Return a list of solid carbon species from the gas phase object.

Parameters:
  • gas (cantera.Solution) – The solution object from Cantera.

  • n_C_min (int, optional) – Minimum number of carbon atoms to consider a species as solid. Default is 300.

Returns:

solid_species – A list of solid species names that have at least n_C_min carbon atoms OR are in the predefined solid species list.

Return type:

list of str

bloc.carbon_utils.get_solid_carbon_mass_fraction(gas, solid_sp=['C(s)', 'C(soot)', 'CSOLID'], n_C_min=300)#

Return the mass fraction of solid carbon species in the gas object.

Parameters:
  • gas (cantera.Solution) – The gas object containing gaseous species and soot.

  • solid_sp (list of str, optional) – List of solid species to consider. Default is [“C(s)”, “C(soot)”, “CSOLID”].

  • n_C_min (int, optional) – Minimum number of carbon atoms to consider a species as solid. Default is 300. This is used as a second filter to identify solid carbon species. A specie is considered solid if it satisfies one criterium (s in solid_sp) OR the other (n_C >= n_C_min).

Returns:

The mass fraction of solid carbon species in the gas object.

Return type:

float