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 , they are written as
where is the mass density, is the i-th component of
the velocity, is the pressure, is the energy density with specific internal energy
, is the gravitational potential,
and is the determinant of the metric. This system
is closed by both Poisson’s equation
with the gravitational constant ,
and a general equation of state of the
form , where is the temperature
and is the electron fraction.
If , then we take to be the
baryon mass density, and evolve the electron mass density
separately with the equation
The conservation equations can then be combined into the single equation
where is the vector of conserved variables, is
the flux vector in the j-th direction, and is the source vector.