Pencil: Finite-difference Code for Compressible Hydrodynamic

Discussion topics for individual codes
Post Reply
User avatar
owlice
Guardian of the Codes
Posts: 1135
Joined: Wed Aug 04, 2004 4:18 pm
Location: Washington, DC

Pencil: Finite-difference Code for Compressible Hydrodynamic Flows

Post by owlice » Tue Oct 26, 2010 8:21 pm

Pencil: Finite-difference Code for Compressible Hydrodynamic Flows

Abstract: 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.

Credit: Brandenburg, Axel; Dobler, Wolfgang

Site: https://github.com/pencil-code
https://ui.adsabs.harvard.edu/abs/2020PhRvD.101j3028S

Bibcode: 2010ascl.soft10060B

Preferred citation method: https://ui.adsabs.harvard.edu/abs/2010ascl.soft10060B

ID: ascl:1010.060
Last edited by Ada Coda on Tue Jul 07, 2020 8:10 am, edited 1 time in total.
Reason: Updated code entry.
Code-seeking owl at your service

User avatar
owlice
Guardian of the Codes
Posts: 1135
Joined: Wed Aug 04, 2004 4:18 pm
Location: Washington, DC

Re: Pencil: Finite-difference Code for Compressible Hydrodyn

Post by owlice » Wed Apr 22, 2015 11:26 am

Code-seeking owl at your service

Post Reply