Numba-Accelerated 2D Diffusion-Limited Aggregation: Implementation and Fractal Characterization
Sandy H. S. Herho, Faiz R. Fajary, Iwan P. Anwar, Faruq Khadami, Nurjanna J. Trilaksono, Rusmawan Suwarman, Dasapta E. Irawan
TL;DR
This work develops dla-ideal-solver, a Numba-accelerated Python framework for 2D diffusion-limited aggregation on a lattice, enabling large ensembles necessary to resolve fractal scaling. It implements a 2D DLA model with random and radial injection geometries and a re-injection mechanism to focus computation near the cluster. Key findings validate the canonical fractal dimension $D_f ≈ 1.71$ in dilute regimes and reveal a finite-density crossover to Eden-like $D_f ≈ 1.87$ at high walker density, attributed to screening-length saturation; Renyi dimensions and lacunarity quantify monofractal structure and spatial heterogeneity. The open-source framework provides a reproducible platform for exploring non-equilibrium phase transitions in Laplacian growth and related pattern formation problems.
Abstract
We present dla-ideal-solver, a high-performance framework for simulating two-dimensional Diffusion-Limited Aggregation (DLA) using Numba-accelerated Python. By leveraging just-in-time (JIT) compilation, we achieve computational throughput comparable to legacy static implementations while retaining high-level flexibility. We investigate the Laplacian growth instability across varying injection geometries and walker concentrations. Our analysis confirms the robustness of the standard fractal dimension $D_f \approx 1.71$ for dilute regimes, consistent with the Witten-Sander universality class. However, we report a distinct crossover to Eden-like compact growth ($D_f \approx 1.87$) in high-density environments, attributed to the saturation of the screening length. Beyond standard mass-radius scaling, we employ generalized Rényi dimensions and lacunarity metrics to quantify the monofractal character and spatial heterogeneity of the aggregates. This work establishes a reproducible, open-source testbed for exploring phase transitions in non-equilibrium statistical mechanics.
