Approaches to conservative Smoothed Particle Hydrodynamics with entropy

Michal Pavelka, Václav Klika, Ondrej KinclarXiv 2024 · DOI

Abstract

Smoothed particle hydrodynamics (SPH) is a widely used mesh-free method, typically applied to barotropic fluids where pressure is a function solely of local mass density. This paper presents a framework to incorporate entropy into SPH, allowing pressure to depend on temperature while ensuring the growth of total entropy, conservation of total energy, and symplecticity of the reversible dynamics. By utilizing Poisson reduction and the Lagrange-Euler transformation, we derive a system of ordinary differential equations that maintain geometric accuracy. We explore various approaches to defining particle volume and validate the framework through benchmarks including adiabatic expansion, Rayleigh-Bénard convection, and hyperbolic heat conduction.

Introduction: Beyond Barotropic Fluids

Smoothed Particle Hydrodynamics (SPH) has become a cornerstone in computational fluid dynamics, particularly for simulations involving complex geometries or large deformations, such as galaxy formation or high-velocity impacts. However, a significant limitation of standard SPH is its barotropic nature: the fluid pressure is assumed to depend only on mass density. In many physical systems, pressure is also a function of temperature and entropy.

Furthermore, adding dissipative effects like viscosity or heat conduction often leads to a loss of energy conservation if not handled with mathematical rigor. This work addresses these gaps by providing a consistent derivation for SPH particles equipped with entropy, ensuring that the resulting simulations are both physically accurate and numerically stable.

Methodology: Hamiltonian Mechanics and Poisson Reduction

The core of this approach lies in the use of Hamiltonian mechanics and Poisson reduction. Rather than discretizing the final fluid equations, the authors discretize the underlying kinematics—specifically the Poisson bracket. This ensures that the reversible part of the motion is symplectic, a property that prevents numerical energy drift over long simulation periods.

Derived SPH equations (16a, 16b) for particle position and momentum using the Poisson reduction framework.

As shown in the derived equations above, the evolution of particle positions and momenta is coupled with the thermodynamic state. To handle irreversible processes such as heat flow, the framework incorporates the GENERIC (General Equation for Non-Equilibrium Reversible-Irreversible Coupling) formalism. This guarantees that while entropy increases in accordance with the Second Law of Thermodynamics, the total energy remains perfectly conserved.

The Challenge of Particle Volume

A critical component of SPH is defining the "volume" of a particle to calculate densities. This paper compares five distinct strategies:

  1. Mass-based volume: The standard approach, optimized for mass conservation.
  2. Entropic-based volume: Effective for systems with smooth entropy gradients.
  3. Direct volume: Calculated via SPH kernel sums.
  4. Implicit-based volume: Uses matrix inversion for high precision, albeit at a higher computational cost.
  5. Mixed-volume approach: A hybrid method that smooths both mass and entropy fields, proving most robust for handling sharp discontinuities.

Key Results and Benchmarks

The framework was validated using several numerical benchmarks. In non-dissipative tests, the total energy error was remarkably low, approximately $10^{-5}\%. Even with the introduction of viscosity and heat conduction, the error remained bounded at $10^{-3}%.

Visualization of a localized field within the SPH framework, illustrating the discrete nature of particle-based simulations during benchmark testing.

One of the most significant achievements was the simulation of Rayleigh-Bénard convection without the Boussinesq approximation. The model successfully captured the formation of mushroom-like plumes and the onset of instability in a compressible fluid. Additionally, the authors extended the framework to model hyperbolic heat conduction. Unlike standard Fourier-based models where heat propagates infinitely fast, this model treats heat as a wave with finite speed, which is essential for simulating fast laser pulses or low-temperature physics.

Conclusion and Future Work

This research provides a robust mathematical foundation for entropy-inclusive SPH. While the implicit volume definition offers the highest precision, its computational cost remains a hurdle for massive 3D simulations. Future work will focus on integrating artificial viscosity to handle shock waves (velocity discontinuities) and applying this framework to complex systems like superfluid helium-4, where temperature waves—known as "second sound"—play a dominant role.

Summary updated

Abstract

Smoothed particle hydrodynamics (SPH) is typically used for barotropic fluids, where the pressure depends only on the local mass density. Here, we show how to incorporate the entropy into the SPH, so that the pressure can also depend on the temperature, while keeping the growth of the total entropy, conservation of the total energy, and symplecticity of the reversible part of the SPH equations. The SPH system of ordinary differential equations with entropy is derived by means of the Poisson reduction and the Lagrange-Euler transformation. We present several approaches towards SPH with entropy, which are then illustrated on systems with discontinuities, on adiabatic and nonadiabatic expansion, and on the Rayleigh-Beenard convection without the Boussinesq approximation. Finally, we show how to model hyperbolic heat conduction within the SPH, extending the SPH variables with not only entropy but also a heat-flux-related vector field.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Non-adiabatic expansionEntropic SPH, mass-volume approachTotal energy increase due to numerical error0.006\%particles=43017 · viscosity=μ=0.001 · Fourier dissipation=λ=0.1
Source quote
L653: \caption{Total energy in time gradually increases due to numerical errors in the dissipation (by 0.006%). However, the error decreases with the time step (linearly, as it is dominated by the first-order dissipative terms). The temperature initially drops due to the nearly adiabatic expansion and then recovers its initial value due to the dissipative effects.\label{fig.avE}}
BibTeX
@misc{pavelka2024approaches,
  author = {Michal Pavelka and Václav Klika and Ondrej Kincl},
  title = {{Approaches to conservative Smoothed Particle Hydrodynamics with entropy}},
  year = {2024},
  eprint = {2406.14229},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.14229},
}

Loading related content...

Figure