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
Energy distribution
Moderators: cyao, michael_borland
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Energy distribution
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
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
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
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
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Energy distribution
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
--Michael
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