Skip to content

undulators in polychromatic mode (bugs, further developments and tips) #33

@srio

Description

@srio

When calculating an undulator in polychromatic mode,

  1. is not possible to add the effect of Energy spread. This option works only for monochromatic source. Polychromatic source with energy spread is left for future development. Set Energy Spread=No:
    image

image

  1. Watch out for the parameters for sampling the source size. If the internal code is used, the "Source for backpropagation" = "Reused (from polar)" has a BUG. Please use "Recalculated", it is also more accurate (so recommended for general use)!

image

If using backpropagation for sampling the source size, as we do, it is convenient to have a look at the Undulator Plots/Backpropagated radiation. It looks quite strange a it has unphysical side rings:
image

You can play with the magnification and weight it to remove the side peaks:
image

This setup gives a reasonable ray distributions:

image

image

image

OASYS workspace is here (please rename txt to ows):

25-ID Microprobe.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions