svenreiche / Genesis-1.3-Version4

Time-dependent, 3D Code to simulate the amplification process of a Free-electron Laser.
GNU General Public License v3.0
54 stars 27 forks source link

Reenable short range space charge #84

Closed svenreiche closed 9 months ago

svenreiche commented 1 year ago

Short range space charge is currently disabaled since the main core loop has changed. Before it was Runga Kutte 4th order where for each step the entire bunch is loop through. Due to a lot of cache update the order has changed with looping through all particles and for each the Runga Kutta is solved. IT reduces the memory requirement significantly as well.

The space charge field should be calculated before the Runga-Kutta calculation and should be once for each integration step.

svenreiche commented 9 months ago

Done with current commit of dev branch