join

openpnm.topotools.generators.tools.join(net1, net2, L_max=0.99)[source]

Joins two networks together topologically including new connections

Parameters
  • net1 (dictionary) – A dictionary containing ‘vert.coords’ and ‘edge.conns’.

  • net2 (dictionary) – A dictionary containing ‘vert.coords’ and ‘edge.conns’

  • L_max (float) – The maximum distance between vertices below which they are called neighbors

Returns

network – A dictionary containing ‘vert.coords’ vertices from both net1 and net2, and edge.conns with original connections plus new ones found during the join process.

Return type

dict

Notes

This function uses scipy.spatial.KDTree.