Commit b91b8a19 authored by Daniel Brown's avatar Daniel Brown
Browse files

k value is an element parameter

parent 3118af93
Pipeline #239818 passed with stages
in 21 minutes and 37 seconds
......@@ -529,7 +529,6 @@ class SuspensionZPK(Connector):
ws.signal.add_fill_function(self.fill, refill)
ws.z = np.array(self.z, copy=True)
ws.p = np.array(self.p, copy=True)
ws.k = self.k
return ws
else:
return None
......@@ -570,7 +569,7 @@ class SuspensionZPK(Connector):
def fill(self, ws):
s = 2j* np.pi * ws.sim.model_data.fsig
if ws.values.enabled:
H = ws.k * np.prod(s - ws.z)/np.prod(s - ws.p)
H = ws.values.k * np.prod(s - ws.z)/np.prod(s - ws.p)
else:
H = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment