scikit-rf: Formula in media.mline to calculate delta_w1 incorrect
I believe the formula used in media.mline
to calculate delta_w1
is not correct:
Hammerstad and Jensen define t
to be the normalized strip thickness, while here t
is given in meters. So the last multiplicaton by h is incorrect in my opinion.
def delta_w1(self) -> NumberLike:
"""
Intermediary parameter. see qucs docs on microstrip lines.
"""
w, h, t = self.w, self.h, self.t
if t > 0.:
# Qucs formula 11.22 is wrong, normalized w has to be used instead (see Hammerstad and Jensen Article)
return t/pi * log(1. + 4*exp(1.)*tanh(sqrt(6.517*w/h))**2/t) * h
else:
return 0.
(As an aside, just because I always wondered and just finally checked: formula 11.22 in the Qucs documentation is indeed wrong as stated. Qucsator uses the original Wheeler formula in its implementation, though. )
Greetings, Michael .
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 45 (8 by maintainers)
Commits related to this issue
- small corrections mline.py — committed to scikit-rf/scikit-rf by mhuser 7 years ago
- fix #647 This should fix #647 by using complex impedance and dispersed relative permittivity and characteristic impedance as defaults but provide a compatibility mode with qucs for testing purpose an... — committed to mhuser/scikit-rf by mhuser 2 years ago
First of all let me say a word of appreciation at @mhuser and all other contributors: thank for your energy and effort - it is much appreciated.
I remember coming across that AEÜ paper when I was looking at coupled microstrip lines. It is cited all over the place but nowhere to find. After some digging around I finally found a library that has the issue on file and will order a copy of the paper. I will keep you posted…
As far as I remember the relevant expressions are reproduced in Reinmut K. Hoffman.,“Handbook of Microwave Integrated Circuits,”. Artech House, Inc. 1987. pp. 177.
Complex Z0 with lossy dielectric sounds correct. In RLGC transmission line the dielectric loss is modeled with the G element as
G = tand * 2 * pi * f * C
. If I set the conductor as lossless and calculate C and L with online calculator. I get very similar complex Z0 to what ADS model gives.Oh no, anything you are ok with is totally fine with me 👍 … it was really just by chance I stumbled across the initial issue;)
I have acquired copy of the AEÜ Kirschning Jansen paper by now. Due to copyright issues I would rather not attach the whole paper in this place. The formulas I quoted above from the Hoffmann book do however match the ones in the paper.
ADS references the following work in the MLIN man page in case it is helpful:
M. Kirschning and R.H. Jansen, “Accurate Model for Effective Dielectric Constant of Microstrip and Validity up in Millimeter-Wave Frequencies,” Electron . Lett, Vol. 18 March 18, 1982, pp. 272-273.
data (1).zip
I have ! Would it be appropriated to mention our issue inside theyr for reference ?
@JAnderson419 could you run the same two simulation but once with Kobayashi and once with Yamashita instead of Kirschning ? Do you agree if I use these files as test-cases in skrf ? I am almost sure I will have enough data after that 😅
(edit: repost to fix image and s2p upload as txt since email replies don’t support markdown)
I deal more with IC component modeling than circuit level stuff, so feel free to let me know if some of my parameters are not matching yours, but here is an output file from the shown ADS schematic for comparison.
Jackson tline_ads.txt
delta_w1
anddelta_wr
magnitudes don’t look correct right now. They are so small that changingt
barely changes anything.Here’s one example with thin substrate microstrip line where thickness should have measurable effect: