aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/Particles.py
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2017-03-28 11:11:12 -0700
committerGravatar Andrew Myers <atmyers2@gmail.com> 2017-03-28 11:11:12 -0700
commit85d6218a3a8838521c495c12bf00942085bc3c8c (patch)
tree190f2acc98019f325a0f595b54103a0eade478d3 /Python/pywarpx/Particles.py
parent6151dc4888aa6c9571aaf06a89e795bb1f20caf7 (diff)
downloadWarpX-85d6218a3a8838521c495c12bf00942085bc3c8c.tar.gz
WarpX-85d6218a3a8838521c495c12bf00942085bc3c8c.tar.zst
WarpX-85d6218a3a8838521c495c12bf00942085bc3c8c.zip
updating the python-ctypes branch for recent changes in master
Diffstat (limited to 'Python/pywarpx/Particles.py')
-rw-r--r--Python/pywarpx/Particles.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Python/pywarpx/Particles.py b/Python/pywarpx/Particles.py
index a11da823d..a166b029e 100644
--- a/Python/pywarpx/Particles.py
+++ b/Python/pywarpx/Particles.py
@@ -1,3 +1,18 @@
from .Bucket import Bucket
particles = Bucket('particles')
+
+electrons = Bucket('electrons')
+electrons.charge = "-q_e"
+electrons.mass = "m_e"
+electrons.injection_style = "python"
+
+positrons = Bucket('positrons')
+positrons.charge = "q_e"
+positrons.mass = "m_e"
+positrons.injection_style = "python"
+
+protons = Bucket('protons')
+protons.charge = "q_e"
+protons.mass = "m_p"
+protons.injection_style = "python"