Public Member Functions
Sundance::IncrementallyCreatableMesh Class Reference
Inheritance diagram for Sundance::IncrementallyCreatableMesh:
Sundance::MeshBase Sundance::ObjectWithClassVerbosity< MeshBase > Sundance::ObjectWithInstanceID< MeshBase > Playa::ObjectWithVerbosity Sundance::BasicSimplicialMesh

List of all members.

Public Member Functions

 IncrementallyCreatableMesh (int dim, const MPIComm &comm, const MeshEntityOrder &meshOrder)
virtual ~IncrementallyCreatableMesh ()
virtual void estimateNumVertices (int nPts)
virtual void estimateNumElements (int nElems)
virtual int addVertex (int globalIndex, const Point &x, int ownerProcID, int label)=0
virtual int addElement (int globalIndex, const Array< int > &vertexGIDs, int ownerProcID, int label)=0
virtual void freezeTopology ()

Detailed Description

IncrementallyCreatableMesh is an interface for the creation of meshes by adding vertices, then elements.

Definition at line 57 of file SundanceIncrementallyCreatableMesh.hpp.


Constructor & Destructor Documentation

Sundance::IncrementallyCreatableMesh::IncrementallyCreatableMesh ( int  dim,
const MPIComm comm,
const MeshEntityOrder meshOrder 
) [inline]

Construct an empty mesh of the given dimension, distributed over processors in the MPI communicator

Definition at line 62 of file SundanceIncrementallyCreatableMesh.hpp.

virtual dtor

Definition at line 67 of file SundanceIncrementallyCreatableMesh.hpp.


Member Function Documentation

virtual int Sundance::IncrementallyCreatableMesh::addElement ( int  globalIndex,
const Array< int > &  vertexGIDs,
int  ownerProcID,
int  label 
) [pure virtual]

Add a new element to the mesh.

Parameters:
globalIndexthe GID of the new element
vertexGIDstuple of GIDs for the vertices defining this element.
ownerProcIDthe processor that "owns" this element
labela label for this element (optionally used in setting loads, material properties, etc)
Returns:
the LID of the element

Implemented in Sundance::BasicSimplicialMesh.

Referenced by Sundance::Mesh::addElement().

virtual int Sundance::IncrementallyCreatableMesh::addVertex ( int  globalIndex,
const Point x,
int  ownerProcID,
int  label 
) [pure virtual]

Add new new vertex to the mesh.

Parameters:
globalIndexthe GID of the new vertex
xthe spatial position of the new vertex
ownerProcIDthe processor that "owns" this vertex
labela label for this vertex (optionally used in setting loads, boundary conditions, etc)
Returns:
the LID of the vertex.

Implemented in Sundance::BasicSimplicialMesh.

Referenced by Sundance::Mesh::addVertex().

virtual void Sundance::IncrementallyCreatableMesh::estimateNumElements ( int  nElems) [inline, virtual]

Optional preallocation of space for an estimated number of elements

Reimplemented in Sundance::BasicSimplicialMesh.

Definition at line 73 of file SundanceIncrementallyCreatableMesh.hpp.

Referenced by Sundance::Mesh::estimateNumElements().

virtual void Sundance::IncrementallyCreatableMesh::estimateNumVertices ( int  nPts) [inline, virtual]

Optional preallocation of space for an estimated number of vertices

Reimplemented in Sundance::BasicSimplicialMesh.

Definition at line 70 of file SundanceIncrementallyCreatableMesh.hpp.

Referenced by Sundance::Mesh::estimateNumVertices().

virtual void Sundance::IncrementallyCreatableMesh::freezeTopology ( ) [inline, virtual]

Site Contact