cavity.py - A Cavity class and related functions for representing a Fabry-Perot cavity
Bases: traits.has_traits.HasTraits
A class to represent a Fabry-Perot cavity.
Attributes
r1: Input mirror reflectivity (amplitude)
r2: End mirror reflectivity (amplitude)
rp1: Input mirror reflectivity (power)
rp2: End mirror reflectivity (power)
L: Length
wl: Wavelength
Returns the intra cavity field amplitude. It assumes the cavity was locked to the incident light first. Then computes the intra-cavity field amplitude for the light with a frequency shift f from the original light with the cavity length changed by d from the initial state.
== Input arguments ==
f: Frequency shift of the light in Hz.
d: Cavity length detuning in m.
== Returned parameter ==
The intra-cavity field amplitude at the input mirror surface (a complex number).
Return the transverse mode spacing of the cavity (commonly called gamma). It is a fractional number defined by gamma = (mode spacing frequency)/FSR.
Returns the amplitude reflectivity of the cavity. It assumes the cavity was locked to the incident light first. Then computes the amplitude reflectivity for the light with a frequency shift f from the original light with the cavity length changed by d from the initial state.
== Input arguments ==
f: Frequency shift of the light in Hz.
d: Cavity length detuning in m.
== Returned parameter ==
The amplitude reflectivity of the cavity (a complex number).
Returns the amplitude transmissivity of the cavity. It assumes the cavity was locked to the incident light first. Then computes the amplitude transmissivity for the light with a frequency shift f from the original light with the cavity length changed by d from the initial state.
== Input arguments ==
f: Frequency shift of the light in Hz.
d: Cavity length detuning in m.
== Returned parameter ==
The amplitude transmissivity of the cavity (a complex number).
Return the q-parameter or the radius of the beam at the cavity waist.
Input arguments
size: (optional) if set to true, the first element of the returned tuple will be the waist size, rather than the q-parameter.
==Returned parameters ==
Calculate the index of refraction of fused silica for a given wavelength.
Calculate the index of refraction of Sapphire extraordinary axis for a given wavelength.
Calculate the index of refraction of Sapphire ordinary axis for a given wavelength.
Calculate index of refraction using Sellmeiers equation
n^2 = 1+B1*wl^2/(wl^2 - C1) + B2*wl^2/(wl^2 - C2) + B3*wl^2/(wl^2 - C3)
See below for the coefficients for specific materials. http://www.cvimellesgriot.com/products/Documents/Catalog/Dispersion_Equations.pdf
gaussian - Gaussian Optics Module
This module contains several utility functions for gaussian optics.
Get the q-parameter from the ROC and w.
Mode matching between two beams with different q-parameters. The axes of the two beams are assumed to be matched.
q1: q-parameter of the first beam. This beam is assumed to be circular.
Compute the intersection point between a line and an arc.
pos: Origin of the line dirVect: Direction of the line chord_center: The center of the chord made by the arc. chordNormVect: Normal vector of the chord. invROC: Inverse of the ROC of the arc. Positive for concave surface. diameter: Length of the chord.
Compute the intersection point between a line and a plane
A line is specified by its origin (pos) and the direction vector (dirVect). A plane is specfied by its center coordinates (plane_center) and the normal vector (normalVector). The plane has its size (diameter).
The returned value is a dictionary of with the following keys: “Intersection Point”: numpy array of the coordinates of the intersection point. “isHit”: A boolean value of whether the line intersects with the plane or not. “distance”: Distance between the origin of the line and the intersection point. “distance from center”: Distance between the center of the plane and the intersection point.
Returns the local normal angle of a spheric mirror at a distance from the center.
invROC: 1/R, where R is the ROC of the mirror.
Returns a tuples of reflection and deflection angles.
n1: Index of refraction of the incident side medium.
n2: Index of refraction of the transmission side medium.