Page 1 of 1

Plotting charge at each ring pass

Posted: 12 Jul 2011, 14:25
by Max
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

Re: Plotting charge at each ring pass

Posted: 12 Jul 2011, 14:32
by michael_borland
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