Skip to content

Commit cfacda2

Browse files
authored
modifies equation for TLMQ element, fixes #253 (#255)
* modifies equation for TLMQ element, fixes #253 * fix equation for Zs
1 parent 8e05ad2 commit cfacda2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

impedance/models/circuits/elements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ def TLMQ(p, f):
331331
"""
332332
omega = 2 * np.pi * np.array(f)
333333
Rion, Qs, gamma = p[0], p[1], p[2]
334-
Zs = Qs * (1j * omega) ** gamma
335-
Z = np.sqrt(Rion / Zs) / np.tanh(np.sqrt(Rion * Zs))
334+
Zs = 1 / (Qs * (1j * omega) ** gamma)
335+
Z = np.sqrt(Rion * Zs) / np.tanh(np.sqrt(Rion / Zs))
336336
return Z
337337

338338

0 commit comments

Comments
 (0)