Sundance::Rivara::RivaraMesh Class Reference

List of all members.

Public Member Functions

 RivaraMesh (int dim, const MPIComm &comm)
int addNode (const RCP< Node > &node)
int addVertex (int globalIndex, const Point &x, int ownerProcID, int label)
void addElement (const RCP< Element > &tri)
int addElement (int globalIndex, const Array< int > &vertexGIDs, int ownerProc, int label)
RCP< EdgetryEdge (const RCP< Node > &a, const RCP< Node > &b, int &edgeSign)
RCP< FacetryFace (const RCP< Node > &a, const RCP< Node > &b, const RCP< Node > &c)
const RCP< Face > & getFace (const RCP< Node > &a, const RCP< Node > &b, const RCP< Node > &c) const
const RCP< Node > & node (int i) const
int numNodes () const
std::stack< Element * > & refinementSet ()
std::stack< double > & refinementAreas ()
void refine ()
ElementIterator iterator () const
RCP< Elementelement (int i) const
int numRootElements () const
int numElements () const
int spatialDim () const
int & nextGID ()
int nextGID () const

Private Attributes

int spatialDim_
int nextGID_
Array< RCP< Node > > nodes_
Array< RCP< Edge > > edges_
Array< RCP< Face > > faces_
Array< RCP< Element > > elements_
Array< Map< int, int > > nodeToEdgeMap_
Map< FaceNodes, int > faceToLIDMap_
std::stack< Element * > refinementSet_
std::stack< double > refinementAreas_

Friends

class ElementIterator


Detailed Description

Definition at line 19 of file SundanceRivaraMesh.hpp.


Constructor & Destructor Documentation

RivaraMesh::RivaraMesh ( int  dim,
const MPIComm comm 
)

Definition at line 27 of file SundanceRivaraMesh.cpp.


Member Function Documentation

int RivaraMesh::addElement ( int  globalIndex,
const Array< int > &  vertexGIDs,
int  ownerProc,
int  label 
)

Definition at line 70 of file SundanceRivaraMesh.cpp.

References elements_, and nodes_.

void RivaraMesh::addElement ( const RCP< Element > &  tri  ) 

Definition at line 64 of file SundanceRivaraMesh.cpp.

References elements_.

int RivaraMesh::addNode ( const RCP< Node > &  node  ) 

Definition at line 45 of file SundanceRivaraMesh.cpp.

References nextGID(), nodes_, and nodeToEdgeMap_.

Referenced by addVertex(), and Sundance::Rivara::Edge::bisect().

int RivaraMesh::addVertex ( int  globalIndex,
const Point x,
int  ownerProcID,
int  label 
)

Definition at line 56 of file SundanceRivaraMesh.cpp.

References addNode(), and node().

RCP<Element> Sundance::Rivara::RivaraMesh::element ( int  i  )  const [inline]

Definition at line 59 of file SundanceRivaraMesh.hpp.

References elements_.

Referenced by Sundance::Rivara::ElementIterator::getNextElement().

const RCP< Face > & RivaraMesh::getFace ( const RCP< Node > &  a,
const RCP< Node > &  b,
const RCP< Node > &  c 
) const

ElementIterator Sundance::Rivara::RivaraMesh::iterator (  )  const

int Sundance::Rivara::RivaraMesh::nextGID (  )  const [inline]

Definition at line 69 of file SundanceRivaraMesh.hpp.

References nextGID_.

int& Sundance::Rivara::RivaraMesh::nextGID (  )  [inline]

Definition at line 67 of file SundanceRivaraMesh.hpp.

References nextGID_.

Referenced by addNode(), and Sundance::Rivara::Edge::bisect().

const RCP<Node>& Sundance::Rivara::RivaraMesh::node ( int  i  )  const [inline]

Definition at line 43 of file SundanceRivaraMesh.hpp.

References nodes_.

Referenced by addVertex().

int RivaraMesh::numElements (  )  const

Definition at line 171 of file SundanceRivaraMesh.cpp.

References elements_.

int Sundance::Rivara::RivaraMesh::numNodes (  )  const [inline]

Definition at line 45 of file SundanceRivaraMesh.hpp.

References nodes_.

int Sundance::Rivara::RivaraMesh::numRootElements (  )  const [inline]

Definition at line 61 of file SundanceRivaraMesh.hpp.

References elements_.

void RivaraMesh::refine (  ) 

std::stack<double>& Sundance::Rivara::RivaraMesh::refinementAreas (  )  [inline]

Definition at line 50 of file SundanceRivaraMesh.hpp.

References refinementAreas_.

Referenced by refine(), and Sundance::Rivara::Element::refine().

std::stack<Element*>& Sundance::Rivara::RivaraMesh::refinementSet (  )  [inline]

Definition at line 47 of file SundanceRivaraMesh.hpp.

References refinementSet_.

Referenced by refine(), and Sundance::Rivara::Element::refine().

int RivaraMesh::spatialDim (  )  const

Definition at line 181 of file SundanceRivaraMesh.cpp.

References spatialDim_.

RCP< Edge > RivaraMesh::tryEdge ( const RCP< Node > &  a,
const RCP< Node > &  b,
int &  edgeSign 
)

RCP< Face > RivaraMesh::tryFace ( const RCP< Node > &  a,
const RCP< Node > &  b,
const RCP< Node > &  c 
)


Friends And Related Function Documentation

friend class ElementIterator [friend]

Definition at line 57 of file SundanceRivaraMesh.hpp.


Member Data Documentation

Definition at line 78 of file SundanceRivaraMesh.hpp.

Referenced by tryEdge().

Definition at line 82 of file SundanceRivaraMesh.hpp.

Referenced by addElement(), element(), numElements(), and numRootElements().

Definition at line 80 of file SundanceRivaraMesh.hpp.

Referenced by getFace(), and tryFace().

Definition at line 86 of file SundanceRivaraMesh.hpp.

Referenced by getFace(), and tryFace().

Definition at line 74 of file SundanceRivaraMesh.hpp.

Referenced by nextGID().

Definition at line 76 of file SundanceRivaraMesh.hpp.

Referenced by addElement(), addNode(), node(), and numNodes().

Definition at line 84 of file SundanceRivaraMesh.hpp.

Referenced by addNode(), and tryEdge().

std::stack<double> Sundance::Rivara::RivaraMesh::refinementAreas_ [private]

Definition at line 90 of file SundanceRivaraMesh.hpp.

Referenced by refinementAreas().

Definition at line 88 of file SundanceRivaraMesh.hpp.

Referenced by refinementSet().

Definition at line 72 of file SundanceRivaraMesh.hpp.

Referenced by spatialDim().

Site Contact