Answers are grounded in this paper and cite their sources.
RESIDUAL v01 is kernel 07 of the ALADIN native-cylindrical GPU MHD Driver for Z-pinch and J×B research. It computes the finite-volume right-hand side dU/dt for density, momentum and total energy on every interior cell. It is one CUDA/C++ source that runs on the GPU through NVRTC and on the CPU through g++/OpenMP, in FP64 and FP32. What RESIDUAL provides:- Conservative divergence with the full geometric source. The HLLD face fluxes are differenced with exact cylindrical cell volumes, and the radial momentum gets the complete magnetohydrodynamic geometric source (ρv_φ² + P_T − B_φ²)/r. This replaces a source in the previous Driver that held only the hydrodynamic terms.- Exact angular-momentum conservation. The azimuthal momentum uses an angular-momentum form weighted by the volume-mean radius, so the discrete total angular momentum changes only by the boundary torque, to round-off.- A well-balanced mode. The residual of a supplied equilibrium is subtracted, so the README Z-pinch is exactly static.- Refusal of invalid input. Any non-finite input, non-positive density or negative pressure gives NaN and a flag; refusals from HLLD and PRIM propagate.- Bit-identical GPU and CPU results. The GPU kernel is compiled by NVRTC directly, avoiding CuPy's forced flush-to-zero, and its PTX is checked. Results (campaign RES-01):- GPU leg (NVIDIA L4) 11 / 11 VERIFIED on the first frozen run; CPU leg 7 / 7 VERIFIED.- compute-sanitizer: 0 errors and 0 hazards.- Agreement with an 80-bit oracle within 4.3 units of round-off of the term scale, in FP64 and FP32.- Mass, axial momentum, energy and angular momentum balance their boundary fluxes to 7e-18 relative.- A rotating magnetised disc conserves angular momentum to 3e-18 relative.- Second-order convergence on a manufactured solution: 1.99 on the annulus (L∞) and 1.96 on the axis grid (L1). The axis cell itself carries a first-order truncation error, which is reported.- On the README normalised Z-pinch (B_φ = r/2, P = 1 − r²/4, μ0 = 1), run through PRIM v01, HLLD v05.1 and RESIDUAL v01, the radial-momentum residual equals its derived truncation error Δr²/(32 r_c) to round-off, and it is exactly zero in well-balanced mode.- GPU = CPU bit for bit. The bundle contains the kernel, the independent oracle, the campaign with predeclared thresholds, both legs' results verbatim, the sanitizer logs, the Driver adapter, the README benchmark extended through RESIDUAL, and the verification report. Author: Mihai Alexandru Bucurenciu (ALADIN), ORCID 0009-0006-4457-557X.
No takes yet. Share an insight, caveat, or question.
Mihai Alexandru Bucurenciu (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: