Page 1 of 1

Brilliance generated by 3 types of undulators

Posted: 21 Jan 2019, 10:20
by Hexin
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.

Re: Brilliance generated by 3 types of undulators

Posted: 22 Jan 2019, 09:21
by michael_borland
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

Re: Brilliance generated by 3 types of undulators

Posted: 23 Jan 2019, 08:52
by Hexin
It's helpful to me. Thank you very much.

Re: Brilliance generated by 3 types of undulators

Posted: 08 Feb 2019, 10:09
by Hexin
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.

Re: Brilliance generated by 3 types of undulators

Posted: 03 Jul 2019, 11:49
by david_bruhwiler
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

Re: Brilliance generated by 3 types of undulators

Posted: 03 Jul 2019, 13:47
by michael_borland
david_bruhwiler wrote:
03 Jul 2019, 11:49
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
David,

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

Re: Brilliance generated by 3 types of undulators

Posted: 03 Jul 2019, 13:57
by david_bruhwiler
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