This is a module
topotools#
Collection of functions for manipulating network topology#
This module contains a selection of functions that deal specifically with network topology.
Functions
|
This method uses |
|
Adds a single pore connected to all |
|
Assigns cluster numbers to sites and bonds acccording to a bond percolation process, given a list of occupied bonds. |
|
Clones the specified pores and adds them to the network |
|
Returns the possible connections between two groups of pores |
|
Converts a list of connections into a Scipy sparse adjacency matrix |
|
Determines whether a network is 1D, 2D or 3D, and in which dimensions |
|
Update adjacency matrix after dropping nodes |
|
Add pores or throats to the network from a list of coords or conns. |
|
Filters a list of nodes to those with a given number of neighbors |
|
Identify connected clusters of pores and throats in the network. |
|
Finds which nodes are connected to a given set of edges |
|
Finds the edge that connects each pair of given nodes |
|
Finds edges shared between two sets of nodes |
|
Identifies pores and throats that are invaded but not connected to the inlets |
|
Finds all edges that are connected to the given input nodes |
|
Finds all nodes that are directly connected to the input nodes |
|
Find the shortest path between pairs of nodes |
|
Find the pores on the surface of the domain by performing a Delaunay triangulation between the network pores and some external |
|
Generates a set of randomly distributed points in rectilinear coordinates for use in spatial tessellations |
|
Determine the cross sectional area relative to the inlets/outlets. |
|
Determine the domain length relative to the inlets/outlets. |
|
Determine shape of a cubic network |
|
Determine spacing of a cubic network |
|
Computes centroid of the convex hull enclosing the given coordinates. |
|
Checks whether network is fully connected, i.e. not clustered. |
|
Determines if given pores are coplanar with each other |
|
Identifies sites that lie outside the specified shape |
|
Determines if a percolating cluster exists in the network spanning the given inlet and outlet nodes |
|
A method to check if a square matrix is symmetric Returns |
|
Returns |
|
Returns |
|
Returns |
|
Finds pores on the surface of the network and labels them according to whether they are on the top, bottom, etc. |
|
Combine multiple networks into one without making any topological connections |
|
Combines a selection of pores into a new single pore located at the centroid of the selected pores (and optionally their neighbors) and connected to all of their neighbors. |
|
Deletes throats on network to match specified average coordination number |
|
Relects a set of points about the faces of a given domain |
|
Rotates coordinates a given amount about each axis |
|
Shears the coordinates a given amount about along axis |
|
Assigns cluster numbers to sites and bonds acccording to a site percolation process, given a list of occupied sites. |
|
Stitches a second a network to the current network. |
|
This method generates an image array of a disc-ring. |
|
This method generates an image array of a sphere-shell. |
|
Given a Delaunay triangulation object from Scipy's |
|
Remove pores or throats from the network |
|
Computes actual node and edge occupancy based on connectivity to the given inlets |
|
Given a Voronoi tessellation object from Scipy's |