network (skrf.network
)¶
Provides a n-port network class and associated functions.
Much of the functionality in this module is provided as methods and
properties of the Network
Class.
Network Class¶
|
A n-port electrical network. |
Building Network¶
|
Create a Network from its Z-parameters |
Network Representations¶
Scattering parameter matrix. |
|
Impedance parameter matrix. |
|
Admittance parameter matrix. |
|
abcd parameter matrix. |
|
Scattering transfer parameters |
Connecting Networks¶
|
Connect two n-port networks together. |
|
connect ports of a single n-port network. |
|
Cascade two 2, 2N-ports Networks together. |
|
cascade a list of 2N-port networks |
|
De-embed ntwkA from ntwkB. |
|
Invert the ports of a networks s-matrix, 'flipping' it over left and right. |
Interpolation and Concatenation Along Frequency Axis¶
|
Stitches ntwkA and ntwkB together. |
|
Returns the overlapping parts of two Networks, interpolating if needed. |
|
Interpolate the current Network along frequency axis (inplace). |
|
Interpolate a Network along frequency axis |
|
Interpolate the current Network along frequency axis (inplace). |
Combining and Splitting Networks¶
|
Returns a subnetwork of a given Network from a list of port numbers. |
|
Calculates the 2-port network given a symmetric, reciprocal and lossless 1-port network. |
|
Builds a N-port Network from list of N one-ports |
|
Builds a 2-port Network from list of four 1-ports |
|
Creates 3-port from three 2-port Networks |
|
Builds a N-port Network from list of two-ports |
|
Concatenate networks along the port axis |
IO¶
|
Read skrf object[s] from a pickle file. |
|
Write skrf object[s] to a file. |
Write a Network object to a spreadsheet, for your boss. |
|
|
Write the Network to disk using the |
|
Write a contents of the |
|
Read a Network from a 'ntwk' file |
|
Write contents of network to a spreadsheet, for your boss to use. |
Noise¶
|
adds a complex zero-mean gaussian white-noise. |
|
adds a flatband complex zero-mean gaussian white-noise signal of given standard deviations for magnitude and phase |
|
multiplies a complex bivariate gaussian white-noise signal of given standard deviations for magnitude and phase. |
Supporting Functions¶
|
Calculates 'inverse' s-parameter matrix, used for de-embedding |
|
Connect two n-port networks' s-matrices together. |
|
connect two ports of a single n-port network's s-matrix. |
|
Convert scattering parameters [#]_ to impedance parameters [#]_ |
|
convert scattering parameters [#]_ to admittance parameters [#]_ |
|
Converts scattering parameters [#]_ to scattering transfer parameters [#]_ . |
|
Converts scattering parameters to abcd parameters [#]_ . |
|
Convert scattering parameters [#]_ to hybrid parameters [#]_ |
|
convert impedance parameters [#]_ to scattering parameters [#]_ |
|
convert impedance parameters [#]_ to admittance parameters [#]_ |
|
Not Implemented yet |
|
Converts impedance parameters to abcd parameters [#]_ . |
|
convert admittance parameters [#]_ to scattering parameters [#]_ |
|
convert admittance parameters [#]_ to impedance parameters [#]_ |
|
Not Implemented Yet |
|
converts scattering transfer parameters [#]_ to scattering parameters [#]_ |
|
Not Implemented Yet |
|
Not Implemented Yet |
|
convert hybrid parameters to s parameters |
|
Converts hybrid parameters to z parameters [#]_ . |
|
Make a port impedance of correct shape for a given network's matrix |
|
Renormalize a s-parameter matrix given old and new port impedances. |
|
Passivity metric for a multi-port network. |
|
Reciprocity metric for a multi-port network. |
Misc Functions¶
|
Calculates the average network from a list of Networks. |
|
Generates a two-port reflective two-port, from two one-ports. |
|
Chops a sandwich of identical, reciprocal 2-ports in half. |
|
Perturb s-parameters by small amount. |
|
Renormalize s-parameter matrix given a new port impedances. |
Drop invalid values based on duplicate and non increasing frequency values |