ocelot.lib.genera.src.python.radiation.emsolver

Module Contents

Functions

list_of_lists_to_LIST(list_lists)

pointer_to_list(list_motion)

radiation(em_screen, list_motion, gamma, beam_current, undulator, mode_proc)

solver(screen, cell, beam)

  1. find trajectory and mag field on the trajectory. system of unit is [mm,rad]

ocelot.lib.genera.src.python.radiation.emsolver.__author__ = Sergey Tomin
ocelot.lib.genera.src.python.radiation.emsolver.flag_pyOCL = True
ocelot.lib.genera.src.python.radiation.emsolver.flag_pyOCL = False
ocelot.lib.genera.src.python.radiation.emsolver.pathToDll
ocelot.lib.genera.src.python.radiation.emsolver.list_of_lists_to_LIST(list_lists)
ocelot.lib.genera.src.python.radiation.emsolver.pointer_to_list(list_motion)
ocelot.lib.genera.src.python.radiation.emsolver.radiation(em_screen, list_motion, gamma, beam_current, undulator, mode_proc)
ocelot.lib.genera.src.python.radiation.emsolver.solver(screen, cell, beam)
  1. find trajectory and mag field on the trajectory. system of unit is [mm,rad]

  2. display undulator parameter, for the controlling of calculation

  3. creation new class EMScreen. transform units of Screen [m] to units of EMScreen [mm]

    New system of definition em_screen.x_start, x_step and etc

  4. calculation of radiation.
    1. Current must be in mA.

    2. mode_proc can be “CPU” or “GPU”. code can choose automatically mode_proc if OS has not pyopencl or dimentions of task are very large

    3. Code can choose right library (dll / so) automatically depend on OS

    4. list_lists_motion will be transform to list_motion