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.
Now the code is available under http://pencil-code.googlecode.com/. Please consult the following notes to do the transition.The manual for the Pencil Code is available in PDF (2.3M) or as gzipped PostScript (1.1M). 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 some automatically generated statistics about the Pencil Code project.
Wolfgang Dobler's talk on the New Config Scheme
The code has been used for teaching on a number of occasions. Some online material with exercises is available through the Numerical Experiments page.
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 Roslagstullsbacken 23 10691 Stockholm Sweden brandenb@nordita.org Phone: +46 8 5537 8707 |
Wolfgang Dobler com [dot] gmail [at] WDobler (just backwards) |