36 #include "CuboidMeshConstructor.hpp"
39 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
43 assert(ELEMENT_DIM == SPACE_DIM || (ELEMENT_DIM == 1 && SPACE_DIM == 3));
45 mMeshWidth = meshWidth;
46 assert(meshRefinementNum < 30);
49 unsigned mesh_size =
SmallPow(2u, meshRefinementNum+2);
50 double scaling = mMeshWidth/(
double) mesh_size;
56 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
62 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
68 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
double SmallPow(double x, unsigned exponent)
void ConstructRegularSlabMesh(double spaceStep, double width, double height=0, double depth=0)
virtual unsigned GetNumElements() const
virtual unsigned GetNumNodes() const
void Construct(AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, unsigned meshRefinementNum, double meshWidth)
unsigned GetNumElements()