Transverse phase space

Moderators: cyao, michael_borland

Post Reply
Samira.kasaei
Posts: 26
Joined: 15 Jun 2021, 13:38

Transverse phase space

Post by Samira.kasaei » 13 Mar 2022, 06:24

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
Attachments
IMG-20220313-WA0005.jpg

Samira.kasaei
Posts: 26
Joined: 15 Jun 2021, 13:38

Re: Transverse phase space

Post by Samira.kasaei » 13 Mar 2022, 07:36

Here are my files.
I forgot to add them.
Attachments
input2.sdds
(13.36 KiB) Downloaded 155 times
STORAGE.lte
(3.7 KiB) Downloaded 144 times
track.ele
(1.53 KiB) Downloaded 144 times

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

Re: Transverse phase space

Post by michael_borland » 16 Mar 2022, 16:26

Samira,

See the attached files.

--Michael
phaseSpace.png
Attachments
track.ele
(849 Bytes) Downloaded 166 times
STORAGE.lte
(3.84 KiB) Downloaded 160 times

Samira.kasaei
Posts: 26
Joined: 15 Jun 2021, 13:38

Re: Transverse phase space

Post by Samira.kasaei » 17 Mar 2022, 02:58

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

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

Re: Transverse phase space

Post by michael_borland » 18 Mar 2022, 12:44

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

Post Reply