terminate_s_in_s

pmrf.rf.terminate_s_in_s(Smat_from: Array, z0_from: Array, Smat_into: Array, z0_into: Array, s_def: str = 'power', method: str | None = None) tuple[Array, Array]

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”.

  • method (string, optional) – The method to use, currently not used.

Returns:

The resulting S-parameter matrix and characteristic impedance.

Return type:

tuple[jnp.ndarray, jnp.ndarray]