fiesta.properties.calc_chem_density#

fiesta.properties.calc_chem_density(chem, ndens, unit=Unit('1 / cm3'))[source]#

Calculates chemical densities \(n_\mathrm{HI}\), \(n_\mathrm{H^+}\), \(n_\mathrm{H_2}\), \(n_\mathrm{CO}\), \(n_\mathrm{tot}\).

Parameters:
  • chem (Quantity) – See variable chem in ArepoVoronoiGrid.

  • ndens (Quantity) – Number density \(n\).

  • unit (Unit, optional) – Unit to output the result in. Default value is u.cm**-3.

Returns:

  • nHI (Quantity) – Neutral hydrogen number density \(n_\mathrm{HI}\).

  • nHp (Quantity) – Ionized hydrogen number density \(n_\mathrm{H^+}\).

  • nH2 (Quantity) – Molecular hydrogen number density \(n_\mathrm{H_2}\).

  • nCO (Quantity) – CO number density \(n_\mathrm{CO}\).

  • nTOT (Quantity) – Total number density \(n_\mathrm{tot}\).