Page 1 of 1

Transverse phase space

Posted: 13 Mar 2022, 06:24
by Samira.kasaei
Dear Michael,

I wanted to plot transverse phase space for 1000 particle tracking. I did track and I introduced watch elements. I need to plot a profile as it is in the attached file.
can you give me some hints?

Best regards,
Samira

Re: Transverse phase space

Posted: 13 Mar 2022, 07:36
by Samira.kasaei
Here are my files.
I forgot to add them.

Re: Transverse phase space

Posted: 16 Mar 2022, 16:26
by michael_borland
Samira,

See the attached files.

--Michael
phaseSpace.png

Re: Transverse phase space

Posted: 17 Mar 2022, 02:58
by Samira.kasaei
Dear Michael,

Many thanks for reply.
I have three questions. I do appreciate if you answer me.
Why did you choose line distribution for the beam ?
If I set center_on_orbit to zero I don't see any difference in the results.
I am going to plot x-y space also, How can I do it?

Many thanks and best regards,
Samira

Re: Transverse phase space

Posted: 18 Mar 2022, 12:44
by michael_borland
Samira,
Samira.kasaei wrote:
17 Mar 2022, 02:58
Why did you choose line distribution for the beam ?
This provides a nicer starting point for phase space plots because all the particles are arrayed on a line with equal spacing
Samira.kasaei wrote:
17 Mar 2022, 02:58
If I set center_on_orbit to zero I don't see any difference in the results.
center_on_orbit defaults to 0. You should only see a difference if you set center_on_orbit=1, which causes the &track command to suppress the centroid offset from the &bunched_beam command. This changes the initial particle coordinates from spanning [0, 20 mm] to spanning [-10mm to +10mm].
comparison.png
Samira.kasaei wrote:
17 Mar 2022, 02:58
I am going to plot x-y space also, How can I do it?
There's no simple answer to that. If you have cross-plane coupling, vertical motion will appear automatically. You can also prepare a beam along a line in x-y space (do this with a separate run using a MALIGN element with covariation of DX and DY).

-Michael