Conversions between Electrical Network Representations
In this blog post I describe a matrix-based method to convert between the different network representations of electrical circuits, like Y, Z and S parameters.
Using the approach detailed below, it is easy to auto-generate code to perform these transforms.
I used the methods described here to implement all the transforms in MATLAB. You can find that code in
circuitconversions on gitlab.com.
I also generated a page for every possible conversion.
You can click in the table below to find the formula you need.
In general, the circuit parameters are in a certain representation
R which links the input signal vector U to the output
signal vector O:
O=RU
They have to be transformed into another representation R′
with input signal vector U′ and output signal vector O′
O′=R′U′
the transformation from one representation to another can be described
by looking at the transformation on the stacked input-output vectors:
[O′U′]=P[P11P21P12P22][OU]
The goal of the transformation is to write R′ as a function
of the original representation R and the transformation
matrix P. Solving the previous equation for O′
gives
O′=(P11R+P12)(P21R+P22)−1U′
This gives us the expression for R′ as a function of R:
R′=(P11R+P12)(P21R+P22)−1
This expression allows us to transform any representation into another
when we know the transformation matrix P.
By clicking on the table above, you can get the expressions for all the transforms which are obtained with this method.
This approach is based on the excellent paper on mixed-mode S-parameters where a similar transform is constructed
to transform from single-ended to mixed-mode1.
Example: Transforming from Z to G
As an example, we show how we obtained the transformation matrix to
go from Z-parameters to G-parameters. The Z- and G-parameters have the following definitions:
[V1V2]=Z[I1I2][I1V2]=G[V1I2]
For this specific transformation,
the following two stacked input-output vectors are obtained
[OU]=V1V2I1I2[O′U′]=I1V2V1I2
The transformation matrix P can now be found by finding
the permutation matrix that links the two vectors:
Transforming into and from wave-based representations
Instead of working with voltages and currents, the most interesting circuit representations use incident and reflected
waves are used as inputs and outputs. The S-parameters, for example, are defined as follows:
[B1B2]=S[A1A2]
The incident and reflected waves at a port are related to the voltages
and currents measured at the same port in the following way:
Ai=ki(Vi+Z0,iIi)Bi=ki(Vi−Z0,iIi)
where Z0 is the reference impedance. The parameter ki
depends on the preferred definition of the waves. Two different options
are available in literature23:
ki=2ℜ(Z0,i)1ki=α2∣Z0,i∣ℜ(Z0,i)
where ℜ(Z0,i) indicates the real part of Z0,i and α is a free parameter of modulus 1. Note that both definitions of ki are equal when Z0,i is real and we choose α=1.
The transformation matrix P is not just a simple permutation
matrix when transforming from representations that use voltages and
currents to wave-based circuit representations and vice-versa. In
such transformations, voltages and currents are mixed to create the
waves, or incident and reflected waves are combined to obtain voltages
and currents. The formula to get the incident and reflected waves
from voltages and currents has been given before.
Solving this equation for Vi and Ii gives the relations
between the voltage and current:
when using the expression for the derivative of the matrix inverse:
dX−1=−X−1dXX−1
we obtain
dR′=(P11−R′P21)dR(P21R+P22)−1
Derivation of formula’s for N-ports
Because Y, Z and S-parameters can be done with more than two ports, we compute the matrix expressions here in more detail.
We start with the transform from Y to Z-parameters, which is trivial, but it shows nicely how things work.
The P-matrix in this case is the following:
[VI]=[0NININ0N][IV]
where 0N and IN are the zero-matrix and the identity matrix respectively. Both are of size N×N.
Plugging the 4 matrices into the general expression for the transform, we can simplify it to obtain that the Z-parameters are just the inverse of the Y-parameters:
Z=(0NY+IN)(INY+0N)−1=Y−1
We can check the expression for the derivative here too by plugging our transform matrices into the expression:
dZ=(0N−ZIN)dY(INY+0N)−1=−ZdYZ
Going from Y and Z parameters to S parameters is more interesting. We first define the following helper matrices
K=k1⋱kNZ0=Z0,1⋱Z0,N
and we can then write the transformation matrix to go from Y-parameters to S-parameters as
[BA]=[−KZ0KZ0KK][IV]
We plug the matrices into the expression for the conversion and simplify:
For S-parameters, we have the special case where we can change the reference impedance of the ports. We have two reference impedances Z0,i and Z0,o with respective ki and ko. We can write the following equations for the waves:
A. Ferrero and M. Pirola, “Generalized mixed-mode s-parameters,”
IEEE Tran. on Microwave Theory and Techniques,
vol. 54, no. 1, pp. 458—463, Jan 2006. ↩
K. Kurokawa, “Power waves and the scattering matrix,”
IEEE Transactions on Microwave Theory and Techniques,
vol. 13, no. 2, pp. 194—202, Mar 1965. ↩
R.B. Marks and D.F. Williams, “A general waveguide circuit theory,”
Journal of Research-National Institute of Standards and Technology,
vol.97, pp. 533—533, 1992. ↩