fiesta.properties.calc_sound_speed#

fiesta.properties.calc_sound_speed(temp, molw, unit=Unit('cm / s'))[source]#

Calculates sound speed using \(c_\mathrm{s} = 10^{-5} \sqrt{\frac{k_\mathrm{b}T}{\mathrm{molw}\times m_\mathrm{p}}} ~\mathrm{km/s}\).

Parameters:
  • temp (Quantity) – Temperature \(T\).

  • molw (Quantity) – Molecular weight \(\mathrm{molw}\) (unitless).

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

Returns:

cs (Quantity) – Sound speed \(c_\mathrm{s}\).