On the Kelvin-Helmholtz instability with smooth initial conditions -- Linear theory and simulations

Thomas Berlok, Christoph Pfrommer
2/4/2019
astro-ph.GAphysics.comp-ph

Official code: tberlok/psecas (11 stars, Python, BSD-3-Clause, last commit 2026-10-04).

Abstract

The Kelvin-Helmholtz instability (KHI) is a standard test of hydrodynamic and magnetohydrodynamic (MHD) simulation codes and finds many applications in astrophysics. The classic linear theory considers a discontinuity in density and velocity at the interface of two fluids.

Show full abstract

However, for numerical simulations of the KHI such initial conditions do not yield converged results even at the linear stage of the instability. Instead, smooth profiles of velocity and density are required for convergence. This renders analytical theory to be only approximately valid and hinders quantitative comparisons between the classical theory and simulations. In this paper we derive a linear theory for the KHI with smooth profiles and illustrate code testing with the MHD code Athena. We provide the linear solution for the KHI with smooth initial conditions in three different limits: inviscid hydrodynamics, ideal MHD and Braginskii-MHD. These linear solutions are obtained numerically with the framework Psecas (Pseudo-Spectral Eigenvalue Calculator with an Automated Solver), which generates and solves numerical eigenvalue problems using an equation-parser and pseudo-spectral methods. The Athena simulations are carried out on a periodic, Cartesian domain which is useful for code testing purposes. Using Psecas and analytic theory, we outline the differences between this artificial numerical setup and the KHI on an infinite Cartesian domain and the KHI in cylindrical geometry. We discuss several astrophysical applications, such as cold flows in galaxy formation and cold fronts in galaxy cluster mergers. Psecas, and the linear solutions used for code testing, are publicly available and can be downloaded from the web.

View on arXivView PDF

Code Implementations(1)

tberlok/psecasOfficial100%
BSD-3-Clause

A framework for solving numerical eigenvalue problems using pseudo-spectral methods.

116PythonJun 27, 20181 months agoBSD-3-Clause

Similar Papers

Cite this paper

@article{berlok2019kelvinhelmholtz,
  title  = {On the Kelvin-Helmholtz instability with smooth initial conditions -- Linear theory and simulations},
  author = {Thomas Berlok and Christoph Pfrommer},
  year   = {2019},
  eprint = {1902.01403},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.01403}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1902.01403.svg)](https://codeofpaper.com/paper/1902.01403)

Discussion