GaussianBeam¶
-
class
raytracing.GaussianBeam(q: complex = None, w: float = None, R: float = inf, n: float = 1.0, wavelength=0.0006328, z=0)¶ Bases:
objectA gaussian laser beam using the ABCD formalism for propagation of complex radius of curvature q.
Parameters: - q (complex) – The complex beam parameter (default=None)
- w (float) – The 1/e beam size in electric field extracted from q. (default=None)
- R (float) – The radius of curvature (positive means diverging) extracted from q. (default=+Inf)
- n (float) – The index of refraction in which the beam is. (default=1.0)
- wavelength (float) – The wave length of the laser beam. This parameter is necessary to compute the beam size (default=632.8e-6)
- z (float) – The axial distance from the waist (default=0)
-
isClipped¶ The formalism of gaussian beams does not consider any apertures: the beam remains gaussian no matter what. This variable will indicate if the beam diameter was too close to the apertures in the system.
Type: bool
Notes
wavelength and z must be in the same units.
-
R¶ The radius of curvature (positive means diverging) extracted from q.
-
confocalParameter¶ The same as rayleighRange.
-
isFinite¶ Using the complex radius, the imaginary part of -1/q is the beam size. If this value is negative, the calculation will yield a exp(x**2/w**2) which grows exponentially instead of being a gaussian. Hence, this is not a finite and reasonable complex radius. This is used for resonator and cavity calculations to discard unphysical solutions.
-
rayleighRange¶ Returns the rayleigh range of the beam.
-
w¶ The 1/e beam size in electric field extracted from q.
-
waist¶ The same as the wo.
-
waistPosition¶ The position of the waist of the beam.
-
wo¶ The 1/e beam size in electric field extracted from q at the waist of the beam.
-
zo¶ The same as rayleighRange.
Methods
__init__(q, w, R, n[, wavelength, z]) |
Initialize self. |
Inherited Methods
Attributes
R |
The radius of curvature (positive means diverging) extracted from q. |
confocalParameter |
The same as rayleighRange. |
isFinite |
Using the complex radius, the imaginary part of -1/q is the beam size. |
rayleighRange |
Returns the rayleigh range of the beam. |
w |
The 1/e beam size in electric field extracted from q. |
waist |
The same as the wo. |
waistPosition |
The position of the waist of the beam. |
wo |
The 1/e beam size in electric field extracted from q at the waist of the beam. |
zo |
The same as rayleighRange. |