CuboidMeshConstructor.hpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef CUBOIDMESHCONSTRUCTOR_HPP_
00031 #define CUBOIDMESHCONSTRUCTOR_HPP_
00032
00033 #include "TetrahedralMesh.hpp"
00034 #include "OutputFileHandler.hpp"
00035 #include "PetscTools.hpp"
00036
00037
00038
00042 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
00043 class CuboidMeshConstructor
00044 {
00045 private:
00046
00053 void ConstructHyperCube(AbstractTetrahedralMesh<1,SPACE_DIM>& rMesh, unsigned width);
00054
00061 void ConstructHyperCube(AbstractTetrahedralMesh<2,2>& rMesh, unsigned width);
00062
00069 void ConstructHyperCube(AbstractTetrahedralMesh<3,3>& rMesh, unsigned width);
00070
00071 double mMeshWidth;
00072 unsigned mNumElements;
00073 unsigned mNumNodes;
00075 public:
00076
00087 void Construct(AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>& rMesh, unsigned meshRefinementNum, double meshWidth);
00088
00092 double GetWidth();
00093
00097 unsigned GetNumElements();
00098
00102 unsigned GetNumNodes();
00103 };
00104
00105 #endif