Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
MxTetrahedron10CellExtract Class Reference

MeshViz Utility class for quadratic tetrahedron cells with 10 nodes. More...

#include <MeshVizXLM/extractors/MxTetrahedron10CellExtract.h>

Static Public Member Functions

static MbVec3d getIsoParametricCoord (const MiGeometryI &meshGeometry, const MiVolumeCell *tetrahedronCell, const MbVec3d &point)
 Computes the iso parametric coordinates of the given point in the given cell with the given geometry.
 
static MbVec3d getIsoParametricCoord (size_t nodeIndex)
 Returns the iso parametric coordinates of one of the 10 nodes of a quadratic tetrahedron.
 
static void getWeight (const MiGeometryI &meshGeometry, const MiVolumeCell *tetrahedronCell, const MbVec3d &point, std::vector< double > &weights)
 Gets the weights in the given cell of the given point.
 
static void getWeight (const MbVec3d &ipcoord, std::vector< double > &weights)
 Gets the weights of a point defined by its iso parametric coordinates.
 
static void getDerivs (const MbVec3d &ipcoord, std::vector< double > &derivs)
 Gets the value of the derivatives of the shape functions (aka weights) at the point given by its iso parametric coordinates.
 
static bool isPointInsideCell (const MiGeometryI &meshGeometry, const MiVolumeCell *tetrahedronCell, const MbVec3d &point, std::vector< double > &weights)
 Checks if a point is inside or outside a quadratic tetrahedron cell of 10 nodes.
 
static size_t getNodesIndexOfFacet (size_t facet, std::vector< size_t > &facetNodes)
 Gets the array of "linear" node indices belonging to a given facet.
 
static size_t getSubTriangleNodesIndex (size_t face, std::vector< size_t > &triangleNodeIds)
 Gets a triangulation of the given facet of a quadratic tetrahedron of 10 nodes.
 
static size_t getSubTetrahedronNodesIndex (std::vector< size_t > &tetrahedronNodeIds)
 Gets a decomposition in sub-tetrahedra of a quadratic tetrahedron of 10 nodes.
 

Friends

std::ostream & operator<< (std::ostream &s, const MxTetrahedron10CellExtract &cell)
 

Detailed Description

MeshViz Utility class for quadratic tetrahedron cells with 10 nodes.

Utility class that provides a static implementation of MiVolumeCell's methods for a quadratic tetrahedron of 10 nodes. This class is provided to make it easier to create a class that implements the MiVolumeCell interface for a quadratic tetrahedron of 10 nodes.

The following image shows the node numbering and the face numbering used by this class. The weight (see getWeight()), parametric coordinates (see getIsoParametricCoord()), and the decomposition in sub tetrahedrons (see getSubTetrahedronNodesIndex()) are defined according to this node numbering. The face decomposition (see getSubTriangleNodesIndex()) is defined according to this node and face numbering.

Nodes and faces numbering

Definition at line 62 of file MxTetrahedron10CellExtract.h.

Member Function Documentation

◆ getDerivs()

static void MxTetrahedron10CellExtract::getDerivs ( const MbVec3d ipcoord,
std::vector< double > &  derivs 
)
static

Gets the value of the derivatives of the shape functions (aka weights) at the point given by its iso parametric coordinates.

Parameters
[in]ipcoordThe iso parametric coordinates of the input point. The reference space for the iso parametric coordinates is assumed to be [0-1]. Thus any point inside the cell has iso parametric coordinates in the interval [0-1].
[out]derivsThis method computes the 30 values derivs[0-29].
It assumes the derivs vector array has been already allocated. Its size must be set to 30 (at least) before calling this method, using for instance the derivs.resize(30)

◆ getIsoParametricCoord() [1/2]

static MbVec3d MxTetrahedron10CellExtract::getIsoParametricCoord ( const MiGeometryI meshGeometry,
const MiVolumeCell tetrahedronCell,
const MbVec3d point 
)
static

Computes the iso parametric coordinates of the given point in the given cell with the given geometry.

As computing the iso parametric coordinates of a point needs the coordinates of the cell's nodes, the given tetrahedronCell is assumed to contain 10 nodes.

Note
Each node coordinate of the given cell is retrieved in the following way:
 meshGeometry.getCoord(tetrahedronCell->getNodeIndex(i)) 
for each i in the range [0-9].
Parameters
[in]meshGeometryThe geometry of the mesh.
[in]tetrahedronCellThe input cell.
[in]pointThe input point given in the same space coordinate as meshGeometry.

◆ getIsoParametricCoord() [2/2]

static MbVec3d MxTetrahedron10CellExtract::getIsoParametricCoord ( size_t  nodeIndex)
static

Returns the iso parametric coordinates of one of the 10 nodes of a quadratic tetrahedron.

This static method helps to implement the method MiCell::getIsoParametricCoord().

Parameters
[in]nodeIndexMust be defined in the range [0-9]

◆ getNodesIndexOfFacet()

static size_t MxTetrahedron10CellExtract::getNodesIndexOfFacet ( size_t  facet,
std::vector< size_t > &  facetNodes 
)
inlinestatic

Gets the array of "linear" node indices belonging to a given facet.

Parameters
[in]facetThe index of the facet (where 0 <= facet < 4).
[out]facetNodesThe array of "linear" local node indices of the facet. ( 0 <= facetNodes[i] < 10 for each i ).
Returns
The number of nodes added.

Definition at line 172 of file MxTetrahedron10CellExtract.h.

◆ getSubTetrahedronNodesIndex()

static size_t MxTetrahedron10CellExtract::getSubTetrahedronNodesIndex ( std::vector< size_t > &  tetrahedronNodeIds)
inlinestatic

Gets a decomposition in sub-tetrahedra of a quadratic tetrahedron of 10 nodes.

This static method helps to implement the method MiVolumeCell::getSubTetrahedronNodesIndex() for a quadratic tetrahedron of 10 nodes.

Parameters
[out]tetrahedronNodeIdsSub tetrahedra node ids (where: 0 <= tetrahedronNodeIds[i] < 10 for each i). this method assign the 32 node ids tetrahedronNodeIds[0-31]
Returns
8 (number of sub-tetrahedra in a quadratic tetrahedron of 10 nodes)

Definition at line 200 of file MxTetrahedron10CellExtract.h.

◆ getSubTriangleNodesIndex()

static size_t MxTetrahedron10CellExtract::getSubTriangleNodesIndex ( size_t  face,
std::vector< size_t > &  triangleNodeIds 
)
inlinestatic

Gets a triangulation of the given facet of a quadratic tetrahedron of 10 nodes.

This static method helps to implement the method MiVolumeCell::getSubTriangleNodesIndex() for a quadratic tetrahedron of 10 nodes.

Parameters
[in]faceNumber of the face. (where: 0 <= face < 4 ).
[out]triangleNodeIdsSub triangle node ids (where: 0 <= triangleNodeIds[i] < 10 for each i).
Returns
The number of sub triangles in the facet of the cell.

Definition at line 186 of file MxTetrahedron10CellExtract.h.

◆ getWeight() [1/2]

static void MxTetrahedron10CellExtract::getWeight ( const MbVec3d ipcoord,
std::vector< double > &  weights 
)
static

Gets the weights of a point defined by its iso parametric coordinates.

This static method helps to implement the method MiCell::getWeight(ipcoord,weights) for a quadratic tetrahedron of 10 nodes.

Parameters
[in]ipcoordThe iso parametric coordinates of the input point. The reference space for the iso parametric coordinates is assumed to be [0-1]. Thus any point inside the cell has iso parametric coordinates in the interval [0-1].
[out]weightsThis method computes the 10 values weights[0-9].
It assumes the weights vector array has been already allocated. Its size must be set to 10 (at least) before calling this method, using for instance the weights.resize(10)

◆ getWeight() [2/2]

static void MxTetrahedron10CellExtract::getWeight ( const MiGeometryI meshGeometry,
const MiVolumeCell tetrahedronCell,
const MbVec3d point,
std::vector< double > &  weights 
)
inlinestatic

Gets the weights in the given cell of the given point.

This static method helps to implement the method MiCell::getWeight(meshGeometry,point,weights) for a quadratic tetrahedron of 10 nodes. As computing the weights of a point needs the coordinates of the cell's nodes, the given tetrahedronCell is assumed to contain 10 nodes.

Note
Each node coordinate of the given cell is retrieved in the following way:
 meshGeometry.getCoord(tetrahedronCell->getNodeIndex(i)) 
for each i in the range [0-9].
Parameters
[in]meshGeometryThe geometry of the mesh.
[in]tetrahedronCellThe input cell.
[in]pointThe input point given in the same space coordinate as meshGeometry.
[out]weightsThis method computes the 10 values weights[0-9]. It assumes the weights vector array has been already allocated. Its size must be set to 10 (at least) before calling this method, using for instance the weights.resize(10)

Definition at line 107 of file MxTetrahedron10CellExtract.h.

◆ isPointInsideCell()

static bool MxTetrahedron10CellExtract::isPointInsideCell ( const MiGeometryI meshGeometry,
const MiVolumeCell tetrahedronCell,
const MbVec3d point,
std::vector< double > &  weights 
)
inlinestatic

Checks if a point is inside or outside a quadratic tetrahedron cell of 10 nodes.

This static method helps to implement the method MiCell::isPointInsideCell(meshGeometry,point,weights) for a quadratic tetrahedron of 10 nodes.

Parameters
[in]meshGeometryThe geometry of the mesh.
[in]tetrahedronCellThe input cell.
[in]pointThe input point given in the same space coordinate as meshGeometry.
[out]weightsThis method computes the 10 values weights[0-9] if the point is inside the cell. It assumes the weights vector array has been already allocated. Its size must be set to 10 (at least) before calling this method, using for instance the weights.resize(10)
Returns
true if the point is inside the cell.

Definition at line 153 of file MxTetrahedron10CellExtract.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  s,
const MxTetrahedron10CellExtract cell 
)
friend

The documentation for this class was generated from the following file: