Page 1 of 1
Energy distribution
Posted: 11 Jul 2019, 09:55
by Jafarinia
Hi Michael,
Is it possible to set an energy distribution which is different from particle distribution in ELEGANT?
In &bunched_beam you can just set particle distribution and ELEGANT takes the same distribution for the energy.
Thanks,
Farzad
Re: Energy distribution
Posted: 11 Jul 2019, 11:14
by michael_borland
Farzad,
I'm not sure what it would mean to set an energy distribution independently of the particle distribution. What are you trying to compute?
--Michael
Re: Energy distribution
Posted: 12 Jul 2019, 03:51
by Jafarinia
Dear Micheal,
My question is a general question. For example, How can I get a bunch with linear particle distribution in X but a Gaussian energy distribution also in X?
(or any other distribution which is different from the particle distribution)
Farzad
Re: Energy distribution
Posted: 12 Jul 2019, 08:14
by michael_borland
Farzad,
By "Gaussian energy distribution also in X", you mean that there is dispersion? If so, then just specify values for eta_x and sigma_dp . For example
Code: Select all
&bunched_beam
! x betatron distribution
distribution_type[0] = "line",
beta_x = 1
emit_x = 1e-9
! energy distribution
distribution_type[2] = "gaussian",
sigma_dp = 1e-3
! x distribution involves energy via the dispersion
eta_x = 0.1
&end
--Michael