skrf.network.innerconnect¶
- skrf.network.innerconnect(ntwkA, k, l, num=1)[source]¶
connect ports of a single n-port network.
this results in a (n-2)-port network. remember port indices start from 0.
Note
A 2-port ‘mismatch’ network is inserted between the connected ports if their impedances are not equal.
- Parameters
ntwkA (
Network
) – network ‘A’k (int) – starting port indices on ntwkA ( port indices start from 0 )
l (int) – starting port indices on ntwkA ( port indices start from 0 )
num (int) – number of consecutive ports to connect
- Returns
ntwkC – new network of rank (ntwkA.nports - 2*num)
- Return type
See also
connect_s
actual S-parameter connection algorithm.
innerconnect_s
actual S-parameter connection algorithm.
Examples
To connect ports ‘0’ and port ‘1’ on ntwkA
>>> ntwkA = rf.Network('ntwkA.s3p') >>> ntwkC = rf.innerconnect(ntwkA, 0,1)