Page 1 of 1

Pelegant and elegant give different results

Posted: 07 May 2019, 08:05
by Qin
Hi Michael,

I had a linac simulation which compresses 10pC charge, 1.5ps bunch to only about 2fs in two-stage compression. The beam is accelearted from 100 MeV to 3GeV. I have both space charge and CSR on. Using elegant and Pelegant I got different beam phase space. My elegant version is 34.4.1( Aug 17 2018) on centOS 7 (compiled from source) and I ran 8 cores with Pelegant. I also checked on a Windows machine where I used Pelegant with 4 cores. The difference still showed up.

I attached the phase space and current profile for these two cases.

Do you have any idea where this difference might come from?


Re: Pelegant and elegant give different results

Posted: 22 May 2019, 14:36
by michael_borland

CSR tends to amplify small differences, so it is quite sensitive to any changes in the simulation. One difference between elegant and Pelegant will come in the random number generators, so synchrotron radiation (ISR=1 on CSRCSBEND) will be different. I'm surprised by the magnitude of the difference, though. You may want to trying using more particles.

It that doesn't solve the problem, please send the input files and I'll look at it in more detail.