, port_order='second', *args, **kw)[source]

Concatenate networks along the port axis


The port_order =’first’, means front-to-back, while port_order`=’second’ means left-to-right. So, for example, when concatenating two 2-networks, `A and B, the ports are ordered as follows:


a0 o—o a1 -> 0 o—o 1 b0 o—o b1 -> 2 o—o 3


a0 o—o a1 -> 0 o—o 2 b0 o—o b1 -> 1 o—o 3

use Network.renumber to change port ordering.

  • ntwk_list (list of skrf.Networks) – ntwks to concatenate

  • port_order (['first', 'second']) –

Return type


>>>concat([ntwkA,ntwkB]) >>>concat([ntwkA,ntwkB,ntwkC,ntwkD], port_order=’second’)

To put for lines in parallel >>> from skrf import air >>> l1 = air.line(100, z0=[0,1]) >>> l2 = air.line(300, z0=[2,3]) >>> l3 = air.line(400, z0=[4,5]) >>> l4 = air.line(400, z0=[6,7]) >>> concat_ports([l1,l2,l3,l4], port_order=’second’)

See also


concatenate two networks along the frequency axis


renumber ports