ChristopherMayes / openPMD-beamphysics

Tools for analyzing and viewing particle data in the openPMD standard, extension beamphysics.
https://christophermayes.github.io/openPMD-beamphysics/
Apache License 2.0
16 stars 15 forks source link

Fixed writing particle data to gpt format, tested with tracking #56

Closed ColwynGulliford closed 5 months ago

ColwynGulliford commented 5 months ago

Description

This PR opens up the allowed particle species that can be written in GPT format. This list supported by ParticleGroup is electron, positron, and proton.

How was this tested?

This was tested with the devel version of Lume-GPT by creating a single electron, positron, and proton - all of which given a total momentum of 1 GeV/c. The particles were then tracked through a bending magnet with radius 1 meter (at 1 GeV/c momentum):

Screenshot 2024-03-26 at 2 15 11 PM

Each particle was then tracked using GPT. We expect the electron to bend up, and the others to bend down, all with the same radius. We also expect the proton to travel less distance in the same amount of time:

Screenshot 2024-03-26 at 2 15 31 PM

Loading the particles verifies the correct dynamical variables:

Screenshot 2024-03-26 at 2 16 41 PM