@@ -236,7 +236,7 @@ def Resonator_longitudinal_wake_potential(times, Rs, Q, resonant_frequency, sigm
236236 Rs (float or list): Shunt impedance (Ohm).
237237 resonant_frequency (float or list): Resonant frequency (Hz).
238238 Q (float or list): Quality factor.
239- sigma (float): RMS bunch length (s).
239+ sigma (float): STD bunch length (s) (RMS*4)
240240 times (array-like): Times (s) where wake is computed (times > 0 behind the source).
241241 use_mpmath (bool, optional): Use mpmath for calculations. Defaults to False.
242242
@@ -249,6 +249,7 @@ def Resonator_longitudinal_wake_potential(times, Rs, Q, resonant_frequency, sigm
249249 Q must be different from 0.5!
250250 Rs, resonant_frequency, and Q must be scalar.
251251 """
252+ sigma *= 4 # use STD like in CST
252253 omegar = 2 * np .pi * resonant_frequency
253254 kr = omegar * (1 - 1 / (4 * Q ** 2 ))** 0.5
254255 alphar = omegar / (2 * Q )
@@ -305,7 +306,7 @@ def Resonator_transverse_wake_potential(times, Rs, Q, resonant_frequency, sigma=
305306 Rs (float or list): Shunt impedance (Ohm).
306307 resonant_frequency (float or list): Resonant frequency (Hz).
307308 Q (float or list): Quality factor.
308- sigma (float): RMS bunch length (s).
309+ sigma (float): STD bunch length (s) (RMS*4)
309310 times (array-like): Times (s) where wake is computed (times > 0 behind the source).
310311 use_mpmath (bool, optional): Use mpmath for calculations. Defaults to False.
311312
@@ -319,6 +320,7 @@ def Resonator_transverse_wake_potential(times, Rs, Q, resonant_frequency, sigma=
319320 Rs, resonant_frequency, and Q must be scalar.
320321 """
321322
323+ sigma *= 4 # use STD like in CST
322324 omegar = 2 * np .pi * resonant_frequency
323325 kr = omegar * (1 - 1 / (4 * Q ** 2 ))** 0.5
324326 alphar = omegar / (2 * Q )
0 commit comments