diff options
author | 2018-08-09 16:03:17 -0700 | |
---|---|---|
committer | 2018-08-09 16:03:17 -0700 | |
commit | 74c4bd60fffbba26ebff08417c1bb0fcd9fac75f (patch) | |
tree | a41b0655d0e4efd686a4c9350c7b1a99b6204948 /Python/pywarpx | |
parent | ca826617926282be46124cf2863f7f330d012c26 (diff) | |
download | WarpX-74c4bd60fffbba26ebff08417c1bb0fcd9fac75f.tar.gz WarpX-74c4bd60fffbba26ebff08417c1bb0fcd9fac75f.tar.zst WarpX-74c4bd60fffbba26ebff08417c1bb0fcd9fac75f.zip |
Added H+ to picmi
Diffstat (limited to 'Python/pywarpx')
-rw-r--r-- | Python/pywarpx/picmi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 6cfb5a208..6ce135af6 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -31,6 +31,9 @@ class Species(PICMI_Base.PICMI_Species): elif self.particle_type == 'anti-proton': if self.charge is None: self.charge = '-q_e' if self.mass is None: self.mass = 'm_p' + elif self.particle_type == 'H' and self.charge_state == 1: + if self.charge is None: self.charge = 'q_e' + if self.mass is None: self.mass = 'm_p' def initialize_inputs(self, layout): self.species_number = pywarpx.particles.nspecies |