MHSXtraPy -- A Python code for the extrapolation of magnetohydrostatic fields on the Sun using analytical solutions
Lilli Nadol, Thomas Neukirch

TL;DR
MHSXtraPy is a Python tool that efficiently computes and visualizes magnetohydrostatic magnetic fields in the solar atmosphere from boundary data, incorporating realistic plasma and magnetic transitions.
Contribution
It introduces an accessible Python implementation of analytical magnetohydrostatic models with flexible transition parameterizations and efficient Fourier-based computations.
Findings
Enables detailed 3D visualization of solar magnetic fields.
Provides fast and accessible computations for research and education.
Supports various parameterizations of magnetic transition models.
Abstract
We present a Python code for calculating and displaying magnetic field extrapolations from given two-dimensional boundary conditions, specifically from solar surface magnetograms. The code implements analytical magnetohydrostatic models that incorporate the transition from non-force-free to force-free magnetic fields in the solar atmosphere. It allows for different parameterisations of this transition and includes functions to compute magnetic fields, plasma pressure, and density. Fast Fourier methods ensure efficient computation, and the output includes three-dimensional visualisations of field lines and plasma structures. The implementation is optimised for accessibility and speed, making it suitable for both research and educational purposes. The only prerequisite for running the code is a Python compiler. All source code, examples, input files, solutions, and instructions are…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSolar and Space Plasma Dynamics · Ionosphere and magnetosphere dynamics · Fluid dynamics and aerodynamics studies
