finesse.model.Model¶
Overview
- class finesse.model.Model[source]¶
 Bases:
objectOptical configuration class for handling models of interferometers.
This class stores the interferometer configuration as a directed graph and contains methods to interface with this data structure.
Properties
Number of higher-order modes (HOMs) included in the model.  | 
|
The root action to apply to the model when   | 
|
The cavities stored in the model as a tuple object.  | 
|
The components stored in the model as a tuple object.  | 
|
The detectors stored in the model as a tuple object.  | 
|
The electrical nodes stored in the model.  | 
|
Dictionary of all the model elements with the keys as their names.  | 
|
Scaling factor for mechanical motion to optical modulation.  | 
|
The default frequency to use for the model.  | 
|
The frequencies stored in the model as a   | 
|
A dictionary of optical nodes that have beam parameters set manually - stores the nodes themselves as keys and the corresponding beam parameters as values.  | 
|
An array of higher-order modes (HOMs) included in the model.  | 
|
The DC input matrix is used to relate degrees of freedoms and readouts within a model.  | 
|
Flag indicating whether the model has been built.  | 
|
Flag indicating whether the model is modal or plane-wave.  | 
|
Flag indicating whether the model has been traced.  | 
|
The default wavelength to use for the model.  | 
|
An instance of   | 
|
The mechanical nodes stored in the model.  | 
|
An ordered dictionary where the key type is the modes in the model and the mapped type is the index of the mode.  | 
|
The directed graph object containing the optical configuration as a   | 
|
A read-only view of the directed graph object stored by   | 
|
The optical nodes stored in the model.  | 
|
An integer corresponding to the phase level given to the phase command of a Finesse 2 kat script.  | 
|
Whether the model will be retraced during a simulation.  | 
|
Dictionary corresponding to beam tracing configuration options for simulations.  | 
|
The source frequencies stored in the model as a   | 
|
The spatial type of the model - i.e. either plane wave or modal based.  | 
|
The   | 
|
A list of beam tracing dependencies, ordered by their tracing priority.  | 
|
A convenience property to retrieve a list of the names of each   | 
Methods
  | 
|
  | 
|
  | 
Adds an element (or sequence of elements) to the model - these can be   | 
  | 
Adds amplitude detectors at the specified node and frequency f for all Higher Order Modes in the model.  | 
  | 
Add a source frequency to the model description.  | 
  | 
Adds a   | 
  | 
Performs a full beam trace on the model, calculating the beam parameters at each optical node.  | 
  | 
|
  | 
Utility function for connecting multiple connectable objects in a sequential list together.  | 
  | 
Retrieves a tree containing the network representing the components connected to the specified root.  | 
  | 
Calculate the Gouy phases accumulated over each space.  | 
  | 
Connects two ports in a model together.  | 
  | 
Sets the beam parameters such that a mismatch of the specified percentage magnitude (in terms of \(w_0\) and \(z\)) exists at the given node.  | 
  | 
Detect the mode mismatches in the model.  | 
Returns the electrical and mechanical nodes that are active in a model, i.e. ones that need to be solved for because:.  | 
|
  | 
|
  | 
Extracts elements of a specific type from this model.  | 
  | 
|
  | 
Get specified network.  | 
  | 
Inserts the mode indices in modes into the   | 
  | 
Get string containing information about this model.  | 
  | 
|
  | 
Merges the model other with this model using a connection at the specified ports.  | 
  | 
Parses kat script and adds the resulting objects to the model.  | 
  | 
Parses kat script from a file and adds the resulting objects to the model.  | 
  | 
Parses legacy (Finesse 2) kat script and adds the resulting objects to the model.  | 
  | 
Parses legacy (Finesse 2) kat script from a file and adds the resulting objects to the model.  | 
  | 
Retrieves an ordered container of the path trace between the specified nodes.  | 
  | 
Plot the node network.  | 
  | 
Prints the mismatches between each cavity in an easily readable table format.  | 
  | 
Prints the mismatches computed by   | 
  | 
Prints the space Gouy phases, as computed by   | 
  | 
|
  | 
|
  | 
Get an attribute of the model using a string path representation like l1.p1.o.q.  | 
  | 
Set an attribute of the model using a string path representation like l1.p1.o.q.  | 
  | 
Removes an object from the model.  | 
  | 
Removes the mode indices in modes from the   | 
Resets the simulation beam tracing configuration dict, given by   | 
|
  | 
Runs the current analysis set for this model.  | 
  | 
Select the HOM indices to include in the model.  | 
  | 
Change the   | 
  | 
Obtains a subgraph of the complete configuration graph between the two specified nodes.  | 
Turns off HOMs, switching the model to a plane wave basis.  | 
|
  | 
Tag a node with a unique name.  | 
Generate an undirected graph containing components as the nodes of the graph and connections (spaces, wires, joints) between component nodes as the edges of the graph.  | 
|
If a model has been built then this function undoes the process so the model can be changed and rebuilt if required.  | 
|
Serialise the model to kat script.  | 
|
  | 
Serialise the model to kat script in a file.  | 
  | 
Update the value of a manual beam parameter (i.e.  |