ALADIN EGLM v1.0 — Native Cylindrical Divergence Cleaning on Staggered CT Grids: Numerical Qualification and Z-Pinch Benchmark
Abstract ALADIN EGLM v1.0 presents a GPU-oriented numerical implementation of Extended Generalized Lagrange Multiplier (EGLM) magnetic-divergence cleaning for magnetohydrodynamic (MHD) simulations in native cylindrical coordinates ((r,\phi,z)). Developed as a standalone component of the ALADIN Driver computational framework, the implementation combines hyperbolic divergence-error propagation, exponential damping, staggered magnetic-field updates, and EGLM source corrections. The numerical formulation explicitly incorporates cylindrical metric factors, radial face geometry, annular cell volumes, ghost-zone indexing, and axis-aware operations. Magnetic fields are represented on a staggered grid compatible with constrained-transport (CT) architectures, while the cleaning field is evolved using a coupled hyperbolic–parabolic divergence-control formulation. The implementation targets NVIDIA GPU execution through CUDA kernels compiled using CuPy RawKernel/RawModule, with particular attention to deterministic execution, numerical stability, memory ownership, and reproducible scientific diagnostics. Numerical Validation The release is accompanied by 15 numerical qualification campaigns covering cylindrical geometry, staggered-grid integrity, discrete divergence operators, hyperbolic wave propagation, exponential damping, EGLM momentum and energy source terms, GPU execution, boundary behavior, adversarial divergence contamination, and conservation diagnostics. Selected numerical results include: Cylindrical divergence accuracy: Analytic radial-field tests reproduce the expected divergence, with approximately second-order convergence for a manufactured cubic radial field. Hyperbolic cleaning: Axial Gaussian wave propagation converges toward the prescribed cleaning speed, reaching approximately 0.32% relative error at the finest reported resolution. Exponential damping: The cleaning-field evolution agrees closely with its analytic exponential-decay reference. Energy audit: An isolated cleaning-field experiment preserves the reported energy when damping is disabled and reproduces the expected damped energy with approximately (2.1\times10^{-7}) relative error. Adversarial cleaning: Random and structured divergence perturbations exhibit measurable reductions in discrete divergence norms. Execution integrity: Deterministic GPU replay, irregular grid dimensions, axis regularity, and repeated kernel execution were evaluated. Z-Pinch Perfect Zero Benchmark A dedicated benchmark investigates an axisymmetric cylindrical Z-pinch magnetic configuration, [B_r=0,\qquad B_\phi(r)=0.5r,\qquad B_z=0.] For this configuration, the native cylindrical discrete-divergence operator reports [\max|\nabla_h\cdot\mathbf B|=0.000000] at the reported numerical precision. This result, designated the Perfect Zero benchmark, establishes an exact-zero regression for the tested axisymmetric toroidal-field configuration. It is not presented as a universal guarantee of zero numerical divergence for arbitrary three-dimensional magnetic fields. The benchmark provides a reproducible reference for assessing cylindrical metric consistency, staggered-field handling, and preservation of an analytically solenoidal magnetic configuration. Scientific Scope and Integration ALADIN EGLM v1.0 is intended as a standalone magnetic-divergence-control subsystem for integration into the broader ALADIN Driver Hall-MHD architecture. The reported tests support the correctness and numerical behavior of the implemented cleaning operators within the evaluated configurations. Full coupled-system energy conservation, integrated EGLM–UCT evolution, comprehensive boundary-condition verification, and general three-dimensional discrete-curl compatibility remain separate validation objectives. The work draws on established developments in hyperbolic divergence cleaning, constrained transport, staggered electromagnetic discretization, and upwind numerical MHD. Its contribution lies in the native cylindrical implementation, GPU-oriented execution architecture, and documented numerical qualification program. Release status: Standalone numerically validated development release, version 1.0. Application areas: Computational plasma physics, cylindrical magnetohydrodynamics, Z-pinch simulations, magnetic-divergence control, and GPU-accelerated scientific computing.
Authors
- Mihai Alexandru Bucurenciu
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-16
- DOI
- https://doi.org/10.5281/zenodo.24291218
- Primary Topic
- Computational Fluid Dynamics and Aerodynamics
- Type
- article
- Field-Weighted Citation Impact
- 0.00