Skip to main content

GT simulation (GT) is 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 venv official documentation for details.

If you plan to use nuclear interaction modeling or secondary particle generation, install Geant4 and activate its environment variables:

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

⚠️ Important Geant4 Note: Due to specific memory allocation requirements, Geant4 must be built with BUILD_TLS_MODEL=global-dynamic option or used in single-threaded mode. See Geant4 Build Configuration for details.

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 package from the source repository:

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

Metadata

Release files for gtsimulation 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gtsimulation 0.4.0
File Size Uploaded Provenance Actions
gtsimulation-0.4.0.tar.gz 41.3 MB Without provenance Details for gtsimulation-0.4.0.tar.gz

Release files / gtsimulation-0.4.0.tar.gz

Download URL gtsimulation-0.4.0.tar.gz
Size 41.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2fef055bdf1cadb727a655f9cd614dc2cb2b4a90e436216ef74b6763dc2875fb
BLAKE2b-256 checksum
How to use checksums
e5ec3561a45ae660fd05c11bae4876a73cc3af57512bb6eef7fb2b81d1d13966
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for gtsimulation 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page