Skip to content

Commit

Permalink
add muon and antimuon to CHARGE_OF, CHARGE_STATE, and MASS_OF
Browse files Browse the repository at this point in the history
  • Loading branch information
electronsandstuff committed Jul 3, 2024
1 parent 8fe25bd commit aec96a0
Showing 1 changed file with 7 additions and 2 deletions.
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

0 comments on commit aec96a0

Please sign in to comment.