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 "muon" and "antimuon" as Valid Species for ParticleGroup #65

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pmd_beamphysics/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@

mec2 = scipy.constants.value('electron mass energy equivalent in MeV')*1e6
mpc2 = scipy.constants.value('proton mass energy equivalent in MeV')*1e6

mmc2 = scipy.constants.value('muon mass energy equivalent in MeV')*1e6
mhmc2 = mpc2 + mec2 * 2 # H- mass energy equivalent in MeV

mH2pc2 = 2*mpc2 + mec2 # Molecular Hydrogen Ion H2+

e_charge = scipy.constants.e
Expand All @@ -21,6 +20,8 @@
'proton': e_charge,
'H-': -e_charge,
'H2+': e_charge,
'muon': -e_charge,
'antimuon': e_charge,
}

CHARGE_STATE = {
Expand All @@ -29,6 +30,8 @@
'proton': 1,
'H-': -1,
'H2+': +1,
'muon': -1,
'antimuon': 1,
}


Expand All @@ -37,6 +40,8 @@
'proton': mpc2,
'H-': mhmc2,
'H2+': mH2pc2,
'muon': mmc2,
'antimuon': mmc2,
}


Expand Down
Loading