The Pencil Code
| Documentation | Research | Bugs | Lists | Download | Links & References | Contact |
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 manual for the Pencil Code is available in PDF (1.9M) or as gzipped PostScript (950k). The pdf version is to be preferred because of the many hyperlinks! For additional documentation see the old Nordita wiki. See the ohloh.net pages for statistics about the Pencil Code project.
Wlad Lyra has written a tutorial for setting up global accretion disk simulations. This tutorial is useful for general information as well.
For information how to do benchmark tests and timings, click here.
For code problems, here an automatically generated excerpt from the manual with FAQs.
See test results from sample applications.
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 |
There is an experimental web site for distributing data sets. We prepare these data usually only on a case to case basis. If there is anything not too old from any of the published papers, just let us know and we could try and put the data on the web for further analysis. Please let us know if this has been useful and if this has led to any publications.
Go to the download form and get the code.
|
Axel Brandenburg Nordita Copenhagen Denmark brandenb@nordita.org Phone: +46 8 5537 8707 |
Wolfgang Dobler Kiepenheuer Institute for Solar Physics D-79106 Freiburg Germany Wolfgang.Dobler@ucalgary.ca Phone: +49 761 3198 224 |