Skip to main content

A GPU-based simulation that tracks cosmic rays from any location on Earth.

Project description

gtracr - A GPU-accelerated Tracking simulation for Cosmic Rays

gtracr is a 3-D simulation package that simulates the trajectories of cosmic rays that arrive at a certain location on any location around the globe :earth_americas: . The package uses the IGRF (International Geomagnetic Reference Field) model as the Earth's magnetic field and simulate trajectories using a 4th-order Runge Kutta numerical integration method.

The main components as well as the user interface of the package is written in Python, so using this package is straighforward with minimal steps for evaluation of a trajectory. The core of the package (that is, the evaluation of the geomagnetic field and the numerical integration) is written in C++, however, and as such each trajectory is optimized to perform evaluations at around 1 ms :watch:.

The code can further produce geomagnetic cutoff rigidities that either validates or invalidates a cosmic ray based on its trajectory, which is a key feature necessary to distinguish between allowed and forbidden trajectories.

Note: The current version does not support GPU parallelization. This will be done in future versions, check the CHANGELOG for more details.

Dependencies

  • Python 3 and above
  • NumPy
  • SciPy
  • datetime (for obtaining the current date)
  • tqdm

All such dependencies will be installed with the package.

Optional requirements

These packages are required to observe plots and test different trajectory cases:

  • matplotlib, plotly for plots
  • pytest, pytest-benchmark for testing

Documentation

Check out the documentation for more details on installing the package as well as instructions to start using this package with detailed examples.

Copyright and License

This project is under the BSD 3-Clause License. See LICENSE for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gtracr-0.7.0.tar.gz (3.3 MB view hashes)

Uploaded Source

Built Distributions

gtracr-0.7.0-cp38-cp38-win_amd64.whl (175.6 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

gtracr-0.7.0-cp38-cp38-win32.whl (162.7 kB view hashes)

Uploaded CPython 3.8 Windows x86

gtracr-0.7.0-cp38-cp38-manylinux2010_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

gtracr-0.7.0-cp38-cp38-macosx_10_9_x86_64.whl (190.4 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

gtracr-0.7.0-cp37-cp37m-win_amd64.whl (176.6 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

gtracr-0.7.0-cp37-cp37m-win32.whl (163.3 kB view hashes)

Uploaded CPython 3.7m Windows x86

gtracr-0.7.0-cp37-cp37m-manylinux2010_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

gtracr-0.7.0-cp37-cp37m-macosx_10_9_x86_64.whl (189.0 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

gtracr-0.7.0-cp36-cp36m-win_amd64.whl (176.5 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

gtracr-0.7.0-cp36-cp36m-win32.whl (163.3 kB view hashes)

Uploaded CPython 3.6m Windows x86

gtracr-0.7.0-cp36-cp36m-manylinux2010_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

gtracr-0.7.0-cp36-cp36m-macosx_10_9_x86_64.whl (189.0 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page