Chaste  Release::3.4
CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <CuboidMeshConstructor.hpp>

+ Collaboration diagram for CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >:

Public Member Functions

void Construct (AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, unsigned meshRefinementNum, double meshWidth)
 
double GetWidth ()
 
unsigned GetNumElements ()
 
unsigned GetNumNodes ()
 

Private Attributes

double mMeshWidth
 
unsigned mNumElements
 
unsigned mNumNodes
 

Detailed Description

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
class CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >

Helper class for constructing cuboidal meshes.

Definition at line 46 of file CuboidMeshConstructor.hpp.

Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::Construct ( AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &  rMesh,
unsigned  meshRefinementNum,
double  meshWidth 
)

Construct the mesh.

Parameters
rMeshInput a blank mesh in which to construct the result
meshRefinementNumIndex for the mesh starting at 0 (4 elements in each space dimension)
meshWidthWidth of the mesh (in cm)

(used to return a path to the mesh stored on the disk)

Definition at line 40 of file CuboidMeshConstructor.cpp.

References AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructRegularSlabMesh(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), and SmallPow().

Referenced by AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::GetNumElements ( )
Returns
the number of elements in the mesh.

Definition at line 63 of file CuboidMeshConstructor.cpp.

Referenced by AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::GetNumNodes ( )
Returns
the number of nodes in the mesh.

Definition at line 69 of file CuboidMeshConstructor.cpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
double CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::GetWidth ( )
Returns
the width of the mesh.

Definition at line 57 of file CuboidMeshConstructor.cpp.

Referenced by AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge().

Member Data Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
double CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::mMeshWidth
private

Width of the mesh.

Definition at line 50 of file CuboidMeshConstructor.hpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
unsigned CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::mNumElements
private

Number of elements in the mesh.

Definition at line 51 of file CuboidMeshConstructor.hpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
unsigned CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::mNumNodes
private

Number of nodes in the mesh.

Definition at line 52 of file CuboidMeshConstructor.hpp.


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