Matrix#
- class georges.manzoni.elements.Matrix(name: str = '', integrator: ~georges.manzoni.integrators.IntegratorType = <class 'georges.manzoni.integrators.MadXIntegrator'>, *params, **kwargs)[source]#
Bases:
ManzoniElement
Define a Matrix element.
- Attributes:
PARAMETERS (dict): Dictionary containing the parameters of the Matrix with their default values.
- Examples:
>>> m1 = Matrix('M1', MATRIX=_np.eye(6)) >>> m1 Matrix: {'NAME': 'M1', 'AT_ENTRY': <Quantity(0, 'meter')>, 'AT_CENTER': <Quantity(0, 'meter')>, 'AT_EXIT': <Quantity(0, 'meter')>, 'MATRIX': array([[1., 0., 0., 0., 0., 0.], [0., 1., 0., 0., 0., 0.], [0., 0., 1., 0., 0., 0.], [0., 0., 0., 1., 0., 0.], [0., 0., 0., 0., 1., 0.], [0., 0., 0., 0., 0., 1.]])}
Command attributes
Attributes:
NAME=’’ (str): Primary label for the Manzoni command (default: auto-generated hash).
AT_ENTRY=’0 meter’ (Quantity): Entrance position of the element.
AT_CENTER=’0 meter’ (Quantity): Entrance position of the element.
AT_EXIT=’0 meter’ (Quantity): Exit position of the element.
MATRIX=’[[1. 0. 0. 0. 0. 0.]
[0. 1. 0. 0. 0. 0.] [0. 0. 1. 0. 0. 0.] [0. 0. 0. 1. 0. 0.] [0. 0. 0. 0. 1. 0.] [0. 0. 0. 0. 0. 1.]]’ (ndarray): Transfer matrix.
Default initializer for all Commands.
Attributes Summary
Parameters of the element, with their default value and their description .
Methods Summary
propagate
(beam_in[, beam_out, global_parameters])- param beam:
Attributes Documentation
- INTEGRATOR: IntegratorType | None = None#
- PARAMETERS: dict = {'AT_CENTER': (<Quantity(0, 'meter')>, 'Entrance position of the element.'), 'AT_ENTRY': (<Quantity(0, 'meter')>, 'Entrance position of the element.'), 'AT_EXIT': (<Quantity(0, 'meter')>, 'Exit position of the element.'), 'MATRIX': (array([[1., 0., 0., 0., 0., 0.], [0., 1., 0., 0., 0., 0.], [0., 0., 1., 0., 0., 0.], [0., 0., 0., 1., 0., 0.], [0., 0., 0., 0., 1., 0.], [0., 0., 0., 0., 0., 1.]]), 'Transfer matrix.'), 'NAME': ('', 'Primary label for the Manzoni command (default: auto-generated hash).')}#
Parameters of the element, with their default value and their description .
- parameters#
Methods Documentation