Skip to content

Commit d0c1d94

Browse files
authored
Merge pull request #43 from RemiLehe/laser_doc
Add more documentation for the laser parameters
2 parents db4bae7 + 7e20ec0 commit d0c1d94

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

PICMI_Python/lasers.py

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,31 @@
1313

1414
class PICMI_GaussianLaser(_ClassWithInit):
1515
"""
16-
Specifies a Gaussian laser distribution
17-
- name=None: Optional name of the laser
18-
- wavelength: Laser wavelength
19-
- waist: Waist of the Gaussian pulse at focus [m]
20-
- duration: Duration of the Gaussian pulse [s]
16+
Specifies a Gaussian laser distribution.
17+
18+
More precisely, the electric field **near the focal plane** is given by:
19+
20+
.. math::
21+
22+
E(\\boldsymbol{x},t) = a_0\\times E_0\,
23+
\exp\left( -\\frac{r^2}{w_0^2} - \\frac{(z-z_0-ct)^2}{c^2\\tau^2} \\right)
24+
\cos[ k_0( z - z_0 - ct ) - \phi_{cep} ]
25+
26+
where :math:`k_0 = 2\pi/\\lambda_0` is the wavevector and where
27+
:math:`E_0 = m_e c^2 k_0 / q_e` is the field amplitude for :math:`a_0=1`.
28+
29+
.. note::
30+
31+
The additional terms that arise **far from the focal plane**
32+
(Gouy phase, wavefront curvature, ...) are not included in the above
33+
formula for simplicity, but are of course taken into account by
34+
the code, when initializing the laser pulse away from the focal plane.
35+
36+
Parameters:
37+
-----------
38+
- wavelength: Laser wavelength [m], defined as :math:`\\lambda_0` in the above formula
39+
- waist: Waist of the Gaussian pulse at focus [m], defined as :math:`w_0` in the above formula
40+
- duration: Duration of the Gaussian pulse [s], defined as :math:`\\tau` in the above formula
2141
- focal_position=[0,0,0]: Position of the laser focus (vector) [m]
2242
- centroid_position=[0,0,0]: Position of the laser centroid at time 0 (vector) [m]
2343
- propagation_direction=[0,0,1]: Direction of propagation (unit vector) [1]
@@ -31,6 +51,7 @@ class PICMI_GaussianLaser(_ClassWithInit):
3151
- beta: Angular dispersion at focus (in the lab frame) [rad.s]
3252
- phi2: Temporal chirp at focus (in the lab frame) [s^2]
3353
- fill_in=True: Flags whether to fill in the empty spaced opened up when the grid moves
54+
name=None: Optional name of the laser
3455
"""
3556
def __init__(self, wavelength, waist, duration,
3657
focal_position = [0., 0., 0.],

0 commit comments

Comments
 (0)