mwavepy.network.connect

mwavepy.network.connect(ntwkA, k, ntwkB, l)

connect two n-port networks together.

specifically, connect port k on ntwkA to port l on ntwkB. The resultant network has (ntwkA.nports+ntwkB.nports-2) ports. The port index’s (‘k’,’l’) start from 0. Port impedances are taken into account.

Parameters :

ntwkA : Network

network ‘A’

k : int

port index on ntwkA ( port indecies start from 0 )

ntwkB : Network

network ‘B’

l : int

port index on ntwkB

Returns :

ntwkC : Network

new network of rank (ntwkA.nports+ntwkB.nports -2)-ports

See also

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

Notes

the effect of mis-matched port impedances is handled by inserting a 2-port ‘mismatch’ network between the two connected ports. This mismatch Network is calculated with the :func:impedance_mismatch function.

Examples

To implement a cascade of two networks

>>> ntwkA = mv.Network('ntwkA.s2p')
>>> ntwkB = mv.Network('ntwkB.s2p')
>>> ntwkC = mv.connect(ntwkA, 1, ntwkB,0)

Previous topic

mwavepy.network.Network.write_touchstone

Next topic

mwavepy.network.innerconnect

This Page