Skip to content

Commit

Permalink
Merge pull request #64 from ColwynGulliford/add_H2+_species
Browse files Browse the repository at this point in the history
Update species for H2+
  • Loading branch information
ChristopherMayes authored Jun 30, 2024
2 parents 39a6fcc + af5db35 commit 8fe25bd
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pmd_beamphysics/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,33 @@

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

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

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

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

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


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



Expand Down

0 comments on commit 8fe25bd

Please sign in to comment.