Finite-Volume Conservation Laws
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal additional columns.
Scrollable figure. Use Left and Right arrow keys to inspect hidden content.
Finite-volume methods evolve cell integrals rather than point values. Their central strength is discrete conservation: the flux leaving one cell is exactly the flux entering its neighbor, even when the continuum solution contains a shock. Conservation does not by itself guarantee accuracy or physical admissibility. Reconstruction, the Riemann flux, source discretization, primitive recovery, and time stepping must be tested as one scheme.
Required background. Ordinary Differential Equations supplies semidiscrete updates and time integration.
Helpful background. Formulations of General Relativity provides the geometric evolution systems and source terms, while Partial Differential Equations and Green Functions supplies conservation laws, characteristics, and weak solutions.
Conservation by flux cancellation
Section titled “Conservation by flux cancellation”For
define the cell average . Integrating the equation gives the semidiscrete update
Summing over cells makes every interior numerical flux cancel pairwise. Only boundary fluxes and sources change the total. This telescoping property survives discontinuities because it follows from the integral form, not from differentiability of .
High-resolution methods reconstruct left and right interface states, apply a limiter or nonlinear stencil, and feed those states to an exact or approximate Riemann solver. The relation among conservative variables, characteristic waves, and shock-capturing updates is developed for relativistic hydrodynamics in Martí and Müller 2003, §§ 2.1–2.3, Eqs. 1–30.
Compare at least two fluxes on the same reconstruction. A two-wave HLL-type flux is robust but diffuses contact structure; a solver resolving the contact can sharpen density while depending on more detailed characteristic information. Harten, Lax, and van Leer 1983, § 4(f), Eq. 4.27 explains why the split-flux construction cannot exactly preserve a stationary contact. This comparison should hold the timestep, limiter, and primitive recovery fixed. Otherwise a sharper profile cannot be attributed to the Riemann solver. Record estimated signal speeds as output, because an underestimated extremal speed can destroy stability even when the algebraic flux formula is implemented correctly.
Relativistic states and admissibility
Section titled “Relativistic states and admissibility”In special relativistic hydrodynamics, primitive variables may be , with Lorentz factor . A common conservative state contains rest-mass density, momentum, and energy combinations such as
for specific enthalpy . With , the ideal-gas closure used below is
The numerical update acts on , but fluxes require primitives, so nonlinear primitive recovery is part of every timestep.
For this one-dimensional special-relativistic system, the flux vector is
The energy flux is because excludes rest-mass energy. Including rest mass in the evolved energy changes that component and must be translated together with its recovery equations. The sound speed and acoustic characteristic speeds are
For interface states , choose signal bounds that enclose the Riemann fan. The HLL flux is
It follows by integrating conservation over the two-wave approximate fan. When all signals travel right or left it reduces respectively to or ; it also gives when . These are useful algebraic checks before the shock-tube test. The physical characteristic structure is given in Martí and Müller 2003, §§ 2.1–2.3, Eqs. 1–30. Taking extrema of endpoint characteristic speeds is an estimate, not a universal proof that nonlinear shock speeds are enclosed; a code must document its speed prescription.
Admissibility requires at least , , and . Reconstruction in conservative or characteristic variables can create an inadmissible interface state even when both neighboring cells are physical. Positivity-preserving fallback and a documented atmosphere policy may be necessary; silently clipping a state changes conservation and must be recorded.
Shock-tube benchmark
Section titled “Shock-tube benchmark”Use the ideal-gas equation of state above with on , outflow ghost cells at both ends, final time , and an initial discontinuity at :
Run equal cells with piecewise-linear primitive-variable reconstruction, the monotonized-central limiter, third-order strong-stability-preserving Runge–Kutta time stepping, and Courant number . Compare the two-wave HLL flux with an exact relativistic Godunov flux while holding every other choice fixed, and compare both cell-average solutions with exact cell averages from the relativistic Riemann solution. Report density, pressure, velocity, and conserved variables, together with error, total conserved quantities, minimum density and pressure, maximum speed, and primitive-recovery failures. The wave pattern and exact-solver construction provide stronger evidence than visual curve agreement.
Use the three grids to compute pairwise observed orders at the same physical time and with the same cell-average norm. Smooth portions may show the reconstruction order, but a shock limits global convergence to approximately first order, while a numerically spreading contact can converge more slowly. These reduced rates are expected and do not imply that the higher-order reconstruction is inactive in smooth regions. LeVeque explains reconstruction, limiters, Riemann solvers, and loss of order at discontinuities in Finite Volume Methods for Hyperbolic Problems, Chapters 10–12 and 17.
Curved spacetime and source balance
Section titled “Curved spacetime and source balance”In curved coordinates, evolve the properly densitized conserved variables and geometric fluxes dictated by the continuum formulation. Metric derivatives often appear as sources. A naive discretization can destroy a stationary equilibrium through imperfect flux–source cancellation. Add a smooth advection benchmark and, where applicable, a known stationary relativistic state to test well balancing separately from shock capture.
At mesh refinement boundaries, refluxing restores conservation by replacing coarse fluxes with the sum of fine fluxes. Without it, local solutions may look convergent while the global budget drifts. Conservation histories and boundary flux integrals must therefore accompany field norms.
Reproducible environment and failure criteria
Section titled “Reproducible environment and failure criteria”Pin the implementation revision, compiler, precision, equation of state, conservative-variable definition, reconstruction, limiter, Riemann solver, flux formula, primitive-recovery tolerance, atmosphere or floor, boundary conditions, time integrator, mesh, and Courant factor. A clean rerun exports cell averages, interface fluxes, conservation budgets, exact-reference errors, refinement results, and every fallback count.
The validity regime assumes a hyperbolic physical state and a Riemann solver appropriate to the equation set. Failure modes include negative density or pressure, superluminal primitives, unlimited oscillations near the discontinuity, inconsistent interface fluxes, a CFL violation, and conservation error hidden by floors. Reject apparent high-order convergence measured only away from the shock, or agreement based on cell-center interpolation that ignores cell averages.
Check your understanding
Section titled “Check your understanding”A run conserves total mass to roundoff but develops negative pressure next to the shock. Has discrete conservation validated the solution?
Solution
No. Flux cancellation validates one structural property, while negative pressure violates physical admissibility and may make primitive recovery undefined. Diagnose reconstruction and the Riemann flux, apply a documented positivity-preserving fallback, and repeat the refinement and exact-solver comparison. Conservation and admissibility are separate acceptance conditions.
References
Section titled “References”- Harten, A., Lax, P. D., and van Leer, B. (1983), “On Upstream Differencing and Godunov-Type Schemes for Hyperbolic Conservation Laws,” SIAM Review 25, 35–61. DOI.
- LeVeque, R. J. (2002), Finite Volume Methods for Hyperbolic Problems, Cambridge University Press. DOI.
- Martí, J. M., and Müller, E. (2003), “Numerical Hydrodynamics in Special Relativity,” Living Reviews in Relativity 6, 7. DOI.