ocelot.rad.undulator_params

simple functions to estimate radiation properties.

Sergey Tomin.

Module Contents

Functions

lambda2eV(Lambda)

eV2lambda(Ephoton)

Ephoton2K(Eph, lu=0.04, Eeb=14)

K2Ephoton(K, lu=0.04, E=14)

K2Lambda(K, lu=0.04, E=14)

field2K(field, lu=0.04)

function to translate magnetic field in [T] to K parameter

K2field(K, lu=0.04)

field2Ephoton(field, lu=0.04, E=14)

Ephoton2field(energy, lu=0.04, Eeb=14)

lambda2Ebeam(Lambda=1.04e-08, lu=0.0272, K=1.2392)

print_rad_props(beam, K, lu, L, distance)

Simple function to estimate radiation properties and print them

ocelot.rad.undulator_params.lambda2eV(Lambda)
ocelot.rad.undulator_params.eV2lambda(Ephoton)
ocelot.rad.undulator_params.Ephoton2K(Eph, lu=0.04, Eeb=14)
ocelot.rad.undulator_params.K2Ephoton(K, lu=0.04, E=14)
ocelot.rad.undulator_params.K2Lambda(K, lu=0.04, E=14)
ocelot.rad.undulator_params.field2K(field, lu=0.04)

function to translate magnetic field in [T] to K parameter :param field: in [T] :param lu: undulator period in [m] :return: K

ocelot.rad.undulator_params.K2field(K, lu=0.04)
ocelot.rad.undulator_params.field2Ephoton(field, lu=0.04, E=14)
ocelot.rad.undulator_params.Ephoton2field(energy, lu=0.04, Eeb=14)
ocelot.rad.undulator_params.lambda2Ebeam(Lambda=1.04e-08, lu=0.0272, K=1.2392)
class ocelot.rad.undulator_params.ID_radiation(beam, undulator)
f_n(self, nharm, K)
flux(self, current, K, nharm, energy, L, lperiod)
eff_sizes(self, K)
Flux(self, K, nharm=1)
Flux_tot(self, K, nharm)
Brightness(self, K, nharm)
ocelot.rad.undulator_params.print_rad_props(beam, K, lu, L, distance)

Simple function to estimate radiation properties and print them

Parameters
  • beam – Beam

  • K – undulator deflection parameter

  • lu – undulator period in [m]

  • L – undulator length in [m]

  • distance – distance to the screen im [m]

Returns

class ocelot.rad.undulator_params.UndulatorParameters(und=None, el_E=1.0)
recalculate(self)
computeRadiationAnalytical(self, z0, theta, phi, dwRel=0.1, npoints=100)
get_k(self, E)
printParameters(self)