Adam Cooman

YZSHGABT
YY→ZY→SY→HY→GY→AY→BY→T
ZZ→YZ→SZ→HZ→GZ→AZ→BZ→T
SS→YS→ZS→HS→GS→AS→BS→T
HH→YH→ZH→SH→GH→AH→BH→T
GG→YG→ZG→SG→HG→AG→BG→T
AA→YA→ZA→SA→HA→GA→BA→T
BB→YB→ZB→SB→HB→GB→AB→T
TT→YT→ZT→ST→HT→GT→AT→B

From S-parameters to H-parameters

In matrix form, the formula is

H=([12k10012Z2k2]S+[12k10012Z2k2])([12Z1k10012k2]S+[12Z1k10012k2])1\mathbf{H} =\left(\begin{bmatrix} \frac{1}{2\,k_{1}} & 0\\ 0 & -\frac{1}{2\,Z_{2}\,k_{2}} \end{bmatrix}\,\mathbf{S}+\begin{bmatrix} \frac{1}{2\,k_{1}} & 0\\ 0 & \frac{1}{2\,Z_{2}\,k_{2}} \end{bmatrix}\right)\,{\left(\begin{bmatrix} -\frac{1}{2\,Z_{1}\,k_{1}} & 0\\ 0 & \frac{1}{2\,k_{2}} \end{bmatrix}\,\mathbf{S}+\begin{bmatrix} \frac{1}{2\,Z_{1}\,k_{1}} & 0\\ 0 & \frac{1}{2\,k_{2}} \end{bmatrix}\right)}^{-1}

While for each element, we obtain

H11=Z1(S11+S22+S11S22S12S21+1)S22S11S11S22+S12S21+1H12=2S12k2k1(S22S11S11S22+S12S21+1)H21=2S21Z1k1Z2k2(S22S11S11S22+S12S21+1)H22=S11+S22S11S22+S12S211Z2(S22S11S11S22+S12S21+1)\begin{align*}H_{11} &=\frac{Z_{1}\,\left(S_{11}+S_{22}+S_{11}\,S_{22}-S_{12}\,S_{21}+1\right)}{S_{22}-S_{11}-S_{11}\,S_{22}+S_{12}\,S_{21}+1}\\H_{12} &=\frac{2\,S_{12}\,k_{2}}{k_{1}\,\left(S_{22}-S_{11}-S_{11}\,S_{22}+S_{12}\,S_{21}+1\right)}\\H_{21} &=-\frac{2\,S_{21}\,Z_{1}\,k_{1}}{Z_{2}\,k_{2}\,\left(S_{22}-S_{11}-S_{11}\,S_{22}+S_{12}\,S_{21}+1\right)}\\H_{22} &=-\frac{S_{11}+S_{22}-S_{11}\,S_{22}+S_{12}\,S_{21}-1}{Z_{2}\,\left(S_{22}-S_{11}-S_{11}\,S_{22}+S_{12}\,S_{21}+1\right)}\\\end{align*}

The formulas are obtained with the methods explained here. The MATLAB implementation can be found in circuitconversions on Gitlab.

Definitions

[B1B2]=S[A1A2]\begin{bmatrix}B_1 \\B_2\end{bmatrix} = \mathbf{S}\begin{bmatrix}A_1 \\A_2\end{bmatrix}

[V1I2]=H[I1V2]\begin{bmatrix}V_1 \\I_2\end{bmatrix} = \mathbf{H}\begin{bmatrix}I_1 \\V_2\end{bmatrix}

The incident and reflected waves are defined as

A1=k1(V1+I1Z1)B1=k1(V1I1Z1)A2=k2(V2+I2Z2)B2=k2(V2I2Z2)\begin{align*}A_1 &= k_{1}\,\left(V_{1}+I_{1}\,Z_{1}\right)\qquad B_1 &= k_{1}\,\left(V_{1}-I_{1}\,Z_{1}\right)\\A_2 &= k_{2}\,\left(V_{2}+I_{2}\,Z_{2}\right)\qquad B_2 &= k_{2}\,\left(V_{2}-I_{2}\,Z_{2}\right)\\\end{align*}

with Z0,iZ_{0,i} the reference impedance for port ii and kik_i defined as

ki=12(Z0,i)ki=α(Z0,i)2Z0,ik_i=\frac{1}{2\sqrt{\Re\left( Z_{0,i}\right) }}\qquad k_i=\alpha\frac{\sqrt{\Re\left( Z_{0,i} \right) }}{2\left|Z_{0,i}\right|}

depending on whether you are using power- or pseudowaves.