Skip to content
Snippets Groups Projects

Intrabeam scattering tracking implementation

Merged GUBAIDULIN requested to merge Ibs-implementation into develop
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -119,9 +119,10 @@ class Optics:
self.periodicity = periodicity
if self.periodicity > 1:
for i in range(self.periodicity - 1):
pos = np.append(twiss.s_pos,
twiss.s_pos + twiss.s_pos[-1] * (i+1))
periods = np.arange(0, periodicity)
shift = periods*twiss.s_pos[-1]
shift = np.repeat(shift, len(twiss.s_pos))
pos = np.tile(twiss.s_pos.T, periodicity) + shift
else:
pos = twiss.s_pos
Loading