This repository contains examples for the use of the PriNCe propagation code.
Requires the base PriNCe code and the PriNCe analysis tools. The latter is optional, since it is only used for plotting measured spectra.
- Install the PriNCe code via
pip install prince-cr
- Install
jupyter notebook
orjupyter lab
- Clone this repository
git clone [email protected]:joheinze/PriNCe-examples.git
- Launch
jupyter lab/notebook
and visit the notebooks in the folders
Some notes on performance:
The code has two performance demanding parts. The initialization from scratch will preprocess the data tables, perform cross section interpolation and averaging, etc. This part strongly depends on the maximal nuclear mass of the system and the total number of nuclear and particle species. Typicall this process takes ~2-3 minutes on a laptop and does not scale well across multiple cores. The result of the initialization, the "kernels", can be saved and restored to save this initialization time. This is demonstrated by the basic examples.
The second performance constrained part is the integration. This scales across multiple cores and profits from the presence of a GPU.
- Anatoli Fedynitch
- Jonas Heinze
Code released under the BSD 3-clause license (see LICENSE).