ellipse distribution

Moderators: cyao, michael_borland

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

ellipse distribution

Post by Philippe Piot » 02 Aug 2016, 10:44

Michael,
Is there a way to have a special distribution in the &bunch parameter to generate particle distributed on the perimeter of an ellipse. This would enable tracking equivalent-beam ellipses to, e.g., study the impact of chromatic aberrations.
Right now the only alternative I found was to generate the ellipses particle distribution in PYTHON (but maybe there an easier way with sdds). Thank you, -- Philippe.

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

Re: ellipse distribution

Post by michael_borland » 02 Aug 2016, 10:48

Philippe,

Yes, you can do that using the distribution_type parameter in bunched_beam, e.g.,

Code: Select all

&bunched_beam
	emit_x = 1e-6
	beta_x = 1
	distribution_type[0] = "shell"
	n_particles_per_bunch = 100
&end
This will generate an ellipse with semi-axes of 1mm and 1mrad.

--Michael

Post Reply