skrf.network.innerconnect

skrf.network.innerconnect(ntwkA, k, l, num=1)

connect ports of a single n-port network.

this results in a (n-2)-port network. remember port indices start from 0.

Parameters :

ntwkA : Network

network ‘A’

k,l : int

starting port indices on ntwkA ( port indices start from 0 )

num : int

number of consecutive ports to connect

Returns :

ntwkC : Network

new network of rank (ntwkA.nports - 2*num)

See also

connect_s
actual S-parameter connection algorithm.
innerconnect_s
actual S-parameter connection algorithm.

Notes

a 2-port ‘mismatch’ network is inserted between the connected ports if their impedances are not equal.

Examples

To connect ports ‘0’ and port ‘1’ on ntwkA

>>> ntwkA = rf.Network('ntwkA.s3p')
>>> ntwkC = rf.innerconnect(ntwkA, 0,1)

Previous topic

skrf.network.connect

Next topic

skrf.network.cascade

This Page