network (skrf.network)

Provides a n-port network class and associated functions.

Most of the functionality in this module is provided as methods and properties of the Network Class.

Network Class

Network([touchstone_file, name]) A n-port electrical network.

Connecting Networks

connect(ntwkA, k, ntwkB, l) connect two n-port networks together.
innerconnect(ntwkA, k, l) connect two ports of a single n-port network.
cascade(ntwkA, ntwkB) cascade two 2-port Networks together
de_embed(ntwkA, ntwkB) de-embed ntwkA from ntwkB. this calls ntwkA.inv**ntwkB.

Interpolation

Network.interpolate(new_frequency, **kwargs) calculates an interpolated network.
Network.interpolate_self(new_frequency, **kwargs) interpolates s-parameters given a new
Network.interpolate_self_npoints(npoints, ...) interpolate network based on a new number of frequency points

Supporting Functions

inv(s) Calculates ‘inverse’ s-parameter matrix, used for de-embeding
connect_s(A, k, B, l) connect two n-port networks’ s-matricies together.
innerconnect_s(A, k, l) connect two ports of a single n-port network’s s-matrix.
s2z(s[, z0]) convert scattering parameters to impedance parameters [#]_
s2y(s[, z0]) convert scattering parameters to admittance parameters [#]_
s2t(s) converts scattering parameters to scattering transfer parameters.
z2s(z[, z0]) convert impedance parameters to scattering parameters [#]_
z2y(z) convert impedance parameters to admittance parameters [#]_
z2t(z) Not Implemented yet
y2s(y[, z0]) convert admittance parameters to scattering parameters [#]_
y2z(y) convert admittance parameters to impedance parameters [#]_
y2t(y) Not Implemented Yet
t2s(t) converts scattering transfer parameters to scattering parameters
t2z(t) Not Implemented Yet
t2y(t) Not Implemented Yet

Misc Functions

average(list_of_networks) calculates the average network from a list of Networks.
one_port_2_two_port(ntwk) calculates the two-port network given a symetric, reciprocal and
impedance_mismatch(z1, z2) creates a two-port s-matrix for a impedance mis-match
load_all_touchstones([dir, contains, f_unit]) loads all touchtone files in a given dir into a dictionary.
write_dict_of_networks(ntwkDict[, dir]) saves a dictionary of networks touchstone files in a given directory
csv_2_touchstone(filename) converts a csv file to a Network

Table Of Contents

Previous topic

Circuit Design: Single Stub Matching Network

Next topic

skrf.network.Network

This Page