Engee documentation

s2s

Converts S-parameters to S-parameters with a different calculated impedance.

Library

EngeeRF

Syntax

Function call

Arguments

Input arguments

# s_params — N-port S-parameters

+ N×N×M array of complex numbers

Details

-port S-parameters specified as an array of complex numbers of the size on on , where represents the number of frequency points -port S-parameters.

# Z0 is the calculated impedance, ohms

+ 50 | the real scalar | the real vector

Details

The calculated impedance in ohms is set using one of the following methods:

  • A real scalar, if you want to set the same calculated impedance for all network ports.

  • A real vector of length if you want to set a different design impedance for each port in - the port network.

  • A real vector of length if you want to set a different design impedance for each of the frequencies in the data.

If the calculated impedance is a vector, and the number of ports is is equal to the number of data frequencies , , then the function sparameters assigns each element of the vector to each network port. To set the calculated impedance for each frequency in this case, specify Z0 as a three-dimensional vector in size on on .

# Z0_new — estimated impedance, ohms

+ 50 | the real scalar | the real vector

Details

The calculated impedance in ohms, given as a real scalar or vector.

Output arguments

# s_params_new — N-port hybrid S-options

+ N×N×M array of complex numbers

Details

-port hybrid S-parameters returned as an array of complex numbers of the size on on , where represents the number of frequency points -port hybrid S-parameters.

Examples

Conversion of S-parameters to S-parameters with a different design impedance

Details

Let’s define a matrix of S-parameters and convert them to S-parameters with a different calculated impedance.

using EngeeRF

s_11 = 0.61*exp(1im*165/180*pi)
s_21 = 3.72*exp(1im*59/180*pi)
s_12 = 0.05*exp(1im*42/180*pi)
s_22 = 0.45*exp(1im*(-48/180)*pi)
s_params = [s_11 s_12; s_21 s_22]
z0 = 50
z0_new = 40

s_params_new = s2s(s_params,z0,z0_new)
2×2 Matrix{ComplexF64}:
 -0.503922+0.156317im  0.0372749+0.0349018im
   1.89287+3.29405im    0.414978-0.328637im

Literature

  1. Reveyrand T., Multiport Conversions between S, Z, Y, h, ABCD, and T Parameters. 2018 International Workshop on Integrated Nonlinear Microwave and Millimetre-Wave Circuits (INMMIC), IEEE, 2018, pp. 1–3. DOI.org (Crossref), doi:10.1109/INMMIC.2018.8430023.