kh2d-solver: A Python library for idealized two-dimensional incompressible Kelvin-Helmholtz instability
| dc.contributor.author | Herho, Sandy Hardian Susanto | |
| dc.contributor.author | Trilaksono, Nurjanna Joko | |
| dc.contributor.author | Fajary, Faiz Rohman | |
| dc.contributor.author | Napitupulu, Gandhi | |
| dc.contributor.author | Anwar, Iwan Pramesti | |
| dc.contributor.author | Khadami, Faruq | |
| dc.contributor.author | Irawan, Dasapta Erwin | |
| dc.date.accessioned | 2026-01-15T08:28:44Z | |
| dc.date.available | 2026-01-15T08:28:44Z | |
| dc.date.issued | 2025 | |
| dc.description.abstract-translated | This study presents an open-source Python library for simulating two-dimensional incompressible Kelvin-Helmholtz (KH) instabilities in stratified shear flows. The solver employs a fractional-step projection method with spectral Poisson solution via fast sine transform (FST). While diffusion and pressure terms achieve second-order spatial accuracy through central differencing and spectral methods respectively, advection employs first-order upwind differencing that provides numerical stability for sharp gradients characteristic of KH billows. Implementation leverages NumPy for array operations, SciPy for spectral methods, and Numba just-in-time (JIT) compilation, balancing computational performance with code transparency and accessibility. Four canonical test cases systematically explore parameter space spanning Reynolds numbers 1,000-5,000 and Richardson numbers 0.1-0.3: classical shear layer, double shear configuration, rotating flow, and forced turbulence. Statistical analysis employing Shannon entropy, complexity indices, and nonparametric tests reveals non-monotonic relationships between flow parameters and mixing efficiency, with double shear layers achieving 4.3x higher mixing rates than forced turbulence despite lower Reynolds numbers. The developed complexity metrics combining entropy, gradient variability, and higher-order moments provide quantitative benchmarks for turbulence model validation complementing conventional statistical measures. While the two-dimensional framework excludes spanwise secondary instabilities, it isolates primary mixing mechanisms relevant for understanding atmospheric and oceanic transport processes. The solver executes efficiently on standard desktop hardware, with the most demanding 384x192 grid simulation completing in approximately 31 minutes for 30 seconds physical time, enabling systematic parameter studies on modest computational resources. Results demonstrate that mixing efficiency depends fundamentally on instability generation pathways rather than intensity measures alone, challenging existing Richardson number-based parameterizations and suggesting refinements for subgrid-scale representation in climate models. | en |
| dc.description.sponsorship | We acknowledge the Research, Community Service and Innovation Program (PPMI-ITB) 2025 at Bandung Institute of Technology (ITB) for supporting I.P.A. and F.K., and the Dean’s Distinguished Fellowship (2023) at the University of California, Riverside awarded to S.H.S.H. | |
| dc.format | 32 s. | cs |
| dc.format.mimetype | application/pdf | |
| dc.identifier.doi | https://doi.org/10.24132/acm.2025.1040 | |
| dc.identifier.issn | 1802-680X (Print) | |
| dc.identifier.issn | 2336-1182 (Online) | |
| dc.identifier.uri | http://hdl.handle.net/11025/64461 | |
| dc.language.iso | en | en |
| dc.publisher | University of West Bohemia | en |
| dc.rights | © University of West Bohemia | en |
| dc.rights.access | openAccess | en |
| dc.subject | Boussinesqova aproximace | cs |
| dc.subject | metoda zlomkových kroků | cs |
| dc.subject | Kelvinova-Helmholtzova nestabilita | cs |
| dc.subject | účinnost míchání | cs |
| dc.subject | stratifikovaná turbulence | cs |
| dc.subject.translated | Boussinesq approximation | en |
| dc.subject.translated | fractional-step method | en |
| dc.subject.translated | Kelvin-Helmholtz instability | en |
| dc.subject.translated | mixing efficiency | en |
| dc.subject.translated | stratified turbulence | en |
| dc.title | kh2d-solver: A Python library for idealized two-dimensional incompressible Kelvin-Helmholtz instability | en |
| dc.type | článek | cs |
| dc.type | article | en |
| dc.type.status | Peer-reviewed | en |
| dc.type.version | publishedVersion | en |
| local.files.count | 1 | * |
| local.files.size | 7314959 | * |
| local.has.files | yes | * |
Files
Original bundle
1 - 1 out of 1 results
No Thumbnail Available
- Name:
- ACM-ID1040-Article.pdf
- Size:
- 6.98 MB
- Format:
- Adobe Portable Document Format
License bundle
1 - 1 out of 1 results
No Thumbnail Available
- Name:
- license.txt
- Size:
- 1.71 KB
- Format:
- Item-specific license agreed upon to submission
- Description: