Skip to content

Commit ee9fd6d

Browse files
committed
update lwfa example
1 parent 0ece3a8 commit ee9fd6d

File tree

1 file changed

+4
-2
lines changed
  • share/picongpu/pypicongpu/examples/laser_wakefield

1 file changed

+4
-2
lines changed

share/picongpu/pypicongpu/examples/laser_wakefield/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@
5151

5252
solver = picmi.ElectromagneticSolver(grid=grid, method="Yee")
5353

54+
laser_duration = 5.0e-15
55+
pulse_init = 15.
5456
laser = picmi.GaussianLaser(
5557
wavelength=0.8e-6,
5658
waist=5.0e-6 / 1.17741,
57-
duration=5.0e-15,
59+
duration=laser_duration,
5860
propagation_direction=[0.0, 1.0, 0.0],
5961
polarization_direction=[1.0, 0.0, 0.0],
6062
focal_position=[
@@ -64,7 +66,7 @@
6466
],
6567
centroid_position=[
6668
float(numberCells[0] * cellSize[0] / 2.0),
67-
0.0,
69+
-0.5 * pulse_init * laser_duration,
6870
float(numberCells[2] * cellSize[2] / 2.0),
6971
],
7072
picongpu_polarization_type=pypicongpu.laser.GaussianLaser.PolarizationType.CIRCULAR,

0 commit comments

Comments
 (0)