kh2d-solver: A Python Library for Idealized Two-Dimensional Incompressible Kelvin-Helmholtz Instability
Abstract
We present an open-source Python library for simulating two-dimensional incompressible Kelvin-Helmholtz instabilities in stratified shear flows. The solver employs a fractional-step projection method with spectral Poisson solution via Fast Sine Transform, achieving second-order spatial accuracy. Implementation leverages NumPy, SciPy, and Numba JIT compilation for efficient computation. Four canonical test cases explore Reynolds numbers 1000--5000 and Richardson numbers 0.1--0.3: classical shear layer, double shear configuration, rotating flow, and forced turbulence. Statistical analysis using Shannon entropy and complexity indices reveals that double shear layers achieve 2.8times higher mixing rates than forced turbulence despite lower Reynolds numbers. The solver runs efficiently on standard desktop hardware, with 384times192 grid simulations completing in approximately 31 minutes. Results demonstrate that mixing efficiency depends on instability generation pathways rather than intensity measures alone, challenging Richardson number-based parameterizations and suggesting refinements for subgrid-scale representation in climate models.
Community
This paper introduces kh2d-solver, a Python library that makes Kelvin-Helmholtz instability simulations accessible on standard hardware.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- \texttt{simple-idealized-1d-nlse}: Pseudo-Spectral Solver for the 1D Nonlinear Schr"odinger Equation (2025)
- On the Non-Markovian Navier-Stokes Framework for Turbulence Modeling -- A Preliminary Analysis (2025)
- Phase-Field Modeling of Two-Phase Flows: A Projection-Based Cahn-Hilliard-Navier-Stokes Framework (2025)
- Interpolation-supplemented lattice Boltzmann simulation of thermal convection on non-uniform meshes (2025)
- Projection-based stabilization for high-order incompressible flow solvers (2025)
- IGA-LBM: Isogeometric lattice Boltzmann method (2025)
- OpenLB-UQ: An Uncertainty Quantification Framework for Incompressible Fluid Flow Simulations (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper