English

Legolas: a modern tool for magnetohydrodynamic spectroscopy

Solar and Stellar Astrophysics 2021-06-02 v2

Abstract

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.

Keywords

Cite

@article{arxiv.2010.14148,
  title  = {Legolas: a modern tool for magnetohydrodynamic spectroscopy},
  author = {Niels Claes and Jordi De Jonghe and Rony Keppens},
  journal= {arXiv preprint arXiv:2010.14148},
  year   = {2021}
}

Comments

Matches the publication in ApJS, including Erratum

R2 v1 2026-06-23T19:40:45.407Z