VPTissue Reference Manual
SimPT_Sim::MeshTopology Class Reference

Helper functions for mesh topology. More...

#include <MeshTopology.h>

Collaboration diagram for SimPT_Sim::MeshTopology:
Collaboration graph

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...
 

Detailed Description

Helper functions for mesh topology.

Definition at line 36 of file MeshTopology.h.

Member Function Documentation

CSRMatrix SimPT_Sim::MeshTopology::NodeCellNodeIncidence ( std::shared_ptr< Mesh mesh)
static

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.

CSRMatrix SimPT_Sim::MeshTopology::NodeEdgeNodeIncidence ( std::shared_ptr< Mesh mesh)
static

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.


The documentation for this class was generated from the following files: