extend#

extend(network, coords=[], conns=[], labels=[], **kwargs)[source]#

Add pores or throats to the network from a list of coords or conns.

Parameters:
  • network (Network) – The network to which pores or throats should be added

  • coords (array_like) – The coordinates of the pores to add. These will be appended to the ‘pore.coords’ array so should be of shape N-by-3, where N is the number of pores in the list.

  • conns (array_like) – The throat connections to add. These will be appended to the ‘throat.conns’ array so should be of shape N-by-2. Note that the numbering must point to existing pores.

  • labels (str, or list[str], optional) – A list of labels to apply to the new pores and throats