Physical Overview
This solver solves the Euler equations of non-relativistic hydrodynamics. These equations represent the conservation of mass, momentum, and energy in a non-viscous fluid. In a curvilinear coordinate system with metric tensor components \(\gamma_{ij}\), they are written as
where \(\rho\) is the mass density, \(v^{i}\) is the i-th component of the velocity, \(p\) is the pressure, \(E = \rho \epsilon + \frac{1}{2} \rho v^{i} v_{i}\) is the energy density with specific internal energy \(\epsilon\), \(\Phi\) is the gravitational potential, and \(\sqrt{\gamma}\) is the determinant of the metric. This system is closed by both Poisson’s equation
with the gravitational constant \(G\), and a general equation of state of the form \(p = p(\rho, T, Y_{e})\), where \(T\) is the temperature and \(Y_{e}\) is the electron fraction. If \(Y_{e} \neq 0\), then we take \(\rho\) to be the baryon mass density, and evolve the electron mass density \(\rho_{e} = \rho Y_{e}\) separately with the equation
The conservation equations can then be combined into the single equation
where \(\bf{U}\) is the vector of conserved variables, \(\bf{F}^{j}(\bf{U})\) is the flux vector in the j-th direction, and \(\bf{S}(\bf{U}, \Phi)\) is the source vector.