Energy distribution

Moderators: cyao, michael_borland

Post Reply
Jafarinia
Posts: 23
Joined: 02 Nov 2017, 12:25

Energy distribution

Post by Jafarinia » 11 Jul 2019, 09:55

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

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

Re: Energy distribution

Post by michael_borland » 11 Jul 2019, 11:14

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

Jafarinia
Posts: 23
Joined: 02 Nov 2017, 12:25

Re: Energy distribution

Post by Jafarinia » 12 Jul 2019, 03:51

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

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

Re: Energy distribution

Post by michael_borland » 12 Jul 2019, 08:14

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

Post Reply