Dynamics in a stellar convective layer and at its boundary: Comparison of five 3D hydrodynamics codes

R. Andrassy, J. Higl, H. Mao, M. Mocák, D. G. Vlaykov +16 more
11/1/2021
astro-ph.SRastro-ph.IMphysics.flu-dyn

Official code: robert-andrassy/CoCoPy (1 star, Python, BSD-3-Clause, last commit 2021-12-21).

Abstract

Our ability to predict the structure and evolution of stars is in part limited by complex, 3D hydrodynamic processes such as convective boundary mixing. Hydrodynamic simulations help us understand the dynamics of stellar convection and convective boundaries.

Show full abstract

However, the codes used to compute such simulations are usually tested on extremely simple problems and the reliability and reproducibility of their predictions for turbulent flows is unclear. We define a test problem involving turbulent convection in a plane-parallel box, which leads to mass entrainment from, and internal-wave generation in, a stably stratified layer. We compare the outputs from the codes FLASH, MUSIC, PPMSTAR, PROMPI, and SLH, which have been widely employed to study hydrodynamic problems in stellar interiors. The convection is dominated by the largest scales that fit into the simulation box. All time-averaged profiles of velocity components, fluctuation amplitudes, and fluxes of enthalpy and kinetic energy are within $\lesssim 3σ$ of the mean of all simulations on a given grid ($128^3$ and $256^3$ grid cells), where $σ$ describes the statistical variation due to the flow's time dependence. They also agree well with a $512^3$ reference run. The $128^3$ and $256^3$ simulations agree within $9\%$ and $4\%$, respectively, on the total mass entrained into the convective layer. The entrainment rate appears to be set by the amount of energy that can be converted to work in our setup and details of the small-scale flows in the boundary layer seem to be largely irrelevant. Our results lend credence to hydrodynamic simulations of flows in stellar interiors. We provide in electronic form all outputs of our simulations as well as all information needed to reproduce or extend our study.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause
11Python, Jupyter NotebookOct 24, 20214 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{andrassy2021dynamics,
  title  = {Dynamics in a stellar convective layer and at its boundary: Comparison of five 3D hydrodynamics codes},
  author = {R. Andrassy and J. Higl and H. Mao and M. Mocák and D. G. Vlaykov and W. D. Arnett and I. Baraffe and S. W. Campbell and T. Constantino and P. V. F. Edelmann and T. Goffrey and T. Guillet and F. Herwig and R. Hirschi and L. Horst and G. Leidi and C. Meakin and J. Pratt and F. Rizzuti and F. K. Roepke and P. Woodward},
  year   = {2021},
  eprint = {2111.01165},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.01165}
}

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/2111.01165.svg)](https://codeofpaper.com/paper/2111.01165)

Discussion