Quadrupole#

class wake_t.beamline_elements.Quadrupole(length=0.0, k1=0.0, gamma_ref=None, csr_on=False, n_out=None, order=2)[source]#

Defines a quadrupole where the tracking is performed by transfer matrices up to second order.

Parameters:
lengthfloat

Length of the drift space in meters.

k1float

Normalized quadrupole strength in units of 1/m**2.

gamma_reffloat, optional

Reference gamma (relativistic Lorentz factor) to be used for the tracking. If not specified, the average gamma of the particle bunch is used.

csr_onbool

Whether to include CSR forces.

n_outint

Number of times along the element in which the particle distribution should be returned or written to file (if openpmd diagnostics are activated).

orderint

Highest order of the transfer matrices. Possible values are 1 and 2.

Methods

track(bunch[, backtrack, out_initial, ...])

Track bunch through element.