diff options
author | 2021-12-16 17:42:33 +0100 | |
---|---|---|
committer | 2021-12-16 08:42:33 -0800 | |
commit | 2de0fa7cbc0289e92d158759e728bb0313284bcf (patch) | |
tree | 852389b042a7958ad0de94fb41a084bb66d92087 /Python | |
parent | 03ebb25b8d417dc8c02356b620403c548021db7f (diff) | |
download | WarpX-2de0fa7cbc0289e92d158759e728bb0313284bcf.tar.gz WarpX-2de0fa7cbc0289e92d158759e728bb0313284bcf.tar.zst WarpX-2de0fa7cbc0289e92d158759e728bb0313284bcf.zip |
Adding new inputs to picmi.ElectromagneticSolver (#2676)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pywarpx/picmi.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 2efe6c1d4..ebfb6830a 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -654,6 +654,10 @@ class ElectromagneticSolver(picmistandard.PICMI_ElectromagneticSolver): self.psatd_update_with_rho = kw.pop('warpx_psatd_update_with_rho', None) self.psatd_do_time_averaging = kw.pop('warpx_psatd_do_time_averaging', None) + self.do_pml_in_domain = kw.pop('warpx_do_pml_in_domain', None) + self.pml_has_particles = kw.pop('warpx_pml_has_particles', None) + self.do_pml_j_damping = kw.pop('warpx_do_pml_j_damping', None) + def initialize_inputs(self): self.grid.initialize_inputs() @@ -699,6 +703,10 @@ class ElectromagneticSolver(picmistandard.PICMI_ElectromagneticSolver): pywarpx.warpx.do_pml_dive_cleaning = self.pml_divE_cleaning pywarpx.warpx.do_pml_divb_cleaning = self.pml_divB_cleaning + pywarpx.warpx.do_pml_in_domain = self.do_pml_in_domain + pywarpx.warpx.pml_has_particles = self.pml_has_particles + pywarpx.warpx.do_pml_j_damping = self.do_pml_j_damping + class ElectrostaticSolver(picmistandard.PICMI_ElectrostaticSolver): def init(self, kw): self.relativistic = kw.pop('warpx_relativistic', False) |