s2mna

pmrf.rf.s2mna(s: Array | ndarray | bool | number | bool | int | float | complex, z0: Array | ndarray | bool | number | bool | int | float | complex, s_def: str = 'power') MNAStamp

Convert S-parameters to a Modified Nodal Analysis (MNA) stamp.

This formulation maps the incident waves as the auxiliary variables, allowing raw S-parameters to be stamped directly into the MNA system without any matrix inversions. Natively supports both traveling and power wave definitions.

Parameters:
  • s (ArrayLike) – The S-parameter matrix with shape (nports, nports) or (nfreqs, nports, nports).

  • z0 (ArrayLike) – The characteristic impedance. Can be a scalar or an array broadcastable to (nports,) or (nfreqs, nports).

  • s_def (str, optional) – The wave definition used for the S-parameters. Options are ‘traveling’ (pseudo-voltage) or ‘power’ (Kurokawa). Default is ‘traveling’.

Returns:

The MNA representation containing Y, B, C, and D matrices.

Return type:

MNAStamp