Page 1 of 2

Dipole element

Posted: Tue 22 Feb 2022 08:15
by Vyacheslav
Dear Didier,

is it possible to somehow simulate beam transport throughout bending magnet with quadrupole component (the so called dipole-quadrupole), that is used, for example, on synchrotron ligth sources?

Will such element appear in the next version of TraceWin?

Best regards,
Vyacheslav

Re: Dipole element

Posted: Tue 22 Feb 2022 10:10
by Didier
Dear Vyacheslav,

Honestly this is not planned int he near futur, but two solutions exist. The first is the use of field maps and the second is the possibility for TraceWin users to include their own elements.

Regards,

Didier

Re: Dipole element

Posted: Tue 22 Feb 2022 13:16
by Didier
Dear Vyacheslav,

I realise that I may have been a little fast in my answer. The BEND element has a "Field gradient index" parameter which, unless I am mistaken, corresponds to your request, no ?

Regards,

Didier

Re: Dipole element

Posted: Tue 22 Feb 2022 15:24
by Vyacheslav
Dear Didier,

is field index gradient defined as n=-R/B*(dB/dr)?
If yes, what is B-component used here, in what point (how it describe and indicate in the program) is derivative calculated?

Regards, Vyacheslav

Re: Dipole element

Posted: Tue 22 Feb 2022 16:50
by Didier
Dear Vyacheslav,

Could you please have a look on manual where the detail of the bend matrix used is indicated. I think you find your answer.

Regards,

Didier

Re: Dipole element

Posted: Wed 23 Feb 2022 14:15
by Vyacheslav
Dear Didier,

I've look ot the manual and found that field index gradient (FIG), for example, corresponds to the C-shape bend with no parallel poles (black curves rather than blue ones on the figure 1).
figure 1
figure 1
C bend.jpg (38.58 KiB) Viewed 2012 times
In my case I need to somehow simulate dipole-quadrupole like in the figure 2.
figure 2
figure 2
DQ.jpg (76.28 KiB) Viewed 2012 times
Can MULTIPOLE element hold the members of the B-field decomposition in the series?
Other words is it possible to hold n=1 and n=2 for the MULTIPOLE simultaneously?

Best regards,
Vyacheslav

Re: Dipole element

Posted: Thu 24 Feb 2022 09:50
by Didier
Dear Vyacheslav,

Ok, I see. MULTIPOLE elements can indeed make this type of element except that it is not possible to superpose them. For that, you have to use FIELD_MAP elements. But, it's very easy to go from MULTIPOLE to FIELD_MAP and then use the superpose map feature to make what you need. I have upgraded the MUTIPOLE documentation in the TraceWin manual, to explain how to do this in detail.

Regards,

Didier
Multipole Field Map.pdf
(478.45 KiB) Downloaded 96 times

Re: Dipole element

Posted: Thu 24 Feb 2022 13:06
by Didier
Dear Vyacheslav,

Finally, you can forget my previous suggestion and use this configuration directly:

Code: Select all

SUPERPOSE_MAP 0
MULTIPOLE 1 400 100 0.01 100
SUPERPOSE_MAP 0
MULTIPOLE 2 400 100 0.02 100
Regards,

Didier

Re: Dipole element

Posted: Thu 24 Feb 2022 13:06
by Didier
Dear Vyacheslav,

Finally, you can forget my previous suggestion and use this configuration directly:

Code: Select all

SUPERPOSE_MAP 0
MULTIPOLE 1 400 100 0.01 100
SUPERPOSE_MAP 0
MULTIPOLE 2 400 100 0.02 100
Regards,

Didier

Re: Dipole element

Posted: Thu 24 Feb 2022 18:16
by Vyacheslav
Dear Didier,

I'll try.
Thanks a lot.

Regards,
Vyacheslav