tracking of longitudinal phase space
Moderators: cyao, michael_borland
tracking of longitudinal phase space
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 387 times
-
- indus2.lte
- (831 Bytes) Downloaded 373 times
-
- Posts: 1933
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: tracking of longitudinal phase space
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
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
Re: tracking of longitudinal phase space
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.
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.
-
- Posts: 1933
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: tracking of longitudinal phase space
Abdurrahim,
Try the attached files.
--Michael
Try the attached files.
Code: Select all
% elegant indus2.ele
% sddsplot -col=dCt,Cdelta indus2-x.w1 -graph=dot
- Attachments
-
- indus2.lte
- (881 Bytes) Downloaded 484 times
-
- indus2.ele
- (761 Bytes) Downloaded 455 times
Re: tracking of longitudinal phase space
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 242 times
-
- bucket_track.ele
- (874 Bytes) Downloaded 233 times
-
- Posts: 1933
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: tracking of longitudinal phase space
Abdurrahim,
The problem is that particles are lost, which requires some extra work on the plot command to see what you want.
Try
--Michael
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
Re: tracking of longitudinal phase space
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
Abdurrahim
- Attachments
-
- testline.lte
- (1.29 KiB) Downloaded 222 times
-
- Basic.ele
- (827 Bytes) Downloaded 199 times
-
- Posts: 1933
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: tracking of longitudinal phase space
Abdurrahim,
Please see attached files for how to do this.
--Michael
Please see attached files for how to do this.
--Michael
- Attachments
-
- example.zip
- (926 Bytes) Downloaded 218 times
Re: tracking of longitudinal phase space
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
Abdurrahim
Re: tracking of longitudinal phase space
Can you please share the script for calculating the alpha3 (third order momentum compaction factor).
Abdurrahim
Abdurrahim