skrf.data.open_2p
- skrf.data.open_2p = 2-Port Network: 'open', 1000000000.0-10000000000.0 Hz, 10 pts, z0=[50.+0.j 50.+0.j]
An n-port electrical network.
For instructions on how to create Network see
__init__(). An n-port network [1] may be defined by three quantitiesnetwork parameter matrix (s, z, or y-matrix)
port characteristic impedance matrix
frequency information
The
Networkclass stores these data structures internally in the form of complexnumpy.ndarray’s. These arrays are not interfaced directly but instead through the use of the properties:Property
Meaning
sScattering parameter matrix.
z0Characteristic impedance matrix.
fFrequency vector.
Although these docs focus on s-parameters, other equivalent network representations such as
zandyare available. Scalar projections of the complex network parameters are accessible through properties as well. These also returnnumpy.ndarray’s.Property
Meaning
s_reReal part of the s-matrix.
s_imImaginary part of the s-matrix.
s_magMagnitude of the s-matrix.
s_dbMagnitude in log scale of the s-matrix.
s_degPhase of the s-matrix in degrees.
The following operations act on the networks s-matrix.
Operator
Function
+
Element-wise addition of the s-matrix.
-
Element-wise difference of the s-matrix.
*
Element-wise multiplication of the s-matrix.
/
Element-wise division of the s-matrix.
**
Cascading (only for 2-ports).
//
De-embedding (for 2-ports, see
inv).Different components of the
Networkcan be visualized through various plotting methods. These methods can be used to plot individual elements of the s-matrix or all at once. For more info about plotting see the ../../tutorials/Plotting tutorial.Method
Meaning
plot_s_smith()Plot complex s-parameters on smith chart.
plot_s_re()Plot real part of s-parameters vs frequency.
plot_s_im()Plot imaginary part of s-parameters vs frequency.
plot_s_mag()Plot magnitude of s-parameters vs frequency.
plot_s_db()Plot magnitude (in dB) of s-parameters vs frequency.
plot_s_deg()Plot phase of s-parameters (in degrees) vs frequency.
plot_s_deg_unwrap()Plot phase of s-parameters (in unwrapped degrees) vs frequency.
Networkobjects can be created from a touchstone or pickle file (see__init__()), by aMediaobject, or manually by assigning the network properties directly.Networkobjects can be saved to disk in the form of touchstone files with thewrite_touchstone()method.An exhaustive list of
NetworkMethods and Properties (Attributes) are given belowReferences