#include <CuboidMeshConstructor.hpp>
Public Member Functions | |
std::string | Construct (unsigned meshNum, double meshWidth) |
double | GetWidth () |
Public Attributes | |
unsigned | NumElements |
unsigned | NumNodes |
Private Member Functions | |
void | ConstructHyperCube (TetrahedralMesh< 1, 1 > &rMesh, unsigned width) |
void | ConstructHyperCube (TetrahedralMesh< 2, 2 > &rMesh, unsigned width) |
void | ConstructHyperCube (TetrahedralMesh< 3, 3 > &rMesh, unsigned width) |
Private Attributes | |
double | mMeshWidth |
Definition at line 43 of file CuboidMeshConstructor.hpp.
void CuboidMeshConstructor< DIM >::ConstructHyperCube | ( | TetrahedralMesh< 1, 1 > & | rMesh, | |
unsigned | width | |||
) | [inline, private] |
Construct a one-dimensional linear mesh.
rMesh | The mesh | |
width | Width of the mesh |
Definition at line 39 of file CuboidMeshConstructor.cpp.
References TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructLinearMesh().
Referenced by CuboidMeshConstructor< DIM >::Construct().
void CuboidMeshConstructor< DIM >::ConstructHyperCube | ( | TetrahedralMesh< 2, 2 > & | rMesh, | |
unsigned | width | |||
) | [inline, private] |
Construct a two-dimensional rectangular mesh.
rMesh | The mesh | |
width | Width of the mesh |
Definition at line 45 of file CuboidMeshConstructor.cpp.
References TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructRectangularMesh().
void CuboidMeshConstructor< DIM >::ConstructHyperCube | ( | TetrahedralMesh< 3, 3 > & | rMesh, | |
unsigned | width | |||
) | [inline, private] |
Construct a three-dimensional cuboidal mesh.
rMesh | The mesh | |
width | Width of the mesh |
Definition at line 51 of file CuboidMeshConstructor.cpp.
References TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructCuboid().
std::string CuboidMeshConstructor< DIM >::Construct | ( | unsigned | meshNum, | |
double | meshWidth | |||
) | [inline] |
Construct the mesh.
meshNum | Index for the mesh | |
meshWidth | Width of the mesh |
Definition at line 57 of file CuboidMeshConstructor.cpp.
References PetscTools::Barrier(), CuboidMeshConstructor< DIM >::ConstructHyperCube(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), OutputFileHandler::GetOutputDirectoryFullPath(), OutputFileHandler::IsMaster(), CuboidMeshConstructor< DIM >::mMeshWidth, CuboidMeshConstructor< DIM >::NumElements, CuboidMeshConstructor< DIM >::NumNodes, AbstractMesh< ELEMENT_DIM, SPACE_DIM >::Scale(), and AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMesh().
Referenced by AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge().
double CuboidMeshConstructor< DIM >::GetWidth | ( | ) | [inline] |
Get the width of the mesh.
Definition at line 89 of file CuboidMeshConstructor.cpp.
References CuboidMeshConstructor< DIM >::mMeshWidth.
Referenced by AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge().
double CuboidMeshConstructor< DIM >::mMeshWidth [private] |
Width of the mesh.
Definition at line 71 of file CuboidMeshConstructor.hpp.
Referenced by CuboidMeshConstructor< DIM >::Construct(), and CuboidMeshConstructor< DIM >::GetWidth().
unsigned CuboidMeshConstructor< DIM >::NumElements |
Number of elements in the mesh.
Definition at line 75 of file CuboidMeshConstructor.hpp.
Referenced by CuboidMeshConstructor< DIM >::Construct(), and AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge().
unsigned CuboidMeshConstructor< DIM >::NumNodes |
Number of nodes in the mesh.
Definition at line 76 of file CuboidMeshConstructor.hpp.
Referenced by CuboidMeshConstructor< DIM >::Construct().