new SimplicialComplexOperators(mesh)
This class implements various operators (e.g. boundary, star, link) on a mesh.
Parameters:
Name | Type | Description |
---|---|---|
mesh |
module:Core.Mesh | The input mesh this class acts on. |
Properties:
Name | Type | Description |
---|---|---|
mesh |
module:Core.Mesh | The input mesh this class acts on. |
A0 |
module:LinearAlgebra.SparseMatrix | The vertex-edge adjacency matrix of |
A1 |
module:LinearAlgebra.SparseMatrix | The edge-face adjacency matrix of |
Methods
-
assignElementIndices(mesh)
-
Assigns indices to the input mesh's vertices, edges, and faces
Parameters:
Name Type Description mesh
module:Core.Mesh The input mesh which we index.
-
buildVertexEdgeAdjacencyMatrix(mesh)
-
Returns the vertex-edge adjacency matrix of the given mesh.
Parameters:
Name Type Description mesh
module:Core.Mesh The mesh whose adjacency matrix we compute.
Returns:
The vertex-edge adjacency matrix of the given mesh.
-
buildEdgeFaceAdjacencyMatrix(mesh)
-
Returns the edge-face adjacency matrix.
Parameters:
Name Type Description mesh
module:Core.Mesh The mesh whose adjacency matrix we compute.
Returns:
The edge-face adjacency matrix of the given mesh.
-
buildVertexVector(subset)
-
Returns a column vector representing the vertices of the
given subset.Parameters:
Name Type Description subset
module:Core.MeshSubset A subset of our mesh.
Returns:
A column vector with |V| entries. The ith entry is 1 if
vertex i is in the given subset and 0 otherwise -
buildEdgeVector(subset)
-
Returns a column vector representing the edges of the
given subset.Parameters:
Name Type Description subset
module:Core.MeshSubset A subset of our mesh.
Returns:
A column vector with |E| entries. The ith entry is 1 if
edge i is in the given subset and 0 otherwise -
buildFaceVector(subset)
-
Returns a column vector representing the faces of the
given subset.Parameters:
Name Type Description subset
module:Core.MeshSubset A subset of our mesh.
Returns:
A column vector with |F| entries. The ith entry is 1 if
face i is in the given subset and 0 otherwise -
star(subset)
-
Returns the star of a subset.
Parameters:
Name Type Description subset
module:Core.MeshSubset A subset of our mesh.
Returns:
The star of the given subset.
-
closure(subset)
-
Returns the closure of a subset.
Parameters:
Name Type Description subset
module:Core.MeshSubset A subset of our mesh.
Returns:
The closure of the given subset.
-
link(subset)
-
Returns the link of a subset.
Parameters:
Name Type Description subset
module:Core.MeshSubset A subset of our mesh.
Returns:
The link of the given subset.
-
isComplex(subset)
-
Returns true if the given subset is a subcomplex and false otherwise.
Parameters:
Name Type Description subset
module:Core.MeshSubset A subset of our mesh.
Returns:
True if the given subset is a subcomplex and false otherwise.
- Type
- boolean
-
isPureComplex(subset)
-
Returns the degree if the given subset is a pure subcomplex and -1 otherwise.
Parameters:
Name Type Description subset
module:Core.MeshSubset A subset of our mesh.
Returns:
The degree of the given subset if it is a pure subcomplex and -1 otherwise.
- Type
- number
-
boundary(subset)
-
Returns the boundary of a subset.
Parameters:
Name Type Description subset
module:Core.MeshSubset A subset of our mesh. We assume
subset
is a pure subcomplex.Returns:
The boundary of the given pure subcomplex.