lnls-fac / collective_effects

Python scripts to calculate and simulate collective effects
2 stars 2 forks source link

Add flag identical bunches in LongitudinalEquilibrium #27

Closed murilobalves closed 1 month ago

murilobalves commented 2 months ago

Boolean attribute identical_bunches included in LongitudinalEquilibrium class.

The calculation speed is greatly improved. Example of performance and results comparison for SIRIUS parameters, calculating the equilibrium with only SC 3HC at flat potential condition, with different calculation methods. The convergence tolerance for distribution was set to 1e-8, thus the difference between the calculation with or without the identical_bunches flag on the order of the convergence parameter.

image

image

image

image