VPTissue Reference Manual
|
Helper functions for mesh topology. More...
#include <MeshTopology.h>
Static Public Member Functions | |
static CSRMatrix | NodeCellNodeIncidence (std::shared_ptr< Mesh > mesh) |
Return the incidence of nodes and cells as a binary CSR matrix A with dimensions: #nodes x #cells. More... | |
static CSRMatrix | NodeEdgeNodeIncidence (std::shared_ptr< Mesh > mesh) |
Return the incidence of nodes and nodes as a binary CSR matrix A with dimensions: #nodes x #nodes. More... | |
Helper functions for mesh topology.
Definition at line 36 of file MeshTopology.h.
Return the incidence of nodes and cells as a binary CSR matrix A with dimensions: #nodes x #cells.
Rows are nodes, columns are cells. A nonzero element at position (i,j) indicates that a node i is incident with cell j.
The notion of "incidence" in the context of this function is defined as: "Node i belongs to the polygon of a cell j".
Definition at line 35 of file MeshTopology.cpp.
References SimPT_Sim::CSRMatrix::col_ind, and SimPT_Sim::CSRMatrix::row_ptr.
Return the incidence of nodes and nodes as a binary CSR matrix A with dimensions: #nodes x #nodes.
Rows and columns are nodes. A nonzero element at position (i,j) indicates that a node i is incident with node j.
The notion of "incidence" in the context of this function is defined as: "Node i shares an edge with node j".
Definition at line 71 of file MeshTopology.cpp.
References SimPT_Sim::CSRMatrix::col_ind, and SimPT_Sim::CSRMatrix::row_ptr.