Skip to content

Fix splitter s_def for complex port impedances - #1454

Merged
jhillairet merged 1 commit into
scikit-rf:masterfrom
vera-rubin:fix/splitter-s-def
Oct 18, 2026
Merged

jhillairet merged 1 commit into
scikit-rf:masterfrom
vera-rubin:fix/splitter-s-def

Conversation

@vera-rubin

Copy link
Copy Markdown
Contributor

Media.splitter accepts s_def="pseudo" and "traveling", but returns power-wave S-parameters with the requested label at complex reference impedances. An ideal two-port junction with equal references should have zero reflection and unit transmission in those definitions, but this gives 0.5+0.5j reflection and 0.5-0.5j transmission:

from skrf import Frequency
from skrf.media import DefinedGammaZ0

med = DefinedGammaZ0(Frequency(1, 1, 1, "GHz"), z0=50+50j)
print(med.splitter(2, s_def="pseudo").s[0])

We now generate the junction in power waves and convert to the requested definition, following the lumped-element generators. A regression checks the full ideal junction matrices for both affected definitions with 2, 3 and 4 ports, and the existing media, Network and Circuit tests pass.

— ChipLab

Generate the junction in power waves before converting to the requested definition, following the lumped-element generators. Add a regression for pseudo and traveling waves at complex references.
@github-actions github-actions Bot added the Media skrf.media label Oct 17, 2026
@jhillairet jhillairet added s-parameters Scattering parameters Improvements Improvements of existing feature TransmissionLines labels Oct 18, 2026
@jhillairet

Copy link
Copy Markdown
Member

Thanks @vera-rubin for the catch.

@jhillairet
jhillairet merged commit 16e4a4a into scikit-rf:master Oct 18, 2026
14 checks passed
@jhillairet jhillairet mentioned this pull request Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvements Improvements of existing feature Media skrf.media s-parameters Scattering parameters TransmissionLines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants