Sharedscikit-rf.ipynbOpen in CoCalc
Author: Harald Schilly
Views : 114

Scikit RF in CoCalc

Kernel: Python 3 Ubuntu Linux

https://scikit-rf.readthedocs.io/

scikit-rf (aka skrf) is an Open Source, BSD-licensed package for RF/Microwave engineering implemented in the Python programming language. It provides a modern, object-oriented library which is both flexible and scalable. The documentation below is broken up into three sections; narrative tutorials, practical examples, and a reference API.

In [1]:
import skrf as rf
In [2]:
rf.__version__
'0.14.9'
In [3]:
from skrf.data import ring_slot ring_slot
2-Port Network: 'ring slot', 75.0-110.0 GHz, 201 pts, z0=[50.+0.j 50.+0.j]
In [4]:
from pylab import * rf.stylely()
In [5]:
ring_slot.plot_s_polar()
In [6]:
short = rf.data.wr2p2_short line = rf.data.wr2p2_line delayshort = rf.data.wr2p2_delayshort delayshort
1-Port Network: 'wr2p2,delayshort', 330.0-500.0 GHz, 201 pts, z0=[50.+0.j]
In [7]:
short/delayshort
1-Port Network: 'wr2p2,short', 330.0-500.0 GHz, 201 pts, z0=[50.+0.j]
In [8]:
line ** short
1-Port Network: 'wr2p2,line', 330.0-500.0 GHz, 201 pts, z0=[50.+0.j]
In [9]:
ring_slot.plot_s_db()
In [10]:
ring_slot.plot_s_deg(m=0, n=1)
In [11]:
ring_slot.plot_s_smith(lw=2) title('Big ole Smith Chart')
Text(0.5,1,'Big ole Smith Chart')
In [ ]: