ASCL.net

Astrophysics Source Code Library

Making codes discoverable since 1999

ASCL Code Record

[ascl:1010.060] Pencil: Finite-difference Code for Compressible Hydrodynamic Flows

The Pencil code is a high-order finite-difference code for compressible hydrodynamic flows with magnetic fields. It is highly modular and can easily be adapted to different types of problems. The code runs efficiently under MPI on massively parallel shared- or distributed-memory computers, like e.g. large Beowulf clusters. The Pencil code is primarily designed to deal with weakly compressible turbulent flows. To achieve good parallelization, explicit (as opposed to compact) finite differences are used. Typical scientific targets include driven MHD turbulence in a periodic box, convection in a slab with non-periodic upper and lower boundaries, a convective star embedded in a fully nonperiodic box, accretion disc turbulence in the shearing sheet approximation, self-gravity, non-local radiation transfer, dust particle evolution with feedback on the gas, etc. A range of artificial viscosity and diffusion schemes can be invoked to deal with supersonic flows. For direct simulations regular viscosity and diffusion is being used. The code is written in well-commented Fortran90.

Code site:
https://github.com/pencil-code
Used in:
https://ui.adsabs.harvard.edu/abs/2020PhRvD.101j3028S https://doi.org/10.5281/zenodo.3466444
Described in:
https://ui.adsabs.harvard.edu/abs/2011JCoPh.230....1B https://ui.adsabs.harvard.edu/abs/2020GApFD.114....1B
Bibcode:
2010ascl.soft10060B

Views: 5542

ascl:1010.060
Add this shield to your page
Copy the above HTML to add this shield to your code's website.