Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Equations

Fluids, radiation, magnetic fields, and dust

Assuming the speed of light is not reduced (\(\hat{c} = c\)), Quokka solves the following conservation laws for the cell-centered variables, as written below in the Heaviside–Lorentz system of units:

where the total fluid energy is

and the face-centered magnetic field is evolved according to the ideal MHD induction equation:

Quokka also solves the non-conservative auxiliary internal energy equation:

and the gravitational Poisson equation:

where

  • \(\rho\) is the gas density,
  • \(\vec{v}\) is the gas velocity,
  • \(E\) is the total fluid energy density, including magnetic energy when MHD is enabled,
  • \(\rho e_{\text{aux}}\) is the auxiliary gas internal energy density,
  • \(X_n\) is the fractional concentration of species \(n\),
  • \(\dot{X}_n\) is the chemical reaction term for species \(n\),
  • \(\mathcal{H}\) is the optically-thin volumetric heating term (radiative and chemical),
  • \(\mathcal{C}\) is the optically-thin volumetric cooling term (radiative and chemical),
  • \(p(\rho, e)\) is the gas pressure derived from a general convex equation of state,
  • \(\vec{B}\) is the magnetic field,
  • \(\mathsf{I}\) is the identity tensor,
  • \(E_g\) is the radiation energy density for group \(g\),
  • \(F_g\) is the radiation flux for group \(g\),
  • \(\mathsf{P}_g\) is the radiation pressure tensor for group \(g\),
  • \(G_g\) is the radiation four-force \([G^0_g, \vec{G}_g]\) due to group \(g\),
  • \(\Delta S_{\text{rad}}\) is the change in gas internal energy due to radiation over a timestep,
  • \(\phi\) is the Newtonian gravitational potential,
  • \(\vec{g}\) is the gravitational acceleration,
  • \(\rho_i\) is the mass density due to particle \(i\),
  • \(\rho_{\mathrm{d},k}\) is the dust mass density for dust species \(k\) (\(k \in [1, N_{\mathrm{dust}}]\)),
  • \(\vec{v}_{\mathrm{d},k}\) is the dust velocity for dust species \(k\),
  • \(T_{\mathrm{s},k}\) is the aerodynamic stopping time for dust species \(k\),
  • \(\omega\) is the fraction of frictional heating deposited into the gas.

Note that since work done by radiation on the gas is included in the \(c \sum_g G^0_g\) term, \(S_{\text{rad}}\) is not the same as \(c \sum_g G^0_g\).

Collisionless particles

Quokka solves the following equation of motion for collisionless particles:

where \(\vec{x}_i\) is the position vector of particle \(i\).