A scalable Lagrangian particle tracking method

Giacomo Baldan, Tommaso Bellosta, A. Guardone2021

Abstract

Particle tracking within underlying flow fields is a cornerstone of both industrial process analysis and the study of natural phenomena. However, implementing Lagrangian Particle Tracking (LPT) on distributed-memory architectures presents significant challenges, particularly regarding load balancing between fluid elements and particle distributions. In unsteady simulations, parallel efficiency fluctuates over time, further complicated by the difficulty of initial particle localization within arbitrarily shaped subdomains. This paper presents an innovative parallel ray-tracing algorithm for particle location and a two-constrained domain subdivision strategy. The former utilizes global identifiers to minimize inter-process communication, while the latter balances mesh element distribution with predicted particle workloads. By employing a preliminary "tagging" simulation to weight cells based on crossing probability, the proposed method achieves a computational time reduction of up to 78% and a 44% improvement in speedup compared to standard flow-based subdivision.

Introduction

Lagrangian Particle Tracking (LPT) is essential for simulating complex multiphase flows, such as fuel injection in internal combustion engines, pollutant dispersion in the atmosphere, and ice accretion on aircraft surfaces. These simulations involve two distinct frames of reference: the Eulerian frame, which handles the fixed fluid mesh, and the Lagrangian frame, which tracks individual particles moving through that mesh.

When these simulations are scaled across modern supercomputers using Message Passing Interface (MPI), a primary bottleneck emerges: load imbalance. While the fluid mesh can be divided equally among processors, particles often cluster in specific regions of the flow. This results in "hotspots" where a single processor is overwhelmed by particle calculations while others remain idle. Furthermore, the initial task of determining which processor "owns" a particle as it enters the domain—the particle location problem—often leads to excessive communication overhead.

Methodology

To address these inefficiencies, this work introduces two primary algorithmic advancements designed for high-performance computing environments.

1. Parallel Ray Tracing for Particle Location

Locating particles within complex, unstructured grids is computationally expensive. The authors developed a parallel ray-tracing algorithm that assigns a global identifier to each particle. This approach streamlines the hand-off process between processors. By optimizing how the system identifies the subdomain containing a specific particle, the algorithm significantly reduces the "chatter" or synchronization overhead typically required in distributed-memory environments.

2. Two-Constrained Domain Subdivision

Traditional domain decomposition focuses almost exclusively on the Eulerian mesh, ensuring each processor handles an equal number of fluid cells. This work proposes a "two-constrained" approach that simultaneously considers:

  • Mesh Balance: Maintaining an equal distribution of fluid elements to ensure the underlying flow solver remains efficient.
  • Particle Balance: Distributing the computational load associated with tracking particles.

3. Cell Tagging and Predictive Partitioning

The core innovation lies in the use of a preliminary, low-fidelity particle simulation. This initial run is used to "tag" cells in the mesh with weights proportional to the probability of a particle entering or crossing them. These weights allow the domain subdivision algorithm to anticipate high-traffic areas. By partitioning the mesh based on these weights, the system ensures that regions with high particle density are distributed across multiple processors before the primary simulation begins.

Performance Evaluation

The method was evaluated using a 3D cylinder droplet impact test case, a standard benchmark for aerospace applications involving unsteady flow fields. The simulation was implemented in an MPI distributed-memory environment to test scalability and efficiency.

Key Results

The implementation of the tagging technique and two-constrained subdivision yielded substantial performance gains:

  • Computational Efficiency: The proposed method reduced total computational time by up to 78% compared to traditional flow-based domain subdivision.
  • Speedup Improvement: The speedup factor—a measure of how much faster a parallel task runs compared to a serial one—improved by 44%.
  • Scalability: The system demonstrated a scalability factor of 1.55 when doubling the number of processor cores. While LPT simulations rarely achieve perfect linear scaling (a factor of 2.0) due to inherent communication requirements, 1.55 represents a significant step forward for unsteady, particle-heavy flows.

Conclusion and Future Work

The integration of predictive cell tagging and two-constrained subdivision effectively mitigates the load imbalance inherent in Lagrangian simulations. By anticipating particle trajectories, the algorithm prevents processor idling and reduces the time spent on inter-process communication.

Future research may focus on further reducing the overhead of the preliminary "tagging" run and testing the algorithm on more complex industrial geometries, such as full aircraft wings or turbine blades. Additionally, as core counts continue to increase, further refinements to the ray-tracing identifiers may be necessary to maintain the reported scalability gains in exascale computing environments.

Summary updated

BibTeX
@misc{baldan2021scalable,
  author = {Giacomo Baldan and Tommaso Bellosta and A. Guardone},
  title = {{A scalable Lagrangian particle tracking method}},
  year = {2021},
  doi = {10.23967/particles.2021.007},
}
Figure