Chaste Commit::f2ff7ee04e70ac9d06c57344df8d017dbb12b97b
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

◆ Construct()

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(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes().

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

◆ GetNumElements()

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

◆ GetNumNodes()

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.

◆ GetWidth()

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

◆ mMeshWidth

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.

◆ mNumElements

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.

◆ mNumNodes

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: