finesse.simulations.graph.tools.ModelOperatorPicture

Overview

class finesse.simulations.graph.tools.ModelOperatorPicture(model: Model, evaluate=True, reduce=True)[source]

Bases: object

A picture of the current model state in terms of operators applied in a reduced graph. The graph consists of each optical node and the edges are operators describing how optical fields propagate between nodes. Any operators that are zero will be removed from the graph.

Attributes
node_indexdict

A dictionary mapping node names to their indices.

index_namedict

A dictionary mapping node indices to their names.

elementslist

A list of optical elements in the model.

graphfinesse.model.Graph

A reduced graph representation of the optical model.

N_reductionsint

The number of reductions performed on the graph.

model_constantsdict

A dictionary of model constants.

optical_equationsdict

A dictionary of all optical equations in the model.

evald_optical_equationsdict

A dictionary of evaluated optical equations keeping any changing symbols.

operatorsdict

A dictionary of symbolic optical operators for each edge in graph

non_numeric_symbolslist

A list of non-numeric symbols in the model.

changing_symbolstuple

A tuple of symbols that are changing in the model.

Methods

ModelOperatorPicture.__init__(model[, ...])

ModelOperatorPicture.solve(node_index, ...)

Computes a symbolic solutions for a given node within the graph.