Hello,
I am simulating a bunched beam with sigma_dp = 0.001, but respect to my data it's not the same.
In fact, I would like to have an asymmetric sigma_dp (an asymmetry on the left side of my gaussian simulation) to have a better agreement with my data.
Is it possible? If yes, how can I modify my elegant file?
Thank you in advance,
Silvia
Fractional momentum spread sigma_dp
Moderators: cyao, michael_borland
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Fractional momentum spread sigma_dp
Silvia,
You can use the program sddssampledist to generate an arbitrary momentum distribution outside of elegant, then load the particles via the sdds_beam command.
Let's assume that your beam is gaussian in (x, xp, y, yp, t), but has a different distribution in momentum. The procedure to generate this beam would be
--Michael
You can use the program sddssampledist to generate an arbitrary momentum distribution outside of elegant, then load the particles via the sdds_beam command.
Let's assume that your beam is gaussian in (x, xp, y, yp, t), but has a different distribution in momentum. The procedure to generate this beam would be
- Run elegant to make a nominal distribution of particles.
- Throw out the unwanted p coordinates.
- Generate new p coordinates by sampling a desired distribution (sddssampledist).
- Merge with other coordinates.
--Michael
- Attachments
-
- customLongitudinal.zip
- (4.7 KiB) Downloaded 381 times
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Fractional momentum spread sigma_dp
Silvia,
There are also several examples in the the elegant examples file, under customBeamDistributions.
--Michael
There are also several examples in the the elegant examples file, under customBeamDistributions.
--Michael