saving trajectory associated with macroparticle(s)

Moderators: cyao, michael_borland

Post Reply
Philippe Piot
Posts: 83
Joined: 20 Aug 2008, 13:18
Location: Northern Illinois University & Argonne National Laboratory
Contact:

saving trajectory associated with macroparticle(s)

Post by Philippe Piot » 16 Jun 2020, 05:45

Hello,
Is there a way in ELEGANT to save the trajectory of a few macroparticles associated with a bunch while tracking the entire bunch? Thank you, -- Philippe.

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

Re: saving trajectory associated with macroparticle(s)

Post by michael_borland » 30 Jun 2020, 09:32

Philippe,

Unfortunately, no. The best I can suggest is the following
  1. Add WATCH elements after all locations of interest. The insert_elements command can help with that.
  2. Use the START_PID and END_PID parameters on the WATCH elements to limit the output to a few interesting particles. This requires that the particles of interest have their particle IDs within a range that excludes all other particles.
  3. Postprocess to create a file for each particle of interest.
The attached script may help.

--Michael
Attachments
followIndividualParticles.zip
(2.16 KiB) Downloaded 221 times

Philippe Piot
Posts: 83
Joined: 20 Aug 2008, 13:18
Location: Northern Illinois University & Argonne National Laboratory
Contact:

Re: saving trajectory associated with macroparticle(s)

Post by Philippe Piot » 01 Jul 2020, 23:11

Michael,
Thank you very much for the suggestion. All the best, -- Philippe.

Post Reply