Skip to main content

Software for calculations of particle's propagation through the electromagnetic fields and mediums in space.

Project description

GT simulation

GT simulation (GT) is software a package that is created for simulations of propagation of charged particles in electromagnetic fields. GT solves the relativistic equation of motion of a particle using Buneman-Boris scheme. That allows to recover the trajectory of a particle with high precision. Additionally, we take into account the energy losses of particles such as, radiation losses (synchrotron radiation), adiabatic losses (in the heliosphere), and the interactions with the medium. As a result of interaction with the medium secondary particles may be created, that are later simulated in GT.

The code is written in a flexible manner, and easily can be extended by inheriting from the abstract classes of each module. To enhance the speed of calculations numba just-in-time compiler is used to compile the main functions.

Installation

GT requires Python 3.10+. To avoid possible package conflicts, you can optionally create an isolated virtual environment using venv:

$ python -m venv gt_env
$ source gt_env/bin/activate

See the official venv documentation for details.

If you plan to use the secondary particle generation functionality, install Geant4 and activate its environment variables:

$ source /path/to/geant4/bin/geant4.sh

Install the package with:

$ pip install gtsimulation

If you do not want to use Geant4, specify the build option during installation:

$ pip install --config-settings=cmake.define.BUILD_GEANT4_COMPONENTS=OFF gtsimulation

Alternatively, you can install the packaage from the source repository:

$ git clone --depth 1 https://github.com/agmayorov/GTsimulation.git
$ cd GTsimulation
$ pip install .

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

gtsimulation-0.1.0.tar.gz (40.6 MB view details)

Uploaded Source

File details

Details for the file gtsimulation-0.1.0.tar.gz.

File metadata

  • Download URL: gtsimulation-0.1.0.tar.gz
  • Upload date:
  • Size: 40.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for gtsimulation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0f51612cacc795b4351f114d9ad01fb5120b124b9ea1e6ea41ca0bbdca81e2c1
MD5 35335e7e0018bde5b1a17553271dfccd
BLAKE2b-256 60e023f2343d7821626969846ab51290f20948ca5f93781629a6a27cc65a2838

See more details on using hashes here.

Supported by

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