finesse.components.general.Variable

Overview

class finesse.components.general.Variable(name, value)[source]

Bases: ModelElement

A Variable is a model element which can be a symbolic expression. This can be a simple constant, like the refractive index of glass, or something more complicated like an full symbolic expression.

The value attribute contains the value of this Variable. ref can be used to make a symbolic reference to this variables value.

Attributes:
namestr

ModelElement.name(self) Name of the element.

value

Value

ref

ModelElement.ref(self)