tracking of longitudinal phase space

Moderators: cyao, michael_borland

arahim
Posts: 26
Joined: 08 Jun 2012, 05:28

tracking of longitudinal phase space

Post by arahim » 19 Apr 2015, 03:15

Please help me in tracking the longitudinal phase space and its plotting. I have attached the lattice and ele file. What modification I have to do in my lattice file if I have to consider higher order momentum compaction factor also. Thanking you..Abdurrahim
Attachments
indus2.ele
(536 Bytes) Downloaded 352 times
indus2.lte
(831 Bytes) Downloaded 343 times

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

Re: tracking of longitudinal phase space

Post by michael_borland » 20 Apr 2015, 08:01

Abdurrahim,

The most basic thing you can do is just set "default_order=2" in the &run_setup command. Presently, you have "default_order=1", which means you'll only see the first-order momentum compaction.

For tracking, you'll get even higher-order effects by switching from RBEN, QUAD, SEXT, and DRIFT elements to CSBEN, KQUAD, KSEXT, and EDRIFT elements.

--Michael

arahim
Posts: 26
Joined: 08 Jun 2012, 05:28

Re: tracking of longitudinal phase space

Post by arahim » 20 Apr 2015, 08:39

Thanks a lot for your reply...
I want to plot the longitudinal bucket. Is my ele file is ok to track the longitudinal phase space..I am not able to find the coordinate to give input for sddsplot.

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

Re: tracking of longitudinal phase space

Post by michael_borland » 20 Apr 2015, 09:28

Abdurrahim,

Try the attached files.

Code: Select all

% elegant indus2.ele
% sddsplot -col=dCt,Cdelta indus2-x.w1 -graph=dot
--Michael
Attachments
indus2.lte
(881 Bytes) Downloaded 454 times
indus2.ele
(761 Bytes) Downloaded 422 times

arahim
Posts: 26
Joined: 08 Jun 2012, 05:28

Re: tracking of longitudinal phase space

Post by arahim » 20 Jan 2019, 02:43

I am not able to plot alpha buckets using the command sddsplot indus2-x.w1 -col=dCt,Cdelta -graph=dot. For the sextupole (S2) strength 1.8, it is plotting the regular bucket but below the strength 1.8 (I took 1.7), where the alpha buckets should start appearing, neither the regular nor alpha bucket is getting plotted.
Attachments
test_ring.lte
(1.27 KiB) Downloaded 211 times
bucket_track.ele
(874 Bytes) Downloaded 201 times

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

Re: tracking of longitudinal phase space

Post by michael_borland » 24 Jan 2019, 11:22

Abdurrahim,

The problem is that particles are lost, which requires some extra work on the plot command to see what you want.

Try

Code: Select all

sddsplot -col=dCt,Cdelta indus2-x.w1 -graph=dot -scale=-1.5e-10,1.5e-10,-0.012,0.012
example.png
--Michael

arahim
Posts: 26
Joined: 08 Jun 2012, 05:28

Re: tracking of longitudinal phase space

Post by arahim » 13 Feb 2019, 07:04

Thank you very much for your reply. I am almost new for the Elegant. I want to ask one more question. I am varying the strength of the quadruple using vary_element command and want to print the tunes with quad strengths. How can I do it. I have attached the files, in which I have tried to do so but dont know where to see the results. Please help me. Thanks in advance.

Abdurrahim
Attachments
testline.lte
(1.29 KiB) Downloaded 189 times
Basic.ele
(827 Bytes) Downloaded 169 times

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

Re: tracking of longitudinal phase space

Post by michael_borland » 13 Feb 2019, 11:14

Abdurrahim,

Please see attached files for how to do this.

--Michael
example.png
Attachments
example.zip
(926 Bytes) Downloaded 194 times

arahim
Posts: 26
Joined: 08 Jun 2012, 05:28

Re: tracking of longitudinal phase space

Post by arahim » 13 Feb 2019, 23:43

Thanks a lot. It is working fine. As I understood, vary_element will execute all the command mentioned prior or after it on the .ele page in every loop. Please correct me if I am wrong. n_steps, n_indices and index_number are not very clear to me from the elegant manual. Please help me to understand these commands. Thanks in advance.

Abdurrahim

arahim
Posts: 26
Joined: 08 Jun 2012, 05:28

Re: tracking of longitudinal phase space

Post by arahim » 05 Aug 2019, 06:36

Can you please share the script for calculating the alpha3 (third order momentum compaction factor).

Abdurrahim

Post Reply