Generating flattop beam distribution
Posted: 19 May 2014, 17:19
Dear elegant users,
I want to generate flattop longitudinal beam distribution with flattop duration 5fs, peak current 10kA, and energy spread 1%in order to use in genesis.
The code I used is as following.
&bunched_beam
one_randon_bunch=0
first_is_fiducial=0
n_particles_per_bunch=100000
emit_nx=1e-7
emit_ny=1e-7
sigma_s=4.327e-7
sigma_dp=0.01
eta_x=0e-2
enforce_rms_values[0]=1,1,1
distribution_type[0]="gaussian","gaussian","line"
distribution_cutoff[0]=5,5,5
&end
Is this the right way to generate flattop distribution in elegant? I am not sure because my result from genesis is not what I expected, and then I suspect that my beam distribution may have some mistakes.
And can I set "eta_x=1e-2" if I want the beam to has 1cm dispersion?
It would be great if anyone who has experiences in using flattop distribution can provide some suggestions.
Thank you in advance,
Thakonwat
I want to generate flattop longitudinal beam distribution with flattop duration 5fs, peak current 10kA, and energy spread 1%in order to use in genesis.
The code I used is as following.
&bunched_beam
one_randon_bunch=0
first_is_fiducial=0
n_particles_per_bunch=100000
emit_nx=1e-7
emit_ny=1e-7
sigma_s=4.327e-7
sigma_dp=0.01
eta_x=0e-2
enforce_rms_values[0]=1,1,1
distribution_type[0]="gaussian","gaussian","line"
distribution_cutoff[0]=5,5,5
&end
Is this the right way to generate flattop distribution in elegant? I am not sure because my result from genesis is not what I expected, and then I suspect that my beam distribution may have some mistakes.
And can I set "eta_x=1e-2" if I want the beam to has 1cm dispersion?
It would be great if anyone who has experiences in using flattop distribution can provide some suggestions.
Thank you in advance,
Thakonwat