ALADIN EMF: Production Cylindrical J×B and Ideal 4-Corner Upwind EMF Kernel
This release presents ALADIN EMF, a CUDA-based numerical kernel developed for electromagnetic calculations in native cylindrical coordinates (r, φ, z). The implementation combines cylindrical current-density reconstruction, Lorentz-force evaluation (J×B), and ideal magnetohydrodynamic electromotive-force computation using four-corner upstream donor selection. Designed for integration into the ALADIN plasma simulation framework, the kernel operates on a staggered cylindrical magnetic-field representation and is implemented using NVIDIA CUDA through CuPy RawKernel. The development emphasizes geometrical consistency, analytical verification, numerical accuracy, and reproducible testing of electromagnetic operators relevant to magnetohydrodynamic plasma simulations. Mathematical Formulation The kernel evaluates the current density from the cylindrical curl of the magnetic field: [\mathbf{J}=\frac{1}{\mu_0}\nabla\times\mathbf{B}] The electromagnetic force density is calculated through: [\mathbf{f}_{L}=\mathbf{J}\times\mathbf{B}] The ideal MHD electric field is determined by: [\mathbf{E}=-\mathbf{v}\times\mathbf{B}] The axial electromotive-force component is: [E_z=v_\phi B_r-v_r B_\phi] Four-corner upstream donor selection provides flow-direction-dependent reconstruction for the tested ideal axial EMF operator. Numerical Verification and Results The implementation has undergone a series of reported analytical and numerical verification tests. 1. Analytical Z-Pinch Benchmark For the cylindrical magnetic configuration Bφ = 0.5r, with Br = Bz = 0, the analytical solution predicts: Axial current density: Jz = 1 Radial Lorentz force: fr = −0.5r Vanishing transverse force components The CUDA implementation reproduced these analytical relationships on both regular and nonuniformly sized computational grids. The maximum reported radial-force error was approximately 1.49 × 10⁻⁷, consistent with single-precision numerical accuracy for this benchmark. 2. Cylindrical Boundary Verification An annular-boundary correction was tested using a manufactured magnetic field with known analytical current density. Azimuthal grid refinement from 64 to 128 cells reduced the maximum current-density error from approximately 6.388 × 10⁻³ to 1.607 × 10⁻³. This corresponds to an observed convergence order of approximately 1.99, demonstrating near-second-order convergence for the tested annular configuration. 3. Manufactured-Solution Verification A three-dimensional manufactured magnetic field was used to evaluate the reconstructed axial Lorentz force. Across successive grid refinements, the reported maximum bulk error decreased: 16 × 16 × 8: 0.04250 32 × 32 × 16: 0.01274 64 × 64 × 32: 0.00600 These results demonstrate decreasing numerical error under refinement, although a uniform second-order bulk convergence rate has not yet been established. 4. Four-Corner Upwind EMF Verification The ideal axial EMF reconstruction was tested against four prescribed corner values and all four combinations of radial and azimuthal flow direction. All four upstream donor-selection cases matched their analytical expectations. Additional flow-reversal tests verified the signs and magnitudes of the individual contributions to the axial ideal EMF. 5. Computational Integrity Reported CUDA tests also verified finite output generation, zero-field behavior, input-array preservation, and execution on computational grids with dimensions not aligned to regular tile sizes. Scientific and Computational Significance ALADIN EMF provides a numerically tested implementation of cylindrical electromagnetic operators for GPU-accelerated plasma simulation. Its principal contribution is the combination of analytical Z-pinch verification, cylindrical-boundary treatment, manufactured-solution testing, and four-corner ideal EMF reconstruction within a CUDA-oriented implementation. The release establishes a documented verification basis for the tested operators and provides a foundation for subsequent integration into a complete cylindrical magnetohydrodynamic solver. The reported results concern individual operator tests. They do not yet establish full production readiness, long-duration nonlinear stability, complete Hall-MHD functionality, or end-to-end constrained-transport validation. Conclusion ALADIN EMF represents a step toward a GPU-accelerated, native cylindrical plasma simulation framework. The reported analytical benchmarks demonstrate high numerical agreement for the linear Z-pinch configuration, near-second-order convergence in the tested annular-boundary problem, and correct upstream donor selection for the four ideal axial EMF cases. These results support continued development, independent verification, and integration of the electromagnetic operators into the ALADIN plasma simulation architecture.
Authors
- Mihai Alexandru Bucurenciu
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-17
- DOI
- https://doi.org/10.5281/zenodo.24295851
- Primary Topic
- Magnetic confinement fusion research
- Type
- article
- Field-Weighted Citation Impact
- 0.00