finesse.detectors.mismatch_detector module
Detectors for calculating mode mismatches in an optical configuration.
- class finesse.detectors.mismatch_detector.ModeMismatchDetector(*args, **kwargs)[source]
Bases:
DetectorDetector for mode mismatch figure-of-merit for a specified node coupling.
The computed quantity is given in
finesse.gaussian.BeamParam.mismatch()where \(q_1\) is the input beam parameter at node1 propagated via the associated ABCD matrix to node2, and \(q_2\) is the beam parameter at node2.As mode mismatches cannot occur over spaces in Finesse, node1 must be an input node and node2 must be an output node.
Parameters
- namestr
Name of the detector.
- node1
OpticalNodeorPort Input node or port. If a
Portinstance is given then this node will be the input node of that port. Note that this node cannot be an output node.- node2
OpticalNodeorPort Output node or port. If a
Portinstance is given then this node will be the output node of that port. Note that this node cannot be an input node.- directionstr, optional; default: “x”
Plane of computation, defaults to “x” for the tangential plane. Changing to “y” will compute the mode mismatch in the sagittal plane.
- percentbool, optional; default: True
Whether to calculate the mode mismatch as a fraction (default behaviour) or a percentage.
- property component[source]
The component at which the mode mismatch is calculated.
- Getter:
Returns the associated component (read-only).
- property direction[source]
The plane in which the mode mismatch is calculated.
A value of “x” represents the tangential plane, whilst “y” gives the sagittal plane.
- Getter:
Returns the plane of computation as a string representation (read-only).
- property in_percent[source]
Flag indicating whether the mismatch is computed as a percentage.
- Getter:
Returns the percentage flag.
- Setter:
Sets the percentage flag.