LinStabPy: an efficient Python framework for compressible stability and resolvent analysis
This article presents , an open-source Python package for temporal stability, spatial stability, and resolvent analysis of compressible flows. The package implements the summation-by-parts, curvilinear linearized Navier–Stokes formulation of , a MATLAB package whose analyses run in one process on a single machine. instead assembles the discrete linearized operator as one distributed PETSc matrix, common to temporal stability (direct and adjoint) and resolvent analysis; spatial stability is built from the same discretization. Temporal and resolvent analyses reduce to SLEPc Krylov iterations around sparse-direct solves with this matrix, shifted and factorized once: the eigenvalue problems use shift-invert Krylov–Schur and need forward solves only, while the resolvent iteration applies one forward and one adjoint solve per step. The factorization is delegated, through the PETSc linear-solver interface, to interchangeable backends, so the full PETSc/SLEPc toolbox remains available to the user. The configurations validated here use the distributed-memory MUMPS (CPU) and STRUMPACK (GPU-capable), and the single-node NVIDIA cuDSS (GPU). Verification against the released example suite and against two oblique shock-wave/boundary-layer interactions from the literature is reported. The source code is available at https://github.com/openfluids/linstabpy, with documentation at https://linstabpy.vercel.app/.
Authors
- Gabriel Y.R. Hamada
- Carlos Junqueira-Junior (ORCID: https://orcid.org/0000-0002-4116-3012)
- William Roberto Wolf (ORCID: https://orcid.org/0000-0001-8207-8466)
- Jean-Christophe Robinet (ORCID: https://orcid.org/0000-0002-3529-6003)
- Ricardo André Schuh Frantz (ORCID: https://orcid.org/0000-0001-8219-3368)
Institutions
- Universidade Estadual de Campinas (UNICAMP) (BR)
- Arts et Métiers (FR)
- Laboratoire de Dynamique des Fluides (FR)
- École Polytechnique Fédérale de Lausanne (CH)
Publication Details
- Journal
- Theoretical and Computational Fluid Dynamics
- Published
- 2026-12-02
- DOI
- https://doi.org/10.1007/s00162-026-00806-z
- Primary Topic
- Computational Fluid Dynamics and Aerodynamics
- Type
- article
- Field-Weighted Citation Impact
- 0.00