Page 1 of 2

tracking of longitudinal phase space

Posted: 19 Apr 2015, 03:15
by arahim
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

Re: tracking of longitudinal phase space

Posted: 20 Apr 2015, 08:01
by michael_borland
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

Re: tracking of longitudinal phase space

Posted: 20 Apr 2015, 08:39
by arahim
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.

Re: tracking of longitudinal phase space

Posted: 20 Apr 2015, 09:28
by michael_borland
Abdurrahim,

Try the attached files.

Code: Select all

% elegant indus2.ele
% sddsplot -col=dCt,Cdelta indus2-x.w1 -graph=dot
--Michael

Re: tracking of longitudinal phase space

Posted: 20 Jan 2019, 02:43
by arahim
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.

Re: tracking of longitudinal phase space

Posted: 24 Jan 2019, 11:22
by michael_borland
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

Re: tracking of longitudinal phase space

Posted: 13 Feb 2019, 07:04
by arahim
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

Re: tracking of longitudinal phase space

Posted: 13 Feb 2019, 11:14
by michael_borland
Abdurrahim,

Please see attached files for how to do this.

--Michael
example.png

Re: tracking of longitudinal phase space

Posted: 13 Feb 2019, 23:43
by arahim
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

Re: tracking of longitudinal phase space

Posted: 05 Aug 2019, 06:36
by arahim
Can you please share the script for calculating the alpha3 (third order momentum compaction factor).

Abdurrahim