Brilliance generated by 3 types of undulators

Moderators: cyao, michael_borland

Post Reply
Hexin
Posts: 9
Joined: 15 Nov 2018, 09:53

Brilliance generated by 3 types of undulators

Post by Hexin » 21 Jan 2019, 10:20

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.
Attachments
brightness.PNG
brightness

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Brilliance generated by 3 types of undulators

Post by michael_borland » 22 Jan 2019, 09:21

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

Hexin
Posts: 9
Joined: 15 Nov 2018, 09:53

Re: Brilliance generated by 3 types of undulators

Post by Hexin » 23 Jan 2019, 08:52

It's helpful to me. Thank you very much.

Hexin
Posts: 9
Joined: 15 Nov 2018, 09:53

Re: Brilliance generated by 3 types of undulators

Post by Hexin » 08 Feb 2019, 10:09

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.

david_bruhwiler
Posts: 8
Joined: 02 Dec 2013, 18:21
Location: Boulder, Colorado, USA
Contact:

Re: Brilliance generated by 3 types of undulators

Post by david_bruhwiler » 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

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Brilliance generated by 3 types of undulators

Post by michael_borland » 03 Jul 2019, 13:47

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

david_bruhwiler
Posts: 8
Joined: 02 Dec 2013, 18:21
Location: Boulder, Colorado, USA
Contact:

Re: Brilliance generated by 3 types of undulators

Post by david_bruhwiler » 03 Jul 2019, 13:57

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

Post Reply