Class xlifepp::subdivision::VolMeshHexCone#
-
class VolMeshHexCone : public xlifepp::subdivision::HexahedronMesh#
-
Inheritence diagram for xlifepp::subdivision::VolMeshHexCone:
Collaboration diagram for xlifepp::subdivision::VolMeshHexCone:
Public Functions
-
VolMeshHexCone(const number_t nbslices = 0, const number_t nbsubdiv = 0, const number_t order = 1, const number_t type = 1, const real_t radius1 = 1., const real_t radius2 = 0.5, const Point P1 = Point(0, 0, 0), const Point P2 = Point(0, 0, 1), const number_t minVertexNum = 1, const number_t minElementNum = 1)#
-
main constructor
Build a mesh of hexahedra by successive subdivisions in a cone or a truncated cone.
The cylinder is a particular kind of truncated cone which has a special constructor below.
Nota: If none of the radii is null, this defines a truncated cone or a cylinder. If one of the radii is null, the corresponding point, P1 or P2, is the apex of the cone. But indeed, NONE of the radii should be null, because this leads to degenerated hexahedra (several points collapse to the apex of the cone) ; this brings an error during the check stage of the mesh thus obtained (wrong number of interfaces). However, one can obtain nearly a “true” cone by setting one radius as small as 1.e-15.
- Parameters:
-
nbslices – number of slices of elements orthogonal to the axis of the cone (0 by default, which means that the number of slices is automatically computed ; if nbslices>0, the given value has precedence and is taken into account)
nbsubdiv – subdivision level (0 by default) nbsubdiv = 0 corresponds to the initial mesh. For nbsubdiv > 0, each hexahedron is subdivided into 8 hexahedrons with the same orientation as the original one.
order – order of the hexahedra in the final mesh (1 by default) The default value is 1, which leads to a Q1 mesh, in which case each hexahedron is defined by its 8 vertices. For higher orders, the supplemental vertices correspond to the regular Lagrange mesh. Moreover, if the second argument (type) is non 0, the vertices belonging to the appropriate boundary lie on the surface of the cone.
type – type of the subdivision (1 by default) type equal to 0 leads to a simple (flat) subdivision of the initial mesh where new vertices are all the midpoints of the edges. type equal to 1 leads to a subdivision where the boundary vertices are computed so that they lie on the corresponding surface
radius1 – : radius of the basis of the cone containing P1 (1. by default)
radius2 – : radius of the other basis of the cone containing P2 (0.5 by default)
P1, P2 – : the two end points of the axis of the cone
minVertexNum – minimum number associated to the vertices of the mesh (1 by default)
minElementNum – minimum number associated to the elements of the mesh (1 by default)
-
VolMeshHexCone(const number_t nbslices = 0, const number_t nbsubdiv = 0, const number_t order = 1, const number_t type = 1, const real_t radius1 = 1., const real_t radius2 = 0.5, const Point P1 = Point(0, 0, 0), const Point P2 = Point(0, 0, 1), const number_t minVertexNum = 1, const number_t minElementNum = 1)#