NiHu
2.0
|
Utility functions for basic mesh generation. More...
Go to the source code of this file.
Enumerations | |
enum | NiHu::orientation { NiHu::inward, NiHu::outward } |
Orientation of surface meshes. More... | |
Functions | |
template<class ElemTag = NiHu::line_1_tag> | |
NiHu::mesh< tmp::vector< typename NiHu::tag2type< ElemTag >::type > > | NiHu::create_circle_mesh (double r, size_t nElem, orientation ori=outward, ElemTag tag=ElemTag()) |
Create a homogeneous circular boundary mesh. More... | |
template<class ElemTag = NiHu::line_1_tag> | |
NiHu::mesh< tmp::vector< typename NiHu::tag2type< ElemTag >::type > > | NiHu::create_rectangle_mesh (double Lx, double Ly, size_t nx, size_t ny, orientation ori=outward, ElemTag tag=ElemTag()) |
Create a homogeneous rectangular boundary mesh. More... | |
Utility functions for basic mesh generation.
Definition in file lib_mesh.hpp.
enum NiHu::orientation |
Orientation of surface meshes.
Enumerator | |
---|---|
inward | The mesh is directed inward. |
outward | The mesh is directed outward. |
Definition at line 14 of file lib_mesh.hpp.
NiHu::mesh<tmp::vector<typename NiHu::tag2type<ElemTag>::type > > NiHu::create_circle_mesh | ( | double | r, |
size_t | nElem, | ||
orientation | ori = outward , |
||
ElemTag | tag = ElemTag() |
||
) |
Create a homogeneous circular boundary mesh.
ElemTag | The tag type of the consisting elements |
[in] | r | The circle's radius |
[in] | nElem | The number of elements |
[in] | ori | The mesh orientation |
[in] | tag | The element type tag |
Definition at line 32 of file lib_mesh.hpp.
NiHu::mesh<tmp::vector<typename NiHu::tag2type<ElemTag>::type > > NiHu::create_rectangle_mesh | ( | double | Lx, |
double | Ly, | ||
size_t | nx, | ||
size_t | ny, | ||
orientation | ori = outward , |
||
ElemTag | tag = ElemTag() |
||
) |
Create a homogeneous rectangular boundary mesh.
ElemTag | The tag type of the consisting elements |
[in] | Lx | The rectangle's length in x direction |
[in] | Ly | The rectangle's length in y direction |
[in] | nx | The number of elements in x direction |
[in] | ny | The number of elements in y direction |
[in] | ori | The mesh orientation |
[in] | tag | The element type tag |
Definition at line 82 of file lib_mesh.hpp.