openPMD-beamphysics icon indicating copy to clipboard operation
openPMD-beamphysics copied to clipboard

Add new options to genesis4_par_to_data: wrap, z0, equal_weights, cut…

Open ChristopherMayes opened this issue 6 months ago • 0 comments

This adds new options to genesis4_par_to_data.

  • wrap: enables modulo-wrapping of theta
  • z0: starting z-position offset
  • slices: extract specific slice indices
  • equal_weights: resample particles to uniform charge
  • cutoff: skip sub-electron macroparticles
  • rng: user-supplied or seeded random number generator

ParticleGroup now uses that to load Genesis4 particles directly with these options:

image image image

ChristopherMayes avatar Jun 20 '25 21:06 ChristopherMayes