diff options
author | 2021-09-24 10:03:51 -0700 | |
---|---|---|
committer | 2021-09-24 10:03:51 -0700 | |
commit | e1c1c8bac405069440bfa393dfb7197a6be3ffbc (patch) | |
tree | 51ebcc33091f8920fc9ab65df99de0ccd7ef404b /Examples/Modules/ParticleBoundaryProcess/analysis_reflection.py | |
parent | 129a533e3b899eaf62a49e9c1f6a47f5cfda9465 (diff) | |
download | WarpX-e1c1c8bac405069440bfa393dfb7197a6be3ffbc.tar.gz WarpX-e1c1c8bac405069440bfa393dfb7197a6be3ffbc.tar.zst WarpX-e1c1c8bac405069440bfa393dfb7197a6be3ffbc.zip |
Stochastic particle reflection from absorbing domain boundaries (#2281)
* added tunable particle reflection from absorbing domain boundaries
* extended picmi.py to allow setting boundary reflection coefficients and added a CI test for the reflection implementation
* allow R(E) to be specified, except for embedded boundaries
* changed approach for particle reflection, now the ParticleBoundaries object will hold the reflection coefficient; reflection from EBs not implemented
* added functionality to reflect from EB; still needs to be tested for accuracy
* added support for energy dependent reflection models for domain boundaries
* fixed at least one issue causing CI fails - building reflection model parsers for not physical particle containers
* switched reflection coefficients to be functions of the velocity component perpendicular to the boundary rather than energy
* reverted initial work on reflecting from EBs
* changed naming convention for new CI test for particle reflection
* switched useMPI back to 1 in test
* breaking changes while trying to sort out GPU issue
* fixed issue with CUDA compilation - hopefully :)
* various code improvements from PR review suggestions
* fix of major issues
* no need to parse the reflection models at every step
* skip particles that are already flagged for removal in ApplyBoundaryConditions
Diffstat (limited to 'Examples/Modules/ParticleBoundaryProcess/analysis_reflection.py')
-rwxr-xr-x | Examples/Modules/ParticleBoundaryProcess/analysis_reflection.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Examples/Modules/ParticleBoundaryProcess/analysis_reflection.py b/Examples/Modules/ParticleBoundaryProcess/analysis_reflection.py new file mode 100755 index 000000000..7dbb26206 --- /dev/null +++ b/Examples/Modules/ParticleBoundaryProcess/analysis_reflection.py @@ -0,0 +1,15 @@ +#! /usr/bin/env python + +# Copyright 2021 Modern Electron +# +# License: BSD-3-Clause-LBNL + +# This script just checks that the PICMI file executed successfully. +# If it did there will be a plotfile for the final step. + +import yt + +plotfile = 'Python_particle_reflection_plt00010' +ds = yt.load( plotfile ) # noqa + +assert True |