diff options
author | 2021-07-26 10:05:51 -0700 | |
---|---|---|
committer | 2021-07-26 10:05:51 -0700 | |
commit | ab6b0842589db90600067673ac74ec966fe8a698 (patch) | |
tree | dfd6d095b2567d76ce185d790373ee640d26c3a0 /Python/pywarpx/Collisions.py | |
parent | 7ac9b24d923e7d7b62f8db10819ba000c4431b55 (diff) | |
download | WarpX-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.py | 15 |
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 |