Code for cosmic-ray propagation in healiosphere and interstellar magnetic field.
ptracing is a numerical code for calculating the propagation of relativistic charged particles. The code includes interfaces for different heliospheric model as well simple geometric magnetic fields used for testing purposed. It also supports several numerical integration methods.
Trajectories are calculated by numerically integrating the following set of 6--dimensional ordinary differential equations
describing the Lorentz force exerted by the magnetic field
This code support magentic field models in ASCII format as awell HDF5. The original simulation box is extended beyond the boundaries of the model by extrapolating and the coordinates are shifteted with the Sun located at
The equations of motion are numerically integrated using various integration methods including the explicit
The code has been updated to support multi-threading and thus take advantage of computers with a large number of CPU cores with shared memory.
Prerequisites:
dependencies:
- CFITSIO: depends on cfitsio: https://heasarc.gsfc.nasa.gov/fitsio/fitsio.html
- GNU Scientific Library: depends on gsl: https://www.gnu.org/software/gsl/doc/html/index.html
- HDF5 https://www.hdfgroup.org/
- HEALpix: depends on healpix: http://healpix.sourceforge.net/
- BOOST C++ libraries: https://www.boost.org/
You will also need:
Installation:
The C++ projects are built using CMake. Each project has a CMakeList.txt that will detect dependencies and generate a MakeFile. To do this cd into the build directory and excecute the commands:
cmake ../src; make