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 γij, they are written as

ρt+1γxj(γρvj)=0,
t(ρvi)+1γxj(γ(ρvivj+pδij))=12(vjvk+pγjk)xi(γjk)ρΦxi,
Et+1γxj(γ(E+p)vj)=ρvjΦxj,

where ρ is the mass density, vi is the i-th component of the velocity, p is the pressure, E=ρϵ+12ρvivi 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

1γxi(γγijΦxj)=4πGρ,

with the gravitational constant G, and a general equation of state of the form p=p(ρ,T,Ye), where T is the temperature and Ye is the electron fraction. If Ye0, then we take ρ to be the baryon mass density, and evolve the electron mass density ρe=ρYe separately with the equation

ρet+1γxj(γρevj)=0.

The conservation equations can then be combined into the single equation

Ut+1γxj(γFj(U))=S(U),

where U is the vector of conserved variables, Fj(U) is the flux vector in the j-th direction, and S(U,Φ) is the source vector.