Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
srio opened this issue Jul 12, 2024 · 0 comments
Open

Comments

@srio
Copy link
Member

srio commented Jul 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant