Quadrupole#

class georges.manzoni.elements.Quadrupole(name: str = '', integrator: ~georges.manzoni.integrators.IntegratorType = <class 'georges.manzoni.integrators.MadXIntegrator'>, *params, **kwargs)[source]#

Bases: Magnet

Define a Quadrupole magnet.

PARAMETERS#

Dictionary containing the parameters of the Quadrupole with their default values.

Type:

dict

Examples

>>> q1 = Quadrupole('Q1', L=1*_ureg.m, K1=3*_ureg.m**-2)
>>> q1 
    Quadrupole: {'NAME': 'Q1',
    'AT_ENTRY': <Quantity(0, 'meter')>,
    'AT_CENTER': <Quantity(0, 'meter')>,
    'AT_EXIT': <Quantity(0, 'meter')>,
    'APERTYPE': None, 'APERTURE': [],
    'KINEMATICS': None,
    'L': <Quantity(1, 'meter')>,
    'K1': <Quantity(3, '1 / meter ** 2')>,
    'K1S': <Quantity(0.0, '1 / meter ** 2')>,
    'TILT': <Quantity(0.0, 'radian')>}

Command attributes

NAME=''

Primary label for the Manzoni command (default: auto-generated hash).

Type:

str

AT_ENTRY='0 meter'

Entrance position of the element.

Type:

Quantity

AT_CENTER='0 meter'

Entrance position of the element.

Type:

Quantity

AT_EXIT='0 meter'

Exit position of the element.

Type:

Quantity

APERTYPE='None'

Aperture type (CIRCULAR, ELLIPTICAL, RECTANGULAR or PHASE_SPACE)

Type:

NoneType

APERTURE='[]'
Type:

list

KINEMATICS='None'

Reference kinematics

Type:

NoneType

L='0.0 meter'

Quadrupole length.

Type:

Quantity

K1='0.0 / meter ** 2'

Normalized gradient.

Type:

Quantity

K1S='0.0 / meter ** 2'

Normalized skew gradient.

Type:

Quantity

TILT='0.0 radian'

Magnet tilt angle.

Type:

Quantity

Default initializer for all Commands.

Attributes Summary

PARAMETERS

Parameters of the element, with their default value and their description .

parameters

Attributes Documentation

PARAMETERS: dict = {'APERTURE': ([], ''), 'APERTYPE': (None, 'Aperture type (CIRCULAR, ELLIPTICAL, RECTANGULAR or PHASE_SPACE)'), '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.'), 'K1': (<Quantity(0.0, '1 / meter ** 2')>, 'Normalized gradient.'), 'K1S': (<Quantity(0.0, '1 / meter ** 2')>, 'Normalized skew gradient.'), 'KINEMATICS': (None, 'Reference kinematics'), 'L': (<Quantity(0.0, 'meter')>, 'Quadrupole length.'), 'NAME': ('', 'Primary label for the Manzoni command (default: auto-generated hash).'), 'TILT': (<Quantity(0.0, 'radian')>, 'Magnet tilt angle.')}#

Parameters of the element, with their default value and their description .

parameters#