fiesta.properties.calc_jeans_mass#

fiesta.properties.calc_jeans_mass(cs, ndens, unit=Unit('g'))[source]#

Calculates Jeans mass using \(M_\mathrm{J} = 2 \big(\frac{c_s}{2~\mathrm{km/s}}\big)^3 \big(\frac{n}{1000~\mathrm{cm}^{-3}}\big)^{-0.5} ~\mathrm{M}_\odot\).

Parameters:
  • cs (Quantity) – Sound speed \(c_s\).

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

  • unit (Unit, optional) – Unit to output the result in. Default value is u.g.

Returns:

jeans_mass (Quantity) – Jeans mass \(M_\mathrm{J}\).