skrf.network.evenodd2delta

skrf.network.evenodd2delta(n, z0=50, renormalize=True, doublehalf=True)[source]

Convert ntwk’s s-matrix from even/odd mode into a delta (normal) s-matrix.

This assumes even/odd ports are ordered [1e,1o,2e,2o].

This is useful for handling coupler sims. Only 4-ports supported for now.

Parameters:
  • n (skrf.Network) – Network with an even/odd mode s-matrix

  • z0 (number, list of numbers) – the characteristic impedance to set output networks port impedance to , and used to renormalize s-matrix before conversio if `renormalize`=True.

  • renormalize (Bool) – if impedances are in even/odd then they must be renormalized to get correct transformation

  • doublehalf (Bool) – convert even/odd impedances to double/half their values. this is required if data comes from hfss waveports .

Returns:

out – same network as n but with s-matrix in normal delta basis

Return type:

skrf.Network