Page 1 of 1

ellipse distribution

Posted: 02 Aug 2016, 10:44
by Philippe Piot
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.

Re: ellipse distribution

Posted: 02 Aug 2016, 10:48
by michael_borland
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