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

Polarization components from EPU #116

Open
Arcus-Sinus opened this issue Sep 26, 2024 · 1 comment
Open

Polarization components from EPU #116

Arcus-Sinus opened this issue Sep 26, 2024 · 1 comment

Comments

@Arcus-Sinus
Copy link

Arcus-Sinus commented Sep 26, 2024

Hello,
Is there any way to calculate the polarization components of the EPU (APPLE II)?

Namely, e.g. you set the undulator to circular polarization but it never really is 100% of the flux in some harmonics.

And maybe possible to make a scan of flux in different polarizations versus the phase of the EPU?

Thank you in advance for any possible reply.
Kind regards,
Tomasz

@srio
Copy link
Member

srio commented Sep 26, 2024

Hello,

you can do scans extracting the XOPPY script and modifyoing it to make loops on the scanning variables.

Unfortunately I do not have experience with helical undulators and I have not tested the apps in XOPPY. However, most of the undulator calculations rely in SRW, and I believe it can correctly calculate your undulator. What we do in XOPPY/Undulator spectrum is just a layer on top of SRW to pass the parameters.

The XOPPY script does not create the native SRW script but uses xoppy_calc_undulator_spectrum in
https://github.com/oasys-kit/xoppylib/blob/main/xoppylib/sources/xoppy_undulators.py . For the spectra (1d scans) it calls calc1d_srw in https://github.com/oasys-kit/xoppylib/blob/main/xoppylib/sources/srundplug.py

Hope this helps.

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

2 participants