VPTissue Reference Manual

Checks mesh concistency. More...
#include <MeshCheck.h>
Public Member Functions  
MeshCheck (const Mesh &mesh)  
bool  CheckAll () const 
Runs all of the of checks to verify consistency of the mesh.  
bool  CheckAreas () const 
Verifies that sum of all cell areas equals the area of the boundary polygon. More...  
bool  CheckAtBoundaryNodes () const 
Verifies Node::IsAtBoundary is true iff node is part of boundary polygon, for every node in the mesh.  
bool  CheckCellBoundaryWallNodes () const 
Verifies that for each cell, each boundary wall (other cell owning the wall is the boundary polygon) the nodes of the wall edges are AtBoundary nodes (i.e. More...  
bool  CheckCellBoundaryWalls () const 
Verifies that for all cells the Cell::HasBoundaryWall agrees with Mesh::IsWallNeighbor for boundary polygon.  
bool  CheckCellIdsSequence () const 
Verifies that cell ids correspond to storage sequence.  
bool  CheckCellIdsUnique () const 
Verifies that cell identifiers are unique.  
bool  CheckEdgeOwners () const 
Verifies that every edge has exactly two neighbor cells by using Mesh::GetEdgeOwners.  
bool  CheckMutuallyNeighbors () const 
Verifies that Cell::IsWallNeighbor is a symmetric relationship.  
bool  CheckNodeIdsSequence () const 
Verifies that node ids correspond to storage sequence.  
bool  CheckNodeIdsUnique () const 
Verifies that node identifiers are unique.  
bool  CheckNodeOwningNeighbors () const 
Verifies that for each node its NeighborNodes constructs appear once and only once in the NodeOwningNeighbors map entry for the node.  
bool  CheckNodeOwningWalls () const 
Verifies that the owning walls of every node are exactly those walls to which the node belongs.  
bool  CheckWallIdsSequence () const 
Verifies that wall ids correspond to storage sequence.  
bool  CheckWallIdsUnique () const 
Verifies that wall identifiers are unique.  
bool  CheckWallNeighborsList () const 
Verifies whether every cell has exactly one entry in the wall neighbor list (except when there is only one cell in the mesh). More...  
Checks mesh concistency.
Definition at line 29 of file MeshCheck.h.
bool SimPT_Sim::MeshCheck::CheckAreas  (  )  const 
Verifies that sum of all cell areas equals the area of the boundary polygon.
The difference should be smaller than 10e7 (due to floatingpoint errors).
Definition at line 84 of file MeshCheck.cpp.
References SimPT_Sim::Cell::GetArea(), SimPT_Sim::Mesh::GetBoundaryPolygon(), and SimPT_Sim::Mesh::GetCells().
Referenced by CheckAll().
bool SimPT_Sim::MeshCheck::CheckCellBoundaryWallNodes  (  )  const 
Verifies that for each cell, each boundary wall (other cell owning the wall is the boundary polygon) the nodes of the wall edges are AtBoundary nodes (i.e.
owned by boundary polygon also).
Definition at line 111 of file MeshCheck.cpp.
References SimPT_Sim::Mesh::GetBoundaryPolygon(), SimPT_Sim::Mesh::GetCells(), SimPT_Sim::Mesh::IsAtBoundary(), SimPT_Sim::Mesh::IsInBoundaryPolygon(), and SimPT_Sim::Container::make_circular().
Referenced by CheckAll().
bool SimPT_Sim::MeshCheck::CheckWallNeighborsList  (  )  const 
Verifies whether every cell has exactly one entry in the wall neighbor list (except when there is only one cell in the mesh).
This entry should also contain the cells which are located next to the cell being tested (except for the boundary polygon).
Definition at line 402 of file MeshCheck.cpp.
References SimPT_Sim::Mesh::GetCells().
Referenced by CheckAll().