From f08f12835397b9cc05aa4a18fe2f22803501e08d Mon Sep 17 00:00:00 2001 From: Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> Date: Tue, 4 Jan 2022 09:41:44 -0800 Subject: Allow Dirichlet BCs on r boundaries in RZ (electrostatic) (#2714) * allow Dirichlet BCs in r when r_min != 0 with ES RZ simulations * handle the rmax boundary condition setting properly when rmin == 0 * add ability to specify rmin and rmax potentials through picmi --- Python/pywarpx/picmi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/pywarpx/picmi.py') diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 49aac44dc..695c6c207 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -410,8 +410,8 @@ class CylindricalGrid(picmistandard.PICMI_CylindricalGrid): self.blocking_factor_x = kw.pop('warpx_blocking_factor_x', None) self.blocking_factor_y = kw.pop('warpx_blocking_factor_y', None) - self.potential_xmin = None - self.potential_xmax = None + self.potential_xmin = kw.pop('warpx_potential_lo_r', None) + self.potential_xmax = kw.pop('warpx_potential_hi_r', None) self.potential_ymin = None self.potential_ymax = None self.potential_zmin = kw.pop('warpx_potential_lo_z', None) -- cgit v1.2.3