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

Genesis4 beam #32

Closed ChristopherMayes closed 1 year ago

ChristopherMayes commented 1 year ago

This adds Genesis4 beam (slice statistics) writing functions:

ParticleGroup.write_genesis4_beam(filePath, n_slice=None)

Additionally, resampling of weighted particles is added.