Dear experts,
I want to get a picture like the attached document about brilliance generated by 3 types of undulators.
To get this graph, I need to set Beam energy , Beam current, Horizontal emittance, Emittance coupling, Undulator magnet fields.
I found in the manual that the sddsbrightness command can be used for brightness mapping.So I use the tswissfile corresponding to the required lattice, using the following commands
sddsbrightness wu.twi run.bri -harmonics=5 -Krange=start=0.2,end=2.2,points=100 -current=0.1 -totalLength=3 -periodLength=0.040 -coupling=0.1
But the sddsbrightness command does not have the set of Beam energy, Horizontal emittance, Undulator magnet fields.How should I set these three parameters to be the same as the required parameters?Do I need to use other commands?
Thanks,
Hexin.
Brilliance generated by 3 types of undulators
Moderators: cyao, michael_borland
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Brilliance generated by 3 types of undulators
Hexin,
The beam energy and horizontal emittance are taken from the twiss file (wu.twi in your case). The undulator magnet field is set by the Krange parameter. Recall that the peak magnetic field is B[Tesla] = K/(93.4*lambda[m]), where lambda is the period length.
--Michael
The beam energy and horizontal emittance are taken from the twiss file (wu.twi in your case). The undulator magnet field is set by the Krange parameter. Recall that the peak magnetic field is B[Tesla] = K/(93.4*lambda[m]), where lambda is the period length.
--Michael
Re: Brilliance generated by 3 types of undulators
It's helpful to me. Thank you very much.
Re: Brilliance generated by 3 types of undulators
Dear Michael:
If I need to set undulator's magnetic field value to a fixed value T, then what relationship should I follow among Krange's start value and end value and T?
Best regards
Hexin.
If I need to set undulator's magnetic field value to a fixed value T, then what relationship should I follow among Krange's start value and end value and T?
Best regards
Hexin.
-
- Posts: 8
- Joined: 02 Dec 2013, 18:21
- Location: Boulder, Colorado, USA
- Contact:
Re: Brilliance generated by 3 types of undulators
It is also possible to do such calculations with SRW, as described in detail here (paper freely available via the link):
B. Nash, O. Chubar, N. Goldring, D.L. Bruhwiler, P. Moeller, R. Nagler and M. Rakitin, “Detailed X-ray Brightness Calculations in the Sirepo GUI for SRW,” AIP Conference Proceedings 2054, 060080 (2019); https://doi.org/10.1063/1.5084711
The calculations can be done very easily via the Sirepo/SRW browser-based GUI:
https://beta.sirepo.com/en/xray-beamlines.html
B. Nash, O. Chubar, N. Goldring, D.L. Bruhwiler, P. Moeller, R. Nagler and M. Rakitin, “Detailed X-ray Brightness Calculations in the Sirepo GUI for SRW,” AIP Conference Proceedings 2054, 060080 (2019); https://doi.org/10.1063/1.5084711
The calculations can be done very easily via the Sirepo/SRW browser-based GUI:
https://beta.sirepo.com/en/xray-beamlines.html
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Brilliance generated by 3 types of undulators
David,david_bruhwiler wrote: ↑03 Jul 2019, 11:49It is also possible to do such calculations with SRW, as described in detail here (paper freely available via the link):
B. Nash, O. Chubar, N. Goldring, D.L. Bruhwiler, P. Moeller, R. Nagler and M. Rakitin, “Detailed X-ray Brightness Calculations in the Sirepo GUI for SRW,” AIP Conference Proceedings 2054, 060080 (2019); https://doi.org/10.1063/1.5084711
The calculations can be done very easily via the Sirepo/SRW browser-based GUI:
https://beta.sirepo.com/en/xray-beamlines.html
Is there a way to import data from elegant into SRW? E.g., it would be nice to be able to use data from the twiss_output and moments_output commands to define the beam properties, or even the output of particle tracking.
--Michael
-
- Posts: 8
- Joined: 02 Dec 2013, 18:21
- Location: Boulder, Colorado, USA
- Contact:
Re: Brilliance generated by 3 types of undulators
Hi Michael,
The short answer is no, sorry, but it's a great idea.
You can track the issue by following it on GitHub, if you like:
https://github.com/radiasoft/sirepo/issues/1747
Best,
David
The short answer is no, sorry, but it's a great idea.
You can track the issue by following it on GitHub, if you like:
https://github.com/radiasoft/sirepo/issues/1747
Best,
David