Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for non-electron bunches #109

Merged
merged 14 commits into from
Mar 10, 2023
Merged

Add support for non-electron bunches #109

merged 14 commits into from
Mar 10, 2023

Conversation

AngelFP
Copy link
Owner

@AngelFP AngelFP commented Mar 10, 2023

As the title suggests, this PR adds formal support for particle bunches of different species (e.g., positrons, protons, etc.). Until now, it was always assumed that the particles were electrons.

In order to implement this new feature, the ParticleBunch class now takes as an input the marcoparticle weight w instead of the total macroparticle charge q, and exposes two new parameters q_species and m_species that allow the user to specify the type of particles in the bunch. By default, an electron bunch is assumed, i.e., q_species=-e and m_species=m_e.

This new feature also requires the latest aptools version (0.2.0).

@AngelFP AngelFP merged commit 8ac0211 into dev Mar 10, 2023
@AngelFP AngelFP deleted the new_particle_bunches branch March 10, 2023 11:43
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.

1 participant