Boolean attribute identical_bunches included in LongitudinalEquilibrium class.
identical_bunches = False the code works exactly as before, solving the Haissinki equation for all h bunches, thus distributions and induced voltages are (h, zgrid.size) arrays.
identical_bunches = True and fillpattern is uniform, the code solves the Haissinski equation only for 1 bunch, assuming the solution is identical for all other bunches in uniform filling. This reduces the dimensionality of the problem to (1, zgrid.size) arrays.
identical_bunches = True and fillpattern is nonuniform, the code raises an Exception since this is inconsistent.
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.
Boolean attribute
identical_bunches
included inLongitudinalEquilibrium
class.identical_bunches = False
the code works exactly as before, solving the Haissinki equation for all h bunches, thus distributions and induced voltages are(h, zgrid.size)
arrays.identical_bunches = True
andfillpattern
is uniform, the code solves the Haissinski equation only for 1 bunch, assuming the solution is identical for all other bunches in uniform filling. This reduces the dimensionality of the problem to(1, zgrid.size)
arrays.identical_bunches = True
andfillpattern
is nonuniform, the code raises an Exception since this is inconsistent.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.