connect_s_common

connect_s_common(Smats, z0s, ports)[source]

Connect a series of multi-port S-parameter matrices using Hallbjörner’s method at a single intersection.

Ensures that the specified port indices share the concatenated intersection, implying they are electrically common.

Parameters:
  • Smats (jnp.ndarray or Sequence[jnp.ndarray]) – S-parameter matrices. Shape of each matrix is (Nf, n, n).

  • z0s (jnp.ndarray or Sequence[jnp.ndarray]) – Characteristic impedances (z0) of each S in Smats.

  • ports (Sequence[int | Sequence[int]]) – A sequence of port indices. Each entry corresponds to the ports of the respective network in Smats. The length of ports should match the length of Smats.

Returns:

A tuple (S, z0) containing the combined S-matrix and z0 matrix.

Return type:

tuple

References