text
stringlengths 0
14.1k
|
---|
- `er` : Relative permitivity of the dielectric.
|
""""""
|
return (377*math.pi)/(2*Zo*math.sqrt(er))
|
def getWHRatioA(Zo,er):
|
""""""
|
Returns the W/H ratio for W/H < 2. If the result is > 2, then other method
|
should be used.
|
This function assumes that the thickenss of conductors is insignificant.
|
Parameters:
|
- `Zo` : Real impedance of the line.
|
- `er` : Relative permitivity of the dielectric.
|
""""""
|
A = getAuxVarA(Zo,er)
|
return (8*math.e**A)/(math.e**(2*A) - 2)
|
def getWHRatioB(Zo,er):
|
""""""
|
Returns the W/H ratio for W/H > 2. If the result is < 2, then other method
|
should be used.
|
This function assumes that the thickenss of conductors is insignificant.
|
Parameters:
|
- `Zo` : Real impedance of the line.
|
- `er` : Relative permitivity of the dielectric.
|
""""""
|
B = getAuxVarB(Zo,er)
|
return (2/math.pi)*(B-1 - math.log(2*B - 1) + (er - 1)*(math.log(B-1) + 0.39 - 0.61/er)/(2*er))
|
def getCharacteristicImpedance(WHratio, ef):
|
""""""
|
Returns the characteristic impedance of the medium, based on the effective
|
permitivity and W/H ratio.
|
This function assumes that the thickenss of conductors is insignificant.
|
Parameters:
|
- `WHratio` : W/H ratio.
|
- `ef` : Effective permitivity of the dielectric.
|
""""""
|
if WHratio <= 1:
|
return (60/math.sqrt(ef))*math.log(8/WHratio + WHratio/4)
|
else:
|
return (120*math.pi/math.sqrt(ef))/(WHratio + 1.393 + 0.667*math.log(WHratio +1.444))
|
def getWHRatio(Zo,er):
|
""""""
|
Returns the W/H ratio, after trying with the two possible set of solutions,
|
for when W/H < 2 or else. When no solution, returns zero.
|
This function assumes that the thickenss of conductors is insignificant.
|
Parameters:
|
- `Zo` : Real impedance of the line.
|
- `er` : Relative permitivity of the dielectric.
|
""""""
|
efa = er
|
efb = er
|
Zoa = Zo
|
Zob = Zo
|
while 1:
|
rA = getWHRatioA(Zoa,efa)
|
rB = getWHRatioB(Zob,efb)
|
if rA < 2:
|
return rA
|
if rB > 2:
|
return rB
|
Zoa = math.sqrt(efa)*Zoa
|
Zob = math.sqrt(efb)*Zob
|
def getCorrectedWidth(W,H,t):
|
""""""
|
For significant conductor thickness, this returns the corrected width.
|
Paramenters:
|
- `W` : Width
|
- `H` : Height
|
- `t` : Conductor thickness
|
""""""
|
if t < H and t < W/2:
|
if W/H <= math.pi/2:
|
return W + (1 + math.log(2*H/t))*(t/math.pi)
|
else:
|
return W + (1 + math.log(4*math.pi*H/t))*(t/math.pi)
|
else:
|
print ""The conductor is too thick!!""
|
def getConductorLoss(W,H,t,sigma,f,Zo):
|
""""""
|
Returns the conductor loss in [Np/m].
|
Parameters:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.