Skip to content

Commit

Permalink
Merge pull request #52 from wlin6927/master
Browse files Browse the repository at this point in the history
Add H- as a species
  • Loading branch information
ChristopherMayes authored Jun 19, 2024
2 parents 5eda4d5 + bce32ef commit 309bc04
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions pmd_beamphysics/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,27 @@
mec2 = scipy.constants.value('electron mass energy equivalent in MeV')*1e6
mpc2 = scipy.constants.value('proton mass energy equivalent in MeV')*1e6

mhmc2 = mpc2 + mec2 * 2 # H- mass energy equivalent in MeV

e_charge = scipy.constants.e
c_light = scipy.constants.c

CHARGE_OF = {'electron': -e_charge,
'positron': e_charge,
'proton': e_charge}
'proton': e_charge,
'H-': -e_charge}

CHARGE_STATE = {
'electron': -1,
'positron': 1,
'proton': 1}
'proton': 1,
'H-': -1}


MASS_OF = {'electron': mec2,
'positron': mec2,
'proton': mpc2}
'proton': mpc2,
'H-': mhmc2}



Expand All @@ -51,4 +56,4 @@ def charge_state(species):
raise ValueError(f'Species not available: {species}')




0 comments on commit 309bc04

Please sign in to comment.