skrf.media.Media¶
- class skrf.media.Media(frequency=None, z0=None)[source]¶
Abstract Base Class for a single mode on a transmission line media.
This class init’s with frequency and z0 (the port impedance); attributes shared by all media. Methods defined here make use of the properties :
gamma - (complex) media propagation constant
Z0 - (complex) media characteristic impedance
Which define the properties of a specific media. Any sub-class of Media must implement these properties. gamma and Z0 should return complex arrays of the same length as frequency. gamma must follow the convention:
positive real(gamma) = attenuation
positive imag(gamma) = forward propagation
- Parameters
frequency (
Frequency
object or None) – frequency band of this transmission line medium. Defaults to None, which produces a 1-10ghz band with 101 points.z0 (number, array-like, or None) – the port impedance for media. Only needed if its different from the characteristic impedance of the media. If z0 is None then will default to Z0. Default is None.
Notes
The z0 parameter (port impedance) is needed in some cases.
RectangularWaveguide
is an example where you may need this, because the characteristic impedance is frequency dependent, but the touchstone’s created by most VNA’s have z0=1 or 50. So to prevent accidental impedance mis-match, you may want to manually set the z0.
Attributes
Real (attenuation) component of gamma. |
|
Imaginary (propagating) component of gamma. |
|
Propagation constant. |
|
Number of points of the frequency axis. |
|
Complex group velocity (in m/s). |
|
Complex phase velocity (in m/s). |
|
Characteristic Impedance. |
Methods
Ideal matched attenuator of a given length. |
|
Capacitor. |
|
Copy of this Media object. |
|
Delayed load. |
|
Delayed open transmission line. |
|
Delayed Short. |
|
Calculate the complex electrical length for a given distance. |
|
Determines physical distance from a transmission or reflection Network. |
|
Two-port network for an impedance mismatch. |
|
Inductor. |
|
Two-port isolator. |
|
Transmission line of a given length and impedance. |
|
Load of given reflection coefficient. |
|
Lossless, symmetric mismatch defined by its return loss. |
|
Perfect matched load (\(\Gamma_0 = 0\)). |
|
Create another mode in this medium. |
|
Open (\(\Gamma_0 = 1\)). |
|
Complex random network. |
|
Resistor. |
|
Short (\(\Gamma_0 = -1\)) |
|
Shunts a |
|
Shunted capacitor. |
|
Shunted delayed load. |
|
Shunted delayed open. |
|
Shunted delayed short. |
|
Shunted inductor. |
|
Ideal, lossless n-way splitter. |
|
Ideal, lossless tee. |
|
Convert electrical length to physical distance. |
|
Matched transmission line of length 0. |
|
Translate various units of distance into meters. |
|
Complex zero-mean gaussian white-noise network. |
|
write this media's frequency, gamma, Z0, and z0 to a csv file. |