Globally time-reversible fluid simulations with smoothed particle hydrodynamics

Ondrej Kincl, Michal Pavelka
4/19/2022
math.NAmath.SGphysics.flu-dyn

Official code: OndrejKincl/SmoothedParticles.jl (40 stars, Julia, MIT, last commit 2026-06-28).

Abstract

This paper describes an energy-preserving and globally time-reversible code for weakly compressible smoothed particle hydrodynamics (SPH). We do not add any additional dynamics to the Monaghan's original SPH scheme at the level of ordinary differential equation, but we show how to discretize the equations by using a corrected expression for density and by invoking a symplectic integrator.

Show full abstract

Moreover, to achieve the global-in-time reversibility, we have to correct the initial state, implement a conservative fluid-wall interaction, and use the fixed-point arithmetic. Although the numerical scheme is reversible globally in time (solvable backwards in time while recovering the initial conditions), we observe thermalization of the particle velocities and growth of the Boltzmann entropy. In other words, when we do not see all the possible details, as in the Boltzmann entropy, which depends only on the one-particle distribution function, we observe the emergence of the second law of thermodynamics (irreversible behavior) from purely reversible dynamics.

View on arXivView PDF

Code Implementations(1)

MIT

A Julia framework for smoothed particle hydrodynamics. Requires Julia 1.5 or newer.

405JuliaOct 30, 20215 months agoMIT

Similar Papers

Cite this paper

@article{kincl2022globally,
  title  = {Globally time-reversible fluid simulations with smoothed particle hydrodynamics},
  author = {Ondrej Kincl and Michal Pavelka},
  year   = {2022},
  eprint = {2204.08884},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.08884}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.08884.svg)](https://codeofpaper.com/paper/2204.08884)

Discussion