Mathematical Notes¶
Coordinate System¶
A right-handed cartesian coordinate system is used throughout. To be clear:
Undulator Parameters¶
The K parameter is defined as follows
or in practical units
where \(B_{max}\) is the maximum magnetic field and \(\lambda_0\) is the undulator period.
Electric Field in Frequency Domain¶
Electric field calculation are done including the near-field terms. For calculations of the flux and spectra, the electric field is calculated from the Liénard–Wiechert potentials in the frequency domain. The derivation of this can be found in many texts ([Hoffman]). Some approximations remove the \(\frac{1}{r}\) term from the integral, treating the source as a fixed distance from the observer. No such approximation is made in this code and the calculation is valid for relativistic and non-relavistic, near and far particles.
Electric Field in Time Domain¶
The electric field in the time domain is calculated including the near-field terms. The observer time for these calculations is calculated as the retarded time from the particle position. Currently the differential equation solver is a Runge-Kutta 4th order method with a constant time-step in the particle frame. This means the that the time increments in the observer frame are not necessairly uniform. It is tempting to employ a discrete fourier transform on this distribution, but if you do so please understand that the data is not uniformly distributed in the observer frame.
where ret denotes where the retarded time \(\tau\) is used. The time t is calculated relative to \(\tau = 0\) at the time ctstart as
Power Density¶
The power density calculated is that of the radiated power and is given by the formula
On a surface the power is given as \([W/{mm}^{2}]\). The value is reported is the scalar product of the power density at a given point in space with the unit normal to the surface
[Hoffman] | Synchrotron Radiation, 1998 |
Total Radiated Power¶
The total radiated power is calculated as
Trajectory Calculation¶
At the moment the trajectory is a fourth order Runge-Kutta method. If you are interested in very long distances, alternatives may exist, and are possible to implement.
Energy loss due to emission is not considered. In most applications at accelerators this is rightfully neglected. However, if this is of interest for you it can be implemented.