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
Transverse phase space
Moderators: cyao, michael_borland
-
- Posts: 23
- Joined: 15 Jun 2021, 13:38
Re: Transverse phase space
Here are my files.
I forgot to add them.
I forgot to add them.
- Attachments
-
- input2.sdds
- (13.36 KiB) Downloaded 99 times
-
- STORAGE.lte
- (3.7 KiB) Downloaded 92 times
-
- track.ele
- (1.53 KiB) Downloaded 94 times
-
- Posts: 1818
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Transverse phase space
Samira,
See the attached files.
--Michael
See the attached files.
--Michael
- Attachments
-
- track.ele
- (849 Bytes) Downloaded 103 times
-
- STORAGE.lte
- (3.84 KiB) Downloaded 100 times
-
- Posts: 23
- Joined: 15 Jun 2021, 13:38
Re: Transverse phase space
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
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
-
- Posts: 1818
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Transverse phase space
Samira,
-Michael
This provides a nicer starting point for phase space plots because all the particles are arrayed on a line with equal spacing
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].Samira.kasaei wrote: ↑17 Mar 2022, 02:58If I set center_on_orbit to zero I don't see any difference in the results.
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