The Pencil Code a modular MPI code for differential equations and particles: multipurpose and multiuser-maintained. 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.
The Pencil Code or equivalent codes have been used for many different applications in a (more or less) astrophysical context. Examples are
![]() |
|
![]() |
| Turbulence simulations |
Outflows from accretion discs |
Dynamo experiments |
Available as open source code on https://github.com/pencil-code/pencil-code/. It is being updated after each change in the developer's repository, which can be accessed both through svn and git; see https://pencil-code.org/download.php.