SR loss per turn with momentum offset

Moderators: cyao, michael_borland

Post Reply
amal
Posts: 17
Joined: 04 May 2011, 23:30

SR loss per turn with momentum offset

Post by amal » 06 Jan 2025, 10:56

I want to compute the SR loss per turn in an electron storage ring with fractional offset in the momentum. For this, I defined an element of type "malign" and then "vary_element" with item as dp, followed by "twiss_output". However, it did not work. How I can obtain this loss as a function of momentum offset? Can I save the results in a file for plotting?

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

Re: SR loss per turn with momentum offset

Post by michael_borland » 06 Jan 2025, 18:38

The twiss_output command can't do this computation at present. I'll add it in a future version.

Meanwhile, I've attached some files that show how to do it using element-by-element radiation, which is more accurate in any case. In this example, I used the closed_orbit command to first find the off-momentum closed orbit, so the calculation is appropriate to a particle that circulates for a while at some momentum deviation. The result is not the same as the E^4 scaling that you'll get if you scale the magnets and beam energy together.

--Michael
Attachments
trackingExample.zip
(2.19 KiB) Downloaded 989 times

amal
Posts: 17
Joined: 04 May 2011, 23:30

Re: SR loss per turn with momentum offset

Post by amal » 06 Jan 2025, 23:28

Thanks for sharing the examples.

amal
Posts: 17
Joined: 04 May 2011, 23:30

Re: SR loss per turn with momentum offset

Post by amal » 13 Jan 2025, 23:50

I obtained SR loss per turn with energy off-set using Elegant, as you described. The files .lte and .ele are attached here for your reference. I also computed same function using analytical formula up to second order in energy off-set. There is a discrepancy in both the results, which I could not understand. The results with the derived formula are also attached in the word file for your kind review...

Amal ...
Attachments
Analytical_vs_code_SR_with_dpp.docx
(97.09 KiB) Downloaded 1054 times
testline.lte
(1.29 KiB) Downloaded 932 times
Basic.ele
(695 Bytes) Downloaded 969 times

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

Re: SR loss per turn with momentum offset

Post by michael_borland » 24 Feb 2025, 15:56

Amal,

I think issue may be that in the tracking simulation, you include synchrotron radiation in the quadrupoles

Code: Select all

&alter_elements name=*[QS]*, type=K*, item=SYNCH_RAD, value=1 &end
If I comment out that statement, the nonlinearity (judging by the second-order term in a fit) is reduced an order of magnitude.

--Michael

amal
Posts: 17
Joined: 04 May 2011, 23:30

Re: SR loss per turn with momentum offset

Post by amal » 25 Feb 2025, 07:28

Michael,

Thanks for clarifying the doubt. By commenting the statement, results from the code and formulation are closer. In fact, now output from the code has slightly lesser nonlinear effect (not much different) compared to the formulation.

Thanks again,

Amal.

Post Reply