From ab6b0842589db90600067673ac74ec966fe8a698 Mon Sep 17 00:00:00 2001 From: Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> Date: Mon, 26 Jul 2021 10:05:51 -0700 Subject: 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 --- Python/pywarpx/Collisions.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Python/pywarpx/Collisions.py (limited to 'Python/pywarpx/Collisions.py') 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 -- cgit v1.2.3