Papers › Legolas: a modern tool for magnetohydrodynamic spectroscopy
Legolas: a modern tool for magnetohydrodynamic spectroscopy
Niels Claes, Jordi De Jonghe, Rony Keppens
The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.
Magnetohydrodynamic (MHD) spectroscopy is central to many astrophysical disciplines, ranging from helio- to asteroseismology, over solar coronal (loop) seismology, to the study of waves and instabilities in jets, accretion disks, or solar/stellar atmospheres. MHD spectroscopy quantifies all linear (standing or travelling) wave modes, including overstable (i.e. growing) or damped modes, for a given configuration that achieves force and thermodynamic balance. Here, we present Legolas, a novel, open-source numerical code to calculate the full MHD spectrum of one-dimensional equilibria with flow, that balance pressure gradients, Lorentz forces, centrifugal effects and gravity, enriched with non-adiabatic aspects like radiative losses, thermal conduction and resistivity. The governing equations use Fourier representations in the ignorable coordinates, and the set of linearised equations are discretised using Finite Elements in the important height or radial variation, handling Cartesian and cylindrical geometries using the same implementation. A weak Galerkin formulation results in a generalised (non-Hermitian) matrix eigenvalue problem, and linear algebraic algorithms calculate all eigenvalues and corresponding eigenvectors. We showcase a plethora of well-established results, ranging from p- and g-modes in magnetised, stratified atmospheres, over modes relevant for coronal loop seismology, thermal instabilities and discrete overstable Alfv\'en modes related to solar prominences, to stability studies for astrophysical jet flows. We encounter (quasi-)Parker, (quasi-)interchange, current-driven and Kelvin-Helmholtz instabilities, as well as non-ideal quasi-modes, resistive tearing modes, up to magneto-thermal instabilities. The use of high resolution sheds new light on previously calculated spectra, revealing interesting spectral regions that have yet to be investigated.
Code
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
Not run by Syntology. Nothing on this page verifies that the listed code works.
Results from the paper archive 2025-07-28
No leaderboard rows for this paper in the archive.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections