Skip to content

Conversation

@ChristopherMayes
Copy link
Owner

@ChristopherMayes ChristopherMayes commented Jun 20, 2025

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

This comment was marked as resolved.

@ChristopherMayes ChristopherMayes marked this pull request as ready for review September 24, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants