From 6186e11fc74e5d9fd9f1a811afcaa57060ec3253 Mon Sep 17 00:00:00 2001
From: Gamelin Alexis <alexis.gamelin@synchrotron-soleil.fr>
Date: Wed, 17 Nov 2021 16:46:44 +0100
Subject: [PATCH] [Fix] CircularResistiveWall longitudinal wake function

The approximated longitudinal wake function in CircularResistiveWall correctly takes into account the length
---
 collective_effects/resistive_wall.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/collective_effects/resistive_wall.py b/collective_effects/resistive_wall.py
index d3ae124..08500d4 100644
--- a/collective_effects/resistive_wall.py
+++ b/collective_effects/resistive_wall.py
@@ -151,7 +151,7 @@ class CircularResistiveWall(WakeField):
         else:
             wl = (-1/(4*np.pi * self.radius) 
                   * np.sqrt(Z0 * self.rho / (c * np.pi) ) 
-                  / time**(3/2) )
+                  / time**(3/2) ) * self.length
             ind = np.isnan(wl)
             wl[ind] = 0
     
-- 
GitLab