From 8610be2dfb6d37fa2caa3c93afa01b666caedc2d Mon Sep 17 00:00:00 2001 From: David Grote Date: Tue, 22 Sep 2020 20:05:55 -0700 Subject: Initial version of use_damp_fields_in_z_guard option (#1304) * Initial version of use_damp_in_z_guard option * Fix typo in WarpX.H Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Changed use_damp_in_z_guard to use_damp_fields_in_z_guard * Added documentatin for use_damp_fields_in_z_guard * Clean up for use_damp_fields_in_z_guard * Added use_damp_fields_in_z_guard to picmi interface, and moved it to the psatd input group * For RZ spectral, damping of the fields is on by default when not periodic * Updated documentation for use_damp_fields_in_z_guard Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> --- Python/pywarpx/picmi.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python/pywarpx/picmi.py') diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index b8a7fa3ce..077a644b3 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -473,6 +473,7 @@ class ElectromagneticSolver(picmistandard.PICMI_ElectromagneticSolver): self.psatd_current_correction = kw.pop('warpx_current_correction', None) 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.psatd_use_damp_fields_in_z_guard = kw.pop('warpx_use_damp_fields_in_z_guard', None) def initialize_inputs(self): @@ -488,6 +489,8 @@ class ElectromagneticSolver(picmistandard.PICMI_ElectromagneticSolver): pywarpx.psatd.current_correction = self.psatd_current_correction pywarpx.psatd.update_with_rho = self.psatd_update_with_rho pywarpx.psatd.do_time_averaging = self.psatd_do_time_averaging + pywarpx.psatd.use_damp_fields_in_z_guard = self.psatd_use_damp_fields_in_z_guard + if self.grid.guard_cells is not None: pywarpx.psatd.nx_guard = self.grid.guard_cells[0] if self.grid.number_of_dimensions == 3: -- cgit v1.2.3