ocelot.lib.genera.src.python.radiation.emsolver
¶
Module Contents¶
Functions¶
|
|
|
|
|
|
|
|
-
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)¶ find trajectory and mag field on the trajectory. system of unit is [mm,rad]
display undulator parameter, for the controlling of calculation
- 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
- calculation of radiation.
Current must be in mA.
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
Code can choose right library (dll / so) automatically depend on OS
list_lists_motion will be transform to list_motion