element_parameters module

Define a base class for ElementBeamCalculatorParameters.

It is an attribute of an Element, and holds parameters that depend on both the Element under study and the BeamCalculator solver that is used.

Currently, it is used by Envelope1D and Envelope3D only, as TraceWin handles it itself.

class ElementBeamCalculatorParameters

Bases: ABC

Parent class to hold solving parameters. Attribute of Element.

Used by Envelope1D and Envelope3D.

has(key: str) bool

Tell if the required attribute is in this class.

get(*keys: str, to_numpy: bool = True, **kwargs: dict) Any

Shorthand to get attributes.

abstract re_set_for_broken_cavity() None | Callable

Update solver after a cavity is broken.

_abc_impl = <_abc._abc_data object at 0x7f3721997f00>