Skip to content
Snippets Groups Projects

Intrabeam scattering tracking implementation

Merged GUBAIDULIN requested to merge Ibs-implementation into develop
Compare and Show latest version
1 file
+ 22
2
Compare changes
  • Side-by-side
  • Inline
+ 22
2
@@ -825,6 +825,26 @@ class IntrabeamScattering(Element):
return T_p, T_x, T_y
def kick(self, bunch, T_p, T_x, T_y):
"""
Apply kick to the bunch coordinates by converting growth rate to
momentum change
Parameters
----------
bunch : Object
Bunch or Beam object.
T_p : float
Growth rate of 'delta'.
T_x : float
Growth rate of 'xp'
T_y : float
Growth rate of 'yp'
Reference:
----------
[1]H. B. F.Soubelet, Dvelopement of Numerical Tools for Intrabeam
Scattering Modelling, Jacow 2024, (2024).
"""
Rho = 1.0 / (self.sigma_s * self.Spi * np.sqrt(2))
Delta_pz = self.sigma_p * np.sqrt(2 * T_p * self.dt * self.sigma_s * self.Spi * Rho) * np.random.normal(size=bunch.mp_number)
@@ -843,8 +863,8 @@ class IntrabeamScattering(Element):
parameters:
-----------
bunch: obj
Bunch or Beam object
bunch: Object
Bunch or Beam object.
"""
if self.current_model == "PS":
Loading