output of the phase space coordinates at mutiple locations
Moderators: cyao, michael_borland
output of the phase space coordinates at mutiple locations
One can get the final phase space coordinates in Elegant in the "%s.out". Maybe sometimes one needs to inspect the phase space evolutions in tracking. Is it possible to get the phase space coordinates in the intermediate locations of tracking? Thanks.
-
- Posts: 1933
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: output of the phase space coordinates at mutiple locations
Yes, you can do this by inserting WATCH elements into the beamline. The insert_elements command can help with this if you want many such elements.
E.g., to put a WATCH element at every quadrupole, try
&insert_elements
name=*, type=*QUAD*,
element_def = "WQ: WATCH,FILENAME=%s-%03ld.wq,mode=coordinate"
&end
Of course, having many of these may generate a lot of data and make the simulation run more slowly.
--Michael
E.g., to put a WATCH element at every quadrupole, try
&insert_elements
name=*, type=*QUAD*,
element_def = "WQ: WATCH,FILENAME=%s-%03ld.wq,mode=coordinate"
&end
Of course, having many of these may generate a lot of data and make the simulation run more slowly.
--Michael