Class xlifepp::subdivision::VolMeshTetCylinder#
-
class VolMeshTetCylinder : public xlifepp::subdivision::TetrahedronMesh#
-
Inheritence diagram for xlifepp::subdivision::VolMeshTetCylinder:
Collaboration diagram for xlifepp::subdivision::VolMeshTetCylinder:
Public Functions
-
VolMeshTetCylinder(const number_t nbslices = 0, const number_t nbsubdiv = 0, const number_t order = 1, const number_t type = 1, const real_t radius = 1., const Point P1 = Point(0, 0, 0), const Point P2 = Point(0, 0, 1), const GeomEndShape endShape1 = Flat, const GeomEndShape endShape2 = Flat, const real_t distance1 = 0., const real_t distance2 = 0., const number_t minVertexNum = 1, const number_t minElementNum = 1)#
-
main constructor
Build a mesh of tetrahedrons by successive subdivisions in a cylinder.
- 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 tetrahedron is subdivided into 8 tetrahedrons with the same orientation as the original one: if the first tetrahedron is (1,2,3,4), the vectors 12x13, 41x43, 43x42 and 42x41 define the exterior normals to the faces.
order – order of the tetrahedra in the final mesh (1 by default) The default value is 1, which leads to a P1 mesh, in which case each tetrahedron is defined by its 4 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
radius – radius of the cylinder (1. by default)
P1, P2 – : the two end points of the axis of the cone
endShape1 – : shape of the end surface of the cone on P1 or P2 side
endShape2 – : (Flat by default). The possible values are of GeomEndShape type.
distance1 – : distance between P1 (resp. P2) and the apex of the surface when the
distance2 – : previous parameter is non Flat (default=0.)
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)
-
VolMeshTetCylinder(const number_t nbslices = 0, const number_t nbsubdiv = 0, const number_t order = 1, const number_t type = 1, const real_t radius = 1., const Point P1 = Point(0, 0, 0), const Point P2 = Point(0, 0, 1), const GeomEndShape endShape1 = Flat, const GeomEndShape endShape2 = Flat, const real_t distance1 = 0., const real_t distance2 = 0., const number_t minVertexNum = 1, const number_t minElementNum = 1)#