We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff6191e commit c47cce9Copy full SHA for c47cce9
PyHEADTAIL/impedances/wakes.py
@@ -355,8 +355,12 @@ def function_longitudinal(self):
355
convert_to_V_per_C = 1e12
356
357
time = convert_to_s * self.wake_table['time']
358
- wake_strength = -convert_to_V_per_C * self.wake_table['longitudinal']
359
- interpolation_function = interp1d(time, wake_strength)
+ # Sign is chosen such that a positive wake corresponds to energy
+ # loss (giadarol, 6 July 2024)
360
+ wake_strength = convert_to_V_per_C * self.wake_table['longitudinal']
361
+ interpolation_function = interp1d(time, wake_strength,
362
+ bounds_error=False,
363
+ fill_value=0.)
364
365
def wake(dt, *args, **kwargs):
366
wake_interpolated = interpolation_function(-dt)
0 commit comments