From Y-parameters to T-parameters
In matrix form, the formula is
T=([Z1k1−Z1k100]Y+[k1k100])([00−Z2k2Z2k2]Y+[00k2k2])−1
While for each element, we obtain
T11T12T21T22=−2Y21Z2k2k1(Y11Z1+Y22Z2+Y11Y22Z1Z2−Y12Y21Z1Z2+1)=2Y21Z2k2k1(Y11Z1−Y22Z2−Y11Y22Z1Z2+Y12Y21Z1Z2+1)=−2Y21Z2k2k1(Y22Z2−Y11Z1−Y11Y22Z1Z2+Y12Y21Z1Z2+1)=−2Y21Z2k2k1(Y11Z1+Y22Z2−Y11Y22Z1Z2+Y12Y21Z1Z2−1)
The formulas are obtained with the methods explained here.
The MATLAB implementation can be found in circuitconversions on Gitlab.
Definitions
[I1I2]=Y[V1V2] | [A1B1]=T[B2A2] |
The incident and reflected waves are defined as
A1A2=k1(V1+I1Z1)B1=k2(V2+I2Z2)B2=k1(V1−I1Z1)=k2(V2−I2Z2)
with Z0,i the reference impedance for port i and ki defined as
ki=2ℜ(Z0,i)1ki=α2∣Z0,i∣ℜ(Z0,i)
depending on whether you are using power- or pseudowaves.