Transmission Line PropertiesΒΆ

[1]:
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()
/home/docs/checkouts/readthedocs.org/user_builds/scikit-rf/conda/latest/lib/python3.5/site-packages/matplotlib/style/core.py:51: UserWarning: Style includes a parameter, 'interactive', that is not related to style.  Ignoring
  "to style.  Ignoring".format(key))
[2]:
from ipywidgets import interact
interact(func, C=(0,100,10), I=(100,400,10), R =(0,10),G=(0,10));
../../_images/examples_interactive_Interactive_Coaxial_Properties_2_0.png