fiesta.properties#

This module contains functions for calculating physical properties such as number density, sound speed, Jeans mass, Mach number, and more.

Functions

calc_chem_density(chem, ndens[, unit])

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

calc_free_fall_time(ndens[, unit])

Calculates free-fall time using \(t_\mathrm{ff} = 2 \times 10^6 \big(\frac{n}{1000~\mathrm{cm}^{-3}}\big)^{-0.5} ~\mathrm{yrs}\).

calc_jeans_length(cs, ndens[, unit])

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}\).

calc_jeans_mass(cs, ndens[, unit])

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\).

calc_mach_numbers(vel, cs)

Calculates Mach numbers using \(\mathcal{M} = \frac{\sigma_v}{c_\mathrm{s}}\).

calc_molecular_weight(chem)

Calculates molecular weight using \(\mathrm{molw} = \frac{1 - 4 x_\mathrm{He}}{1+x_\mathrm{He}-x_\mathrm{H_2}+x_\mathrm{H^+}}\).

calc_number_density(rho[, unit])

Calculates number density using \(n = \frac{\rho}{(1+4x_\mathrm{He})m_\mathrm{p}}\).

calc_sound_speed(temp, molw[, unit])

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

calc_temperature(rho, utherm, nTOT[, unit])

Calculates temperature using \(T = \frac{2}{3}\frac{u_\mathrm{therm} m_\mathrm{avg} m_\mathrm{p}}{k_\mathrm{b}}\).

calc_total_gravitational_potential_energy(...)

Calculates gravitational potential energy using \(E_\mathrm{grav} = \frac{3}{5}\frac{GM^2}{R}\).

calc_total_kinetic_energy(mass, vel[, unit])

Calculates kinetic energy using \(E_\mathrm{kin} = \sum_{i} \frac{1}{2}m_i v_i^2\).

calc_total_thermal_energy(utherm, mass[, unit])

Calculates thermal energy using \(E_\mathrm{therm} = \sum_{i} u_\mathrm{i,therm} m_i\).