We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ece3a8 commit ee9fd6dCopy full SHA for ee9fd6d
share/picongpu/pypicongpu/examples/laser_wakefield/main.py
@@ -51,10 +51,12 @@
51
52
solver = picmi.ElectromagneticSolver(grid=grid, method="Yee")
53
54
+laser_duration = 5.0e-15
55
+pulse_init = 15.
56
laser = picmi.GaussianLaser(
57
wavelength=0.8e-6,
58
waist=5.0e-6 / 1.17741,
- duration=5.0e-15,
59
+ duration=laser_duration,
60
propagation_direction=[0.0, 1.0, 0.0],
61
polarization_direction=[1.0, 0.0, 0.0],
62
focal_position=[
@@ -64,7 +66,7 @@
64
66
],
65
67
centroid_position=[
68
float(numberCells[0] * cellSize[0] / 2.0),
- 0.0,
69
+ -0.5 * pulse_init * laser_duration,
70
float(numberCells[2] * cellSize[2] / 2.0),
71
72
picongpu_polarization_type=pypicongpu.laser.GaussianLaser.PolarizationType.CIRCULAR,
0 commit comments