aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar David Grote <grote1@llnl.gov> 2020-09-22 20:05:55 -0700
committerGravatar GitHub <noreply@github.com> 2020-09-22 20:05:55 -0700
commit8610be2dfb6d37fa2caa3c93afa01b666caedc2d (patch)
tree1f2c8adeeeba9b2acb17527e50afddf524678d2b /Python/pywarpx/picmi.py
parent6e847c4b0ae54e20a1aac6445a25f75a1e6cb7bc (diff)
downloadWarpX-8610be2dfb6d37fa2caa3c93afa01b666caedc2d.tar.gz
WarpX-8610be2dfb6d37fa2caa3c93afa01b666caedc2d.tar.zst
WarpX-8610be2dfb6d37fa2caa3c93afa01b666caedc2d.zip
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>
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py3
1 files changed, 3 insertions, 0 deletions
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: