Special Relativistic Godunov SPH: Complete Mathematical Formulation
Comprehensive SRGSPH reference covering notation, conservative forms, SPH formulations, Riemann solvers, primitive recovery, and time integration.
Table of Contents
- Notation and Conventions
- Lagrangian Derivation of Equations of Motion
- Non-Relativistic Lagrangian Formulation
- Relativistic Lagrangian Formulation
- Four-Dimensional Action Principle
- Lagrangian Density for Perfect Fluid
- Alternative Form Using Baryon Number Density
- Energy-Momentum Tensor
- Conservation Laws from Energy-Momentum Tensor
- Canonical Momentum (Relativistic)
- Derivation of Relativistic Euler Equation
- SRGSPH Form of Momentum Equation
- Derivation of Canonical Energy Equation
- Physical Interpretation
- Comparison of Lagrangian Approaches
- Connection to Simulation Implementation
- Theory of Relativistic Hydrodynamics
- Basic Equations (SRGSPH Formulation)
- Conservative Formulation
- SRGSPH Formulation with Fixed Smoothing Length
- SRGSPH Formulation with Variable Smoothing Length
- Riemann Problem Theory
- Riemann Problem: Rarefaction Waves
- Riemann Problem: Shock Waves
- Complete Riemann Solver Algorithm
- Primitive Variable Recovery
- Time Integration
- Numerical Implementation (c=1)
- References
Notation and Conventions
Units and Speed of Light
- Theory: Speed of light kept explicit
- Numerical calculations: [SRGSPH, numerical implementation]
- Minkowski metric:
SRGSPH Symbols (Kitajima et al.)
Spacetime coordinates:
- : time
- or : spatial position vector
- : spacetime coordinates ()
Primitive variables (physical quantities):
- : baryon number density in rest frame [SRGSPH Eq. 114]
- : baryon number density in lab frame [SRGSPH Eq. 91]
- : pressure [SRGSPH Eq. 92]
- : three-velocity [SRGSPH]
- : normal velocity component
- : tangential velocity magnitude
- : thermal energy per baryon [SRGSPH Eq. 120]
- : ratio of specific heats (adiabatic index) [SRGSPH Eq. 119]
- : sound speed
Relativistic quantities:
- : Lorentz factor [SRGSPH Eq. 111]
- : enthalpy per baryon [SRGSPH Eq. 112]
- or : relativistic canonical momentum per baryon [SRGSPH Eq. 104]
- : canonical energy per baryon in lab frame [SRGSPH Eq. 107]
- : four-velocity
Conserved variables (grid-based formulation):
- : conserved rest-mass density
- : conserved momentum density
- : conserved energy density
SPH-specific quantities:
- : baryon number in an SPH particle [SRGSPH Eq. 134]
- : kernel function [SRGSPH Eq. 138]
- or : smoothing length
- or : particle volume [SRGSPH Eq. 221]
- : convolved quantity for particle [SRGSPH Eq. 148]
- : number of spatial dimensions
- : smoothing length parameter [SRGSPH Eq. 231]
- : smoothing coefficient [SRGSPH Eq. 233]
Riemann problem notation:
- : left and right initial states
- : left and right intermediate states
- : pressure in intermediate state
- : normal velocity in intermediate state
- : states ahead and behind a wave
- : self-similarity variable ()
- : invariant mass flux across shock
- : shock velocity
- : shock Lorentz factor
Relationship to Pons et al. Notation
| Quantity | SRGSPH (this doc) | Pons et al. |
|---|---|---|
| Lorentz factor | ||
| Enthalpy per baryon | (with explicit ) | (with ) |
| Pressure | ||
| Adiabatic index | ||
| Baryon density (rest) | or absorbed into | |
| Thermal energy/baryon | or absorbed |
Key difference: SRGSPH uses enthalpy per baryon with baryon number density , while Pons uses specific enthalpy with mass density .
When and using natural units: numerically, but the formulations differ in how they’re derived.
Lagrangian Derivation of Equations of Motion
This section provides the fundamental Lagrangian derivations for both non-relativistic and special relativistic hydrodynamics, showing how the equations of motion used in the simulation arise from first principles.
Non-Relativistic Lagrangian Formulation
Action Principle
The non-relativistic hydrodynamics equations can be derived from a variational principle applied to the action:
where is the Lagrangian density.
Lagrangian Density for Ideal Fluid
For a non-relativistic ideal fluid, the Lagrangian density is:
where:
- is the mass density
- is the velocity field
- is the specific internal energy
- is the specific entropy (constant in isentropic flow)
Euler-Lagrange Equations
Using the Lagrangian formulation with material (Lagrangian) coordinates and spatial (Eulerian) coordinates , the equations of motion are:
Continuity Equation:
Euler Equation (Momentum Conservation):
where:
is the material derivative, and the pressure is:
Energy Equation:
where is the internal energy density.
Derivation of Momentum Equation
Starting from the Lagrangian , the momentum equation follows from:
Computing the variational derivatives:
This yields:
Using the continuity equation to expand the material derivative:
Since , we recover:
Canonical Momentum (Non-Relativistic)
The canonical momentum density is:
The momentum per unit mass is simply .
Relativistic Lagrangian Formulation
Four-Dimensional Action Principle
In special relativity, the action is constructed to be Lorentz invariant:
where and is the Lagrangian density (scalar under Lorentz transformations).
Lagrangian Density for Perfect Fluid
For a relativistic perfect fluid, the Lagrangian density is:
This can be rewritten using the Lorentz factor :
where is the rest-frame (proper) baryon density.
Alternative Form Using Baryon Number Density
Using the rest-frame baryon density and enthalpy per baryon :
where:
is the enthalpy per baryon [SRGSPH Eq. 112].
Energy-Momentum Tensor
The energy-momentum tensor for a perfect fluid is:
where:
- is the energy density (including rest mass)
- is the pressure
- is the four-velocity
- is the Minkowski metric
Conservation Laws from Energy-Momentum Tensor
The equations of motion follow from energy-momentum conservation:
Spatial components (): Momentum conservation
Time component (): Energy conservation
Canonical Momentum (Relativistic)
The canonical momentum density is derived from the Lagrangian:
The canonical momentum per baryon is [SRGSPH Eq. 104]:
where is the lab-frame baryon density.
Derivation of Relativistic Euler Equation
Starting from the spatial components of :
where is the mass density and when .
Expanding and using the continuity equation, this becomes:
SRGSPH Form of Momentum Equation
Using the lab-frame baryon density and canonical momentum per baryon , the momentum equation becomes [SRGSPH Eq. 92]:
This is the equation of motion used in SRGSPH.
Derivation of Canonical Energy Equation
The canonical energy per baryon in the lab frame is defined as [SRGSPH Eq. 107]:
The time evolution follows from energy conservation [SRGSPH Eq. 94]:
Physical Interpretation
Non-relativistic limit: As :
- (for non-relativistic temperatures)
- (canonical momentum → velocity)
- (rest mass + thermal energy)
Relativistic regime: When or :
- Lorentz factor couples all velocity components
- Enthalpy amplifies pressure effects
- Canonical momentum differs significantly from
- Energy includes kinetic and internal contributions weighted by
Comparison of Lagrangian Approaches
| Aspect | Non-Relativistic | Relativistic (SRGSPH) |
|---|---|---|
| Action | ||
| Lagrangian density | (with ) | |
| Canonical momentum | ||
| Momentum per particle | ||
| EoM form | ||
| Energy equation | ||
| Symmetry | Galilean invariance | Lorentz invariance |
Connection to Simulation Implementation
The simulation implements these Lagrangian-derived equations in discretized SPH form:
Non-relativistic SPH (classical GSPH, DISPH):
- Evolves directly
- Pressure gradient computed from kernel-weighted sums
- Energy equation for thermal evolution
Relativistic SPH (SRGSPH):
- Evolves canonical variables and
- Riemann solver computes and at interfaces
- Recovers primitive variables from using quartic solver
- All formulations preserve Lorentz invariance of the underlying Lagrangian
Theory of Relativistic Hydrodynamics
Why Relativistic Hydrodynamics is Different
[Based on Pons §1 and SRGSPH §1]
In classical hydrodynamics, tangential velocities remain constant across waves. In relativistic hydrodynamics, this fundamentally changes:
-
Lorentz factor coupling: All velocity components couple through:
where
-
Enthalpy-momentum coupling: Momentum per baryon is:
Even for slow flows (), if (thermodynamically relativistic), tangential velocities matter.
-
No universal rest frame: For Riemann problems with arbitrary tangential velocities, no single frame exists where all tangential components vanish.
Conservation Laws
The fundamental conservation laws:
- Rest-mass (baryon number) conservation: conserved per fluid element
- Energy-momentum conservation: Encoded in energy-momentum tensor
For a perfect fluid:
where the energy-momentum includes rest mass energy.
Basic Equations (SRGSPH Formulation)
Lagrangian Derivative
[SRGSPH Eq. 100]:
Fundamental Equations
Equation of Continuity [SRGSPH Eq. 90]:
Equation of Motion [SRGSPH Eq. 92]:
Equation of Energy [SRGSPH Eq. 94]:
where , , and are baryon number density, relativistic canonical momentum per baryon, and canonical energy per baryon in the lab frame [SRGSPH, discussion after Eq. 96].
Relativistic Canonical Quantities
Canonical momentum per baryon [SRGSPH Eq. 104]:
Canonical energy per baryon [SRGSPH Eq. 107]:
Lorentz factor [SRGSPH Eq. 111]:
Enthalpy per baryon [SRGSPH Eq. 112]:
where is thermal energy per baryon and is baryon number density in rest frame.
Lab-rest frame relation [SRGSPH Eq. 114]:
Equation of State
For an ideal gas [SRGSPH Eq. 119]:
where is the adiabatic index (ratio of specific heats).
Sound Speed
For an ideal gas [SRGSPH, after Eq. 394]:
With :
Conservative Formulation
For grid-based methods (context for understanding Riemann problems), the conserved variables are:
Rest-mass density (with ):
Momentum density (with , using specific enthalpy when ):
Energy density (with ):
These satisfy conservation form:
SRGSPH Formulation with Fixed Smoothing Length
Kernel Function
[SRGSPH Eq. 138]: Gaussian kernel in dimensions:
Number Density Field
[SRGSPH Eq. 134]:
where is the (constant) baryon number per SPH particle.
Convolution
[SRGSPH Eqs. 146-148]:
Accuracy [SRGSPH Eq. 154]: Error is :
Equation of Motion (Fixed h)
[SRGSPH Eqs. 162-166], starting from Lagrangian form:
Equation of Energy (Fixed h)
[SRGSPH Eqs. 176-181]:
Evaluation of Convolution Integrals
[SRGSPH Eqs. 188-191], using product of Gaussians:
where:
Effective volume factor [SRGSPH Eq. 194]:
Weighted average [SRGSPH Eq. 196]:
Approximations
[SRGSPH, discussion after Eq. 200]:
- approximated by interpolation:
- replaced by Riemann solution:
Final SRGSPH Equations (Fixed h)
Equation of Motion [SRGSPH Eq. 209]:
Equation of Energy [SRGSPH Eq. 212]:
Conservation: Anti-symmetry in ensures total momentum and energy conservation [SRGSPH Eq. 214].
SRGSPH Formulation with Variable Smoothing Length
Particle Volume Definition
[SRGSPH Eq. 221]:
Smoothing Length Definition
[SRGSPH Eq. 231]:
where [SRGSPH Eq. 233]:
Typical values [SRGSPH, after Eq. 236]: ,
Iterative solution [SRGSPH, discussion after Eq. 238]: Iterate Eqs. (231) and (233) until convergence.
Number Density (Volume-Based)
[SRGSPH Eq. 243]:
where varies spatially.
Final SRGSPH Equations (Variable h)
Equation of Motion [SRGSPH Eq. 371]:
Equation of Energy [SRGSPH Eq. 373]:
where averaging ensures symmetry: [SRGSPH Eq. 365].
Riemann Problem Theory
Problem Setup
Initial left and right states at , :
- Left:
- Right:
Compute derived quantities using SRGSPH formulations:
- from velocities [Eq. 111]
- from EOS [Eqs. 112, 119]
Wave Structure
[Pons §5]: Three waves emerge:
- : shock or rarefaction
- : contact discontinuity
Contact discontinuity:
- Continuous: ,
- Discontinuous: , ,
Self-Similarity
All waves satisfy , reducing PDEs to ODEs.
Riemann Invariants (Key Difference from Newtonian)
[Pons Eqs. 3.8-3.9, adapted to SRGSPH]:
Across rarefactions and shocks, with :
Physical meaning: The “relativistic tangential momentum per baryon” is conserved, but actual tangential velocity changes due to enthalpy and Lorentz factor variations.
Riemann Problem: Rarefaction Waves
Characteristic Speeds
[Pons Eq. 3.6], with :
Reduced System
[Pons Eqs. 3.7-3.9, with SRGSPH variables, ]:
ODE:
where is mass density, and when .
Riemann invariants:
ODE in Standard Form
[Pons Eq. 3.10, with ]:
where:
Post-Rarefaction Tangential Velocity
[Pons Eq. 3.11, with SRGSPH , ]:
Riemann Problem: Shock Waves
Rankine-Hugoniot Jump Conditions
[Pons Eqs. 4.1-4.2]: Mass and energy-momentum conservation across shocks.
Invariant Mass Flux
[Pons Eq. 4.7, with ]:
where and:
Tangential Velocity Invariant
[Pons Eqs. 4.10-4.11, with SRGSPH , ]:
Taub Adiabat
[Pons Eq. 4.15, with SRGSPH ]:
For ideal gas, this becomes a quadratic for [Pons Eq. 4.16, adapted].
Mass Flux from Pressure
[Pons Eq. 4.17]:
Complete Riemann Solver Algorithm
Solution Procedure
[Pons §5, SRGSPH §2.7.2]:
-
Setup: Convert primitive variables to SRGSPH canonical form
- Compute using SRGSPH Eqs. 111, 112, 119
-
Define wave functions: , using rarefaction/shock relations
-
Solve for : Root of
-
Compute intermediate states: , using appropriate wave relations
-
Extract interface state [SRGSPH Eq. 423]:
- If : use
- If : use
- Return
Primitive Variable Recovery
[SRGSPH §2.8]:
After time integration, recover primitives from .
Quartic Equation for Lorentz Factor
[SRGSPH, after Eq. 409]: With :
Solve numerically for .
Velocity Recovery
[SRGSPH Eq. 416]:
Other Primitive Variables
From and known :
With :
Time Integration
Euler Method
[SRGSPH Eqs. 425-428]:
CFL Condition
[SRGSPH Eqs. 432-433]:
Typical:
MUSCL Reconstruction
[SRGSPH §2.7.3]: For second-order accuracy, reconstruct states at interfaces using gradients with shock detection and limiting.
Numerical Implementation (c=1)
Setting c=1
For numerical calculations [SRGSPH, numerical sections], set :
Correspondence with Pons Notation
When and using mass density :
- SRGSPH ↔ Pons (numerically equal)
- SRGSPH ↔ Pons (or with )
- SRGSPH ↔ Pons (or with )
This allows direct use of Pons’s Riemann solver formulas with SRGSPH variables.
References
-
[SRGSPH]: Kitajima, K., Inutsuka, S., & Seno, I. (2025). Special Relativistic Smoothed Particle Hydrodynamics Based on Riemann Solver. Journal of Computational Physics (accepted).
-
[Pons]: Pons, J.A., Martí, J.M., & Müller, E. (2000). The exact solution of the Riemann problem with non-zero tangential velocities in relativistic hydrodynamics. Journal of Fluid Mechanics, 422, 125-139.
-
Inutsuka, S. (2002). Reformulation of Smoothed Particle Hydrodynamics with Riemann Solver. Journal of Computational Physics, 179, 238-267.