From 0f134cd0449fb6af6b6a3d26ceb7c6392bd1cfc8 Mon Sep 17 00:00:00 2001 From: David Grote Date: Tue, 29 Mar 2022 15:22:44 -0700 Subject: Add `propagation_direction` to PICMI lasers (#2992) --- Python/pywarpx/picmi.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python/pywarpx/picmi.py') 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: -- cgit v1.2.3