Skip to content

Commit

Permalink
Merge pull request #65 from electronsandstuff/adding-muon
Browse files Browse the repository at this point in the history
Add "muon" and "antimuon" as Valid Species for `ParticleGroup`
  • Loading branch information
ChristopherMayes authored Jul 3, 2024
2 parents 8fe25bd + aec96a0 commit bc2ce84
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 bc2ce84

Please sign in to comment.