Plotting charge at each ring pass

Moderators: cyao, michael_borland

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

Plotting charge at each ring pass

Post by Max » 12 Jul 2011, 14:25

Dear Michael and collaborators,
I sent this query earlier today, but I believe it did not get through, as I don't see it in my topics.
I am trying to simulate the loss of beam when bumping it against an aperture limitation (poor man's scraper experiment).
I am using the recirculation option (n_passes and element RECIRC).
How can I plot the circulating charge at each pass ?

Thanks, Max

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

Re: Plotting charge at each ring pass

Post by michael_borland » 12 Jul 2011, 14:32

Max,

You can do this by inserting a WATCH element in the beamline, as follows:

w1: watch,filename="%s.w1",mode="parameters"
ring: line=(w1, ...)

With this, you can plot the number of fraction of particles left using
% sddsplot -column=Pass,Transmission <whatever>.w1

--Michael

Post Reply