Skip to content
Preprint

MLegS: A modern mapped Legendre spectral method solver for unbounded domains with parallelization

Sep 2026 · 0 citations · 37 references
Physics Computer Science Mathematics

TL;DR

Modern Fortran code package builds on an earlier in-house prototype, recasting it as a modular solver with a unified interface for fields, transforms, and spectral operators, recasting it as a modular solver with a unified interface for fields, transforms, and spectral operators.

Abstract

MLegS is an open-source Modern Fortran code package for solving linear and nonlinear time-dependent partial differential equations on radially unbounded domains. It builds on an earlier in-house prototype, recasting it as a modular solver with a unified interface for fields, transforms, and spectral operators. Within this framework, the numerical formulation maps $0\leq r<\infty$ onto a finite interval, where associated Legendre functions provide the radial basis, while Fourier series represent the periodic azimuthal and axial directions. The mapped radial basis represents radial infinity without imposing an artificial boundary condition at finite radius while incorporating the regularity required at $r=0$ according to azimuthal order. The implementation distributes the corresponding field layouts using the Message-Passing Interface (MPI), with strong- and weak-scaling measurements extending to 512 cores across four compute nodes. Beyond parallel performance, three examples assess the solver across diffusion, reaction-diffusion, and vortex dynamics: closed-form diffusion solutions establish spectral spatial convergence and the design orders of both semi-implicit integrators; a Fisher-Kolmogorov-Petrovsky-Piskunov front matches the linearized solution and propagates at the classical speed within its logarithmic correction; and vortex-pair simulations based on toroidal-poloidal decomposition yield a measured Crow growth rate $2.7\%$ above the theoretical prediction and demonstrate the reconnection of the vortex pair.

View source

Similar papers

Preprint Oct 2026

A GPU-efficient local ADER finite-difference method for compressible-flow DNS

Algorithm design tailored to graphics processing units (GPUs) can substantially improve the efficiency of computational fluid dynamics (CFD) simulations. Efforts to adapt CFD solvers to GPUs often focus on spatial discretization, while time advancement commonly relies on multistage Runge--Kutta (RK) methods. However, t...

Hong Zhang, Xian Wang, Xin-Liang Li et al. · 0 citations
Preprint Sep 2026

Gradient-Based Construction of Collisionless Steady-State Guiding-Center Distributions in Tokamaks and Stellarators

We present a matrix-free residual-minimization method for preparing guiding-center distribution functions on finite grids. The method minimizes a fixed conservative discrete residual in the physical Jacobian metric using Polak-Ribiere+ iterations with exact quadratic line searches. JAX/XLA evaluates the operator and it...

Jing-Yi Yu, Chang Liu · 0 citations
Preprint Sep 2026

Dirichlet-Neumann Waveform Relaxation Method for Hyperbolic PDE with Time Delay in Multiple Subdomains

Hyperbolic partial differential equations (PDEs) with time delay are essential mathematical tools used to model numerous physical systems where wave propagation or oscillations depend heavily on their historical states. As these applications scale in physical complexity, efficient parallel computing techniques become e...

B. Mandal, Deeksha Tomer · 0 citations
Preprint Sep 2026

GridapGeosciences.jl: A Julia finite element package for partial differential equations on general manifolds

We present GridapGeosciences$.$jl, a new parallel distributed-memory Julia package for the numerical approximation of partial differential equations on general manifolds. Our abstract approach to generating discrete manifold domains relies on mesh refinement in general, and is implemented within the Gridap finite eleme...

Tamara A. Tambyah, Alberto F. Martín, David Lee et al. · 1 citation
Preprint Oct 2026

An algebraic multiscale framework for two-level overlapping Schwarz preconditioners

The robustness of two-level overlapping additive Schwarz (OAS) preconditioners for highly heterogeneous elliptic problems hinges on the choice of the coarse space. We propose an algebraic multiscale (AM) coarse space built from the system matrix alone through an algebraic formulation of the multiscale finite element me...

Filipe Cumaru, H. Hajibeygi, C. Vuik et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.