core.elements.bend module
Define an horizontal Bend
.
The transfer matrix parameters, and k_x
in particular, are defined only for
a field gradient index inferior to unity in TraceWin documentation. For the
cases where n > 1
, see this topic.
- class Bend(line: list[str], dat_idx: int, name: str | None = None, **kwargs: str)
Bases:
Element
Hold the strict minimum for BEND element.
In TraceWin documentation, transfer matrix is in \(mm\) and \(deg\). We use here \(m\) and \(rad\).
- __init__(line: list[str], dat_idx: int, name: str | None = None, **kwargs: str) None
Precompute the parameters used to compute transfer matrix.
- _abc_impl = <_abc._abc_data object>
- base_name = 'DIP'
- property h_parameter: float
Compute the parameter
h
.
- property h_squared: float
Compute the
h**2
parameter.
- property k_x: float
Compute the
k_x
parameter.
- n_attributes: int | range | Collection = 5