output of the phase space coordinates at mutiple locations

Moderators: cyao, michael_borland

Post Reply
Xiaozhong
Posts: 2
Joined: 20 Jun 2019, 08:29

output of the phase space coordinates at mutiple locations

Post by Xiaozhong » 20 Jun 2019, 09:07

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.

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

Re: output of the phase space coordinates at mutiple locations

Post by michael_borland » 21 Jun 2019, 10:29

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

Post Reply