Transmission Line Properties


In [ ]:
import skrf as rf 
from pylab import * 
%matplotlib inline
rf.stylely()

from skrf import Frequency
from skrf.media import DistributedCircuit

# define a frequency object 
freq = Frequency.from_f(logspace(0,6,101), unit='hz') 

def func(C=93,I=273, R=0, G=0):
    coax = DistributedCircuit(frequency = freq,
                              C =C*1e-12,#F/m 
                              I =I*1e-9,  #H/m
                              R =10**(-R),#53e-3,   #Ohm/m 
                              G =G,       #S/m
                              )
    freq.plot(coax.gamma.imag,label=r'$ \beta$')
    freq.plot(coax.gamma.real, label=r'$ \alpha$')
    ylabel('Propagation Constant (rad/m)')
    ylim(1e-8,1e2)
    loglog()# impose log-log scaling 
    legend()

In [ ]:
from ipywidgets import interact
interact(func, C=(0,100,10), I=(100,400,10), R =(0,10),G=(0,10));