Skip to content

EvgenyNerush/scintillans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

The latest version 0.3.0 includes synchrotron emission only; work on pair photoproduction is in progress.

About

The code Scintillans simulates evolution of electron, photon and positron energy spectra (fₑ, fᵧ and fₚ of ϵ) in a constant magnetic field. Scintillans provides solver of 1D Boltzmann's equations which take into account synchrotron emission and pair photoproduction according to well-known QED formulas. For details, see I I Artemenko et al 2019 Plasma Phys. Control. Fusion 61 074003 (or see freely available preprint). Source-code documentation (see below) describes the code in details as well.

How to use

The easiest way to build Scintillans is through Stack which, in turn, can be installed directly with package managers in most Linux operating systems. Thus, the following commands are enough in most cases:

git clone https://github.com/EvgenyNerush/scintillans.git
cd scintillans
stack build

Then a separate executable can be made. See scintillans/examples/PhotonEmissionTest.hs (or other tests in the examples directory) which can be built and run with

stack ghc -- -O2 --make PhotonEmissionTest.hs
./PhotonEmissionTest

Alternatively, one can include Scintillans as a dependency in *.cabal and stack.yaml files of his/her own project.

Documentation

Source-code documentation can be produced in HTML format with Haddock:

stack haddock

which will take some time for the first run. This command also prints the path to the generated docs, e.g.

...
Updating Haddock index for local packages in
.../scintillans/.stack-work/install/.../8.4.3/doc/index.html

which can be then open with an internet browser.

Tests

...

Acknowledgments

Development of this code have been supported by the Russian Science Foundation till 2020, through Grant No. 18-72-00121

About

Tool to solve 1D Boltzmann's equations for electrons emitting photons

Resources

License

Stars

Watchers

Forks

Packages

No packages published