Closed ChristopherMayes closed 7 months ago
The code that does this is: https://github.com/svenreiche/Genesis-1.3-Version4/blob/694c1d0c7d9d6a49f93e88ecc5629f9f4d970bce/src/Loading/QuietLoading.cpp#L258
Integrating gives the bunching = $J_1(2b)$,
Hi Christopher,
yes it is an bug since it does not reach the value one specifies.
The basic algorithm mimics the basic process how the FEL forms the bunching but it is limited to the Bessel Function value of J1.
To go beyond I have to include higher harmonics.
should be straight forward but it will takes some time.
Working on it....
The loading algorithm has been fixed and can now reproduce bunching factors up to 1.
To keep some back-compatibilities the correction is only applied for requested bunching values above 0.1
The updated code has been committed to master and dev branch
Describe the bug Above some value for bunching, the particles that Genesis4 produces do not show the requested level. Scanning over several values shows:
To Reproduce Using the following input, the bunching from the particles is 0.44 and not 0.5 as requested. The distribution in a typical slice looks like:
with
genesis4_drift.lat
:Expected behavior Bunching equal to the request is expected.