edges_cal.reflection_coefficient.TwoPortNetwork

class edges_cal.reflection_coefficient.TwoPortNetwork(x)[source]

A matrix-representation of a two-port network.

This is a matrix representation of a two-port network, defined in terms of voltages and currents at ports (in contrast to the SMatrix representation which is in terms of reflected waves).

This class allows for the simple conversion between representations of two-port network matrices. The internal representation is the ABCD representation (https://en.wikipedia.org/wiki/Two-port_network#ABCD-parameters).

Methods

__init__(x)

Method generated by attrs for class TwoPortNetwork.

add_in_parallel(other)

Combine two TwoPortNetworks together in parallel.

add_in_series(other)

Combine two TwoPortNetworks together in series.

add_in_series_parallel(other)

Combine two TwoPortNetworks together in parallel.

as_smatrix(source_impedance[, load_impedance])

Convert the TwoPortNetwork to a SMatrix.

cascade_with(other)

Cascade two TwoPortNetworks together.

from_abcd(abcd[, inverse])

Create a TwoPortNetwork from an ABCD representation.

from_hmatrix(z)

Create a TwoPortNetwork from a H-matrix.

from_smatrix(s, z0)

Compute the network from scattering parameters.

from_transmission_line(line, length)

Get a two-port network representation of a transmission line.

from_ymatrix(z)

Create a TwoPortNetwork from a Y-matrix.

from_zmatrix(z)

Create a TwoPortNetwork from a Z-matrix.

is_lossless()

Whether the network is lossless.

is_reciprocal()

Whether the network is a reciprocal network.

is_symmetric()

Whether the network is symmetric.

Attributes

x

determinant

A

Return the A parameter.

B

Return the B parameter.

C

Return the C parameter.

D

Return the D parameter.

admittance_matrix

Alias of ymatrix.

hmatrix

Return the H-matrix (hybrid parameters) of the network.

hybrid_matrix

Alias of hmatrix.

impedance_matrix

Alias of zmatrix.

ymatrix

Return the Y-matrix (admittance parameters) of the network.

zmatrix

Return the Z-matrix (impedance parameters) of the network.