Extracting particleID coordinates

Moderators: cyao, michael_borland

Post Reply
Max
Posts: 50
Joined: 31 Jul 2008, 12:16

Extracting particleID coordinates

Post by Max » 11 Jan 2012, 15:37

Dear Michael and collaborators,
I am running Elegant with the space charge option. I was wondering about the best way to pick a particle in a bunch in order to fft it to compute its incoherent tune shift. Is there a clever way to do it ?
I notice that the element WATCH has a "fft" mode. What does it do ?
Thanks, Max

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

Re: Extracting particleID coordinates

Post by michael_borland » 11 Jan 2012, 18:18

Max,

The WATCH FFT mode won't do what you want, since it works on the centroid coordinates only. You'll need to dump the particle coordinates using WATCH in "coord" mode.

Following that, this command should do it (although I confess I didn't try it):

sddsprocess data.sdds -pipe=out -filter=col,particleID,1,1 | sddsexpand -pipe | sddscollapse -pipe | sddsfft -pipe=in fft.sdds -column=Pass,x

This will pick out particle 1 and FFT the x values.

The expand | collapse trick is a way to convert all the parameters into columns, assuming you have only one row per page in the initial file.

--Michael

Max
Posts: 50
Joined: 31 Jul 2008, 12:16

Re: Extracting particleID coordinates

Post by Max » 12 Jan 2012, 20:40

Thank you, Michael,
your suggestion works well.

Cheers, Max

Post Reply