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.
- property R
The radius of curvature (positive means diverging) extracted from q.
- property confocalParameter
The same as rayleighRange.
- property 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.
- property rayleighRange
Returns the rayleigh range of the beam.
- property w
The 1/e beam size in electric field extracted from q.
- property waist
The same as the wo.
- property waistPosition
The position of the waist of the beam.
- property wo
The 1/e beam size in electric field extracted from q at the waist of the beam.
- property zo
The same as rayleighRange.
Methods
|
Inherited Methods
Attributes
The radius of curvature (positive means diverging) extracted from q. |
|
The same as rayleighRange. |
|
Using the complex radius, the imaginary part of -1/q is the beam size. |
|
Returns the rayleigh range of the beam. |
|
The 1/e beam size in electric field extracted from q. |
|
The same as the wo. |
|
The position of the waist of the beam. |
|
The 1/e beam size in electric field extracted from q at the waist of the beam. |
|
The same as rayleighRange. |