diff options
author | 2022-03-29 15:22:44 -0700 | |
---|---|---|
committer | 2022-03-29 15:22:44 -0700 | |
commit | 0f134cd0449fb6af6b6a3d26ceb7c6392bd1cfc8 (patch) | |
tree | 96a148db32b7aade4e5a84e97c6d096506005ffb /Python | |
parent | c06f6f7d3766aad8c7bab72a61431ee84deb354c (diff) | |
download | WarpX-0f134cd0449fb6af6b6a3d26ceb7c6392bd1cfc8.tar.gz WarpX-0f134cd0449fb6af6b6a3d26ceb7c6392bd1cfc8.tar.zst WarpX-0f134cd0449fb6af6b6a3d26ceb7c6392bd1cfc8.zip |
Add `propagation_direction` to PICMI lasers (#2992)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pywarpx/picmi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index fac53dd3d..e0e843c8c 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -753,6 +753,7 @@ class GaussianLaser(picmistandard.PICMI_GaussianLaser): self.laser.polarization = self.polarization_direction # The main polarization vector self.laser.profile_waist = self.waist # The waist of the laser (in meters) self.laser.profile_duration = self.duration # The duration of the laser (in seconds) + self.laser.direction = self.propagation_direction self.laser.zeta = self.zeta self.laser.beta = self.beta self.laser.phi2 = self.phi2 @@ -775,6 +776,7 @@ class AnalyticLaser(picmistandard.PICMI_AnalyticLaser): self.laser.wavelength = self.wavelength # The wavelength of the laser (in meters) self.laser.e_max = self.Emax # Maximum amplitude of the laser field (in V/m) self.laser.polarization = self.polarization_direction # The main polarization vector + self.laser.direction = self.propagation_direction self.laser.do_continuous_injection = self.fill_in if self.mangle_dict is None: |