fiesta.properties.calc_jeans_length#

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

Calculates Jeans length using \(\lambda_\mathrm{J} = 0.4 \big(\frac{c_s}{2~\mathrm{km/s}}\big) \big(\frac{n}{1000~\mathrm{cm}^{-3}}\big)^{-0.5} ~\mathrm{pc}\).

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.cm.

Returns:

jeans_length (Quantity) – Jeans length \(\lambda_\mathrm{J}\).