ocelot.cpbd.r_matrix
¶
Module Contents¶
Functions¶
|
|
|
universal matrix. The function creates R-matrix from given parameters. |
|
-
ocelot.cpbd.r_matrix.
logger
¶
-
ocelot.cpbd.r_matrix.
rot_mtx
(angle)¶
-
ocelot.cpbd.r_matrix.
uni_matrix
(z, k1, hx, sum_tilts=0.0, energy=0.0)¶ universal matrix. The function creates R-matrix from given parameters. r = element.l/element.angle +K - focusing lens, -K - defoc
- Parameters
z – element length [m]
k1 – quadrupole strength [1/m**2]
hx – the curvature (1/r) of the element [1/m]
sum_tilts – rotation relative to longitudinal axis [rad]
energy – the beam energy [GeV]
- Returns
R-matrix [6, 6]
-
ocelot.cpbd.r_matrix.
create_r_matrix
(element)¶