FORTVSH: A Fortran Module For Vector Spherical Harmonics Computations

arXiv:2608.08419 · astro-ph.SR, astro-ph.IM, physics.comp-ph · Submitted 2026-08-16 · Read on arXiv

Justin G. Elfritz

astro-ph.SR, astro-ph.IM, physics.comp-ph

Submitted: 2026-08-16

Updated: 2026-08-18

Comments: 22 pages with 10 figures

Code: https://github.com/justinelfritz/FORTVSH

License: http://creativecommons.org/licenses/by/4.0/

The gist: The vector spherical harmonics (VSH) are crucial ingredients for representation of arbitrary vector fields in curvilinear coordinate systems throughout mathematical physics.

Terminology

Abstract

The vector spherical harmonics (VSH) are crucial ingredients for representation of arbitrary vector fields in curvilinear coordinate systems throughout mathematical physics. Performant, efficient computations of the VSH are essential to high-performance computing applications that utilize spectral analysis, including magnetohydrodynamics (MHD) simulations for geophysics and astrophysics. The open-source FORTVSH package provides a catalog of numerical routines for evaluating various VSH forms and related mathematical functions. This manuscript establishes the theoretical basis, addresses the computational need for efficient VSH solvers, and presents a comprehensive overview of the FORTVSH routines.

Related papers