Skip to content

Latest commit

 

History

127 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grplinst

Documentation Tests

Module for the CRPropa code to calculate the effect of plasma instabilities on the development of electromagnetic cascades. It is described in:

"Simulations of Electromagnetic Cascades in the Intergalactic Medium with Plasma Instabilities: the grplinst code"
R. Alves Batista, A. Saveliev
[doi] || [arXiv]

If you make use of grplinst, please consider citing the above paper.

📖 Documentation

Full, pedagogical documentation is available at rafaelab.github.io/grplinst:

  • Getting Started — building and testing.
  • Physics Background — blazar cascades, pair beams, and the effective-cooling approximation.
  • Models — the implemented prescriptions and their cooling-time formulae.
  • Usage — Python and C++ integration.
  • API Reference — classes, methods, and units.

Science

This code was designed to study the effects of plasma instabilities on the development of blazar-induced gamma-ray cascades in the intergalactic medium.

It provides approximate descriptions for some plasma-instability models found in the literature. They are modelled as a cooling term for electrons/positrons. Note that this is a very rough approximation and a detailed calculation would require particle-in-cell (PIC) simulations.

Installation

To install grplinst you need CRPropa 3 installed. Go to https://github.com/CRPropa/CRPropa3/ and follow the instructions.

Then install this module:

  1. Download the latest version of the code:

    git clone https://github.com/rafaelab/grplinst.git
    cd grplinst
    
  2. Configure and build with CMake:

    cmake -S . -B build
    cmake --build build --parallel 4
    

    If you do not have CRPropa installed, you can let CMake fetch and build it for you by adding -DUSE_OWN_CRPROPA=On to the first command.

  3. If the code compiled, you are ready to go. Make sure the build directory (where the grplinst Python module is created) is on your PYTHONPATH, or add it to sys.path in your script.

See the Getting Started page for build options, dependencies, and how to run the tests.

Disclaimer

This program is provided 'as is', without warranties of any kind. Please use your discernment to interpret the results obtained with it.

Acknowledgements

We thank Michael Kachelrieß and Jacob Benestad for providing feedback that led us to finding a few bugs.

About

Module for the CRPropa code to calculate the effect of plasma instabilities on the development of electromagnetic cascades

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages