skrf.network.twoport_to_nport
- skrf.network.twoport_to_nport(ntwk, port1, port2, nports, **kwargs)[source]
Add ports to two-port. S-parameters of added ports are all zeros.
- Parameters:
ntwk (Two-port Network object)
port1 (int) – First port of the two-port in the resulting N-port.
port2 (int) – Second port of the two-port in the resulting N-port.
nports (int) – Number of ports in the N-port network.
**kwargs – Passed to
Network.__init__()for resultant network.
- Returns:
nport
- Return type:
N-port Network object