RF Conversion and Renormalization

Convert among S, Z, Y, ABCD, T, and H matrices and check how S changes when you choose a new reference impedance.

Convert between network representations

S is dimensionless, Z is in ohms, and Y is in siemens. In ABCD, the diagonal entries are dimensionless, B is in ohms, and C is in siemens. ABCD, T, and H impose port-count and nonzero-denominator constraints. An ideal two-port through at 50 Ω gives the identity ABCD matrix. To renormalize, specify the original and new reference impedances and check that Z agrees before and after.

Operation reference

Jump to an operation

convert.representation

A is the complex matrix and B supplies the reference impedance in ohms. Set source and target to s, z, y, abcd, t, or h as allowed by the dimensions. Transfer forms require two ports and a nonsingular transmission term.

Access
Registered in the Python Job
Arguments
Typed operands a, b, and c, with an optional typed options struct.
Shape
Square matrix | positive real reference, scalar or per port (square_matrix;positive_real_scalar_or_ports)
Units
S is dimensionless, Z in Ω, Y in S, ABCD with element-dependent units
Result
Numerical and diagnostic fields
Purpose
Network representation conversion
gxtxt_api_call("RF_NETWORK_API_v1", "convert.representation", args)
Recorded result · convert.representation:round-trip-h

Download the example script (ZIP).

Example operands preview

[
  {
    "kind": "array",
    "shape": [
      2,
      2
    ],
    "real": [
      33.333333333333314,
      -0.8333333333333334,
      0.8333333333333335,
      0.005000000000000002
    ],
    "imaginary": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  {
    "kind": "array",
    "shape": [
      1,
      1
    ],
    "real": [
      50
    ]
  },
  {
    "kind": "empty"
  },
  {
    "kind": "struct",
    "fields": {
      "source": {
        "kind": "text",
        "value": "h"
      },
      "target": {
        "kind": "text",
        "value": "s"
      }
    }
  }
]

Result preview

{
  "value_real": {
    "dtype": "float64",
    "shape": [
      2,
      2
    ],
    "values": [
      0.10000000000000017,
      0.6,
      0.5999999999999999,
      0.1999999999999999
    ]
  },
  "value_imaginary": {
    "dtype": "float64",
    "shape": [
      2,
      2
    ],
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  "source": "h",
  "target": "s"
}

convert.renormalize

A is S. Set the two references with old_z0 and new_z0. Renormalization changes the wave normalization while preserving the physical network.

Access
Registered in the Python Job
Arguments
Typed operands a, b, and c, with an optional typed options struct.
Shape
Square matrix | positive real reference, scalar or per port (square_matrix;positive_real_scalar_or_ports)
Units
S is dimensionless, Z in Ω, Y in S, ABCD with element-dependent units
Result
Numerical and diagnostic fields
Purpose
Renormalization to a new reference impedance
gxtxt_api_call("RF_NETWORK_API_v1", "convert.renormalize", args)
Recorded result · convert.renormalize

Download the example script (ZIP).

Example operands preview

[
  {
    "kind": "array",
    "shape": [
      2,
      2
    ],
    "real": [
      0.1,
      0.6,
      0.6,
      0.2
    ],
    "imaginary": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  },
  {
    "kind": "array",
    "shape": [
      1,
      1
    ],
    "real": [
      50
    ]
  },
  {
    "kind": "empty"
  },
  {
    "kind": "struct",
    "fields": {
      "old_z0": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          50
        ]
      },
      "new_z0": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          75
        ]
      }
    }
  }
]

Result preview

{
  "value_real": {
    "dtype": "float64",
    "shape": [
      2,
      2
    ],
    "values": [
      -0.02590673575129548,
      0.621761658031088,
      0.6217616580310883,
      0.0777202072538859
    ]
  },
  "value_imaginary": {
    "dtype": "float64",
    "shape": [
      2,
      2
    ],
    "values": [
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
}