aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/Collisions.py
diff options
context:
space:
mode:
authorGravatar Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> 2021-07-26 10:05:51 -0700
committerGravatar GitHub <noreply@github.com> 2021-07-26 10:05:51 -0700
commitab6b0842589db90600067673ac74ec966fe8a698 (patch)
treedfd6d095b2567d76ce185d790373ee640d26c3a0 /Python/pywarpx/Collisions.py
parent7ac9b24d923e7d7b62f8db10819ba000c4431b55 (diff)
downloadWarpX-ab6b0842589db90600067673ac74ec966fe8a698.tar.gz
WarpX-ab6b0842589db90600067673ac74ec966fe8a698.tar.zst
WarpX-ab6b0842589db90600067673ac74ec966fe8a698.zip
PICMI inputs for MCC (#2098)
* added functionality to picmi.py to initialize MCC collisions from python runscripts * bug fix and copyright declaration change * add Boltzmann's constant to picmi.py * added test for picmi MCC setup * set diagnostic output name for test and cleaned up analysis.py * fixed style issue with EOL white space after merge
Diffstat (limited to 'Python/pywarpx/Collisions.py')
-rw-r--r--Python/pywarpx/Collisions.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Python/pywarpx/Collisions.py b/Python/pywarpx/Collisions.py
new file mode 100644
index 000000000..9ad7f9e14
--- /dev/null
+++ b/Python/pywarpx/Collisions.py
@@ -0,0 +1,15 @@
+# Copyright 2021 Modern Electron
+#
+# This file is part of WarpX.
+#
+# License: BSD-3-Clause-LBNL
+
+from .Bucket import Bucket
+
+collisions = Bucket('collisions')
+collisions_list = []
+
+def newcollision(name):
+ result = Bucket(name)
+ collisions_list.append(result)
+ return result