terminate_s_in_s

terminate_s_in_s(Smat_from, z0_from, Smat_into, z0_into, s_def='power')[source]

Terminates one S-parameter matrix in another S-parameter matrix.

This supports terminating a 2N-port into an N-port, and automatically renormalizes the terminating network if the connecting port impedances do not match. The resultant terminated N-port S matrix is returned.

Parameters:
  • Smat_from (jnp.ndarray) – The main S matrix to terminate from. Shape: (nfreqs, 2N, 2N)

  • z0_from (jnp.ndarray) – The characteristic impedance of Smat_from.

  • Smat_into (jnp.ndarray) – The S matrix to terminate into. Shape: (nfreqs, N, N)

  • z0_into (jnp.ndarray) – The characteristic impedance of Smat_into.

  • s_def (string) – The S-parameter definition. Defaults to “power”.

Returns:

The resulting S-parameter matrix and characteristic impedance.

Return type:

tuple[jnp.ndarray, jnp.ndarray]