Analysis of the particle relaxation method for generating uniform particle distributions in smoothed particle hydrodynamics

Fan Yu, Xiaoliang Li, Shuoguo Zhang, Xiangyu Hu, Nikolaus A. Adams · DOI

Abstract

We establish a theoretical framework of the particle relaxation method for uniform particle generation of Smoothed Particle Hydrodynamics. We achieve this by reformulating the particle relaxation as an optimization problem. The objective function is an integral difference between discrete particle-based and smoothed-analytical volume fractions. The analysis demonstrates that the particle relaxation method in the domain interior is essentially equivalent to employing a gradient descent approach to solve this optimization problem, and we can extend such an equivalence to the bounded domain by introducing a proper boundary term. Additionally, each periodic particle distribution has a spatially uniform particle volume, denoted as characteristic volume. The relaxed particle distribution has the largest characteristic volume, and the kernel cut-off radius determines this volume. This insight enables us to control the relaxed particle distribution by selecting the target kernel cut-off radius for a given kernel function.

Introduction

Smoothed Particle Hydrodynamics (SPH) is a robust mesh-free method widely used for simulating fluids and solids, particularly in scenarios involving large deformations or complex moving boundaries. However, SPH performance is highly sensitive to particle distribution. Irregular or clumped particles can cause the "partition of unity" property to fail, leading to numerical errors and poor convergence.

To mitigate this, researchers often use "particle relaxation," a process where particles are pushed into a uniform state via repulsive forces. While effective, this technique has historically lacked a rigorous theoretical foundation. This paper provides that foundation by reframing particle relaxation as a formal optimization problem.

Methodology: Relaxation as Optimization

The core contribution of this work is the reformulation of heuristic repulsive forces into a mathematical gradient descent process.

Objective Function and Gradient Descent

The authors define a "total error" ($E$) based on the integral difference between the discrete particle-based volume fraction and a smoothed-analytical volume fraction. This error quantifies how much the particle distribution deviates from an ideal smooth density. The study proves that the standard repulsive force used in relaxation is mathematically equivalent to the negative gradient of this error. Thus, moving particles to minimize $E$ is a gradient descent optimization.

Continuous Boundary Correction

Handling bounded domains is a common challenge in SPH. Traditional methods often force particles into rigid, grid-like layers near surfaces, which can disrupt the interior lattice. The authors introduce an analytical boundary term that provides a continuous confining force. This allows the particle distribution to naturally adapt to the boundary geometry while maintaining its optimal interior pattern.

Illustration of the analytical boundary term and compensating forces used to maintain uniform particle distribution near boundaries.

Pattern Prediction and Control

A key insight of this research is that the final lattice pattern (e.g., hexagonal or square) is directly determined by the ratio of the kernel cut-off radius ($h$) to the particle spacing ($\Delta x$).

  • Hexagonal distributions are achieved when $h/\Delta x$ is between 1.5 and 1.8.
  • Square distributions emerge when the ratio is between 1.85 and 2.05.

This "control knob" allows engineers to precisely tune the particle arrangement for specific simulation needs by simply adjusting the kernel parameters.

Key Results and Validation

The theoretical framework was validated through several numerical experiments, including 2D circular domains and 3D cubic domains.

  • Convergence: The method demonstrates a higher decay rate of error compared to existing techniques, making it more computationally efficient for pre-processing.
  • Geometric Fidelity: Simulations showed perfect agreement with theoretical predictions. In a circular domain, the method produced a beautiful, body-fitted hexagonal distribution without manual tuning, respecting the curved boundary naturally.
A uniform, body-fitted hexagonal particle distribution generated within a circular domain using the proposed relaxation method.

Limitations and Future Outlook

While the 2D results are definitive, achieving perfectly isotropic cubic lattices in 3D remains challenging with standard kernel functions across all radii. Future work will focus on designing new kernel functions with "unified" cut-off radii to optimize isotropy in 3D. Additionally, the authors plan to extend this framework to generate uniform particle distributions on curved surfaces (co-dimension one manifolds), further expanding the utility of SPH for complex engineering problems.

Summary updated

Abstract

We establish a theoretical framework of the particle relaxation method for uniform particle generation of Smoothed Particle Hydrodynamics. We achieve this by reformulating the particle relaxation as an optimization problem. The objective function is an integral difference between discrete particle-based and smoothed-analytical volume fractions. The analysis demonstrates that the particle relaxation method in the domain interior is essentially equivalent to employing a gradient descent approach to solve this optimization problem, and we can extend such an equivalence to the bounded domain by introducing a proper boundary term. Additionally, each periodic particle distribution has a spatially uniform particle volume, denoted as characteristic volume. The relaxed particle distribution has the largest characteristic volume, and the kernel cut-off radius determines this volume. This insight enables us to control the relaxed particle distribution by selecting the target kernel cut-off radius for a given kernel function.
BibTeX
@inproceedings{yu2025analysis,
  author = {Fan Yu and Xiaoliang Li and Shuoguo Zhang and Xiangyu Hu and Nikolaus A. Adams},
  title = {{Analysis of the particle relaxation method for generating uniform particle distributions in smoothed particle hydrodynamics}},
  booktitle = {Computational},
  year = {2025},
  doi = {10.1007/s40571-025-00965-6},
}

Loading related content...

Figure