MxHexahedronCellExtract Class Reference
[Cell]

MeshViz Utility class for hexahedron cells. More...

#include <MeshVizXLM/extractors/MxHexahedronCellExtract.h>

List of all members.

Static Public Member Functions

static void getIsosurfTopology (unsigned char caseId, std::vector< std::pair< size_t, size_t > > &edgeList)
static MbVec3d getIsoParametricCoord (const MiGeometryI &meshGeometry, const MiVolumeCell *hexahedronCell, const MbVec3d &point)
static MbVec3d getIsoParametricCoord (size_t nodeIndex)
static void getWeight (const MiGeometryI &meshGeometry, const MiVolumeCell *hexahedronCell, const MbVec3d &point, std::vector< double > &weights)
static void getWeight (const MbVec3d &ipcoord, std::vector< double > &weights)
static void getDerivs (const MbVec3d &ipcoord, std::vector< double > &derivs)
static bool isPointInsideCell (const MiGeometryI &meshGeometry, const MiVolumeCell *hexahedronCell, const MbVec3d &point, std::vector< double > &weights)
static double getVolume (const MiGeometryI &meshGeometry, const MiVolumeCell *hexahedronCell)
static MbVec3d getFacetNormal (size_t facetId, const MiGeometryI &meshGeometry, const MiVolumeCell *pyramidCell)
static double getLongestEdgeLength (const MiGeometryI &meshGeometry, const MiVolumeCell *cell)
static double getShortestEdgeLength (const MiGeometryI &meshGeometry, const MiVolumeCell *cell)

Detailed Description

MeshViz Utility class for hexahedron cells.

Utility class that provides a static implementation of the MiVolumeCell interface methods for a hexahedron cell. This class is provided to make it easier to create a class that implements the MiVolumeCell interface for a hexahedron cell.

The following image shows the node numbering and the face numbering used by this class. The isosurface topology (see getIsosurfTopology()), weights (see getWeight()), and parametric coordinates (see getIsoParametricCoord()) are defined according to this node numbering.

LinearHexahedron8.png

Nodes and faces numbering


Member Function Documentation

static void MxHexahedronCellExtract::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] ipcoord The 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] derivs This method computes the 24 values derivs[0-23]. It assumes the derivs vector array has been already allocated. Its size must be set to 24 (at least) before calling this method, using for instance the derivs.resize(24)
static MbVec3d MxHexahedronCellExtract::getFacetNormal ( size_t  facetId,
const MiGeometryI meshGeometry,
const MiVolumeCell pyramidCell 
) [static]

Gets the normal of the given facet in a tetrahedron cell.

static MbVec3d MxHexahedronCellExtract::getIsoParametricCoord ( size_t  nodeIndex  )  [static]

Returns the iso parametric coordinates of one of the 8 nodes of a hexahedron cell.

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

Parameters:
[in] nodeIndex Must be defined in the range [0-7]
static MbVec3d MxHexahedronCellExtract::getIsoParametricCoord ( const MiGeometryI meshGeometry,
const MiVolumeCell hexahedronCell,
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 hexahedronCell is assumed to contain 8 nodes.

Note:
Each node coordinate of the given cell is retrieved in the following way:
     meshGeometry.getCoord(hexahedronCell->getNodeIndex(i)) 
    
for each i in the range [0-7].
Parameters:
[in] meshGeometry The geometry of the mesh.
[in] hexahedronCell The input cell.
[in] point The input point given in the same space coordinate as meshGeometry.
static void MxHexahedronCellExtract::getIsosurfTopology ( unsigned char  caseId,
std::vector< std::pair< size_t, size_t > > &  edgeList 
) [static]

Returns the isosurface topology of the associated caseId.

This method can be used in the getIsosurfTopology(...) implementation of an hexahedron cell interface to return the information to the isosurface extraction module.

static double MxHexahedronCellExtract::getLongestEdgeLength ( const MiGeometryI meshGeometry,
const MiVolumeCell cell 
) [static]

Gets the longest edge of a hexahedron cell.

static double MxHexahedronCellExtract::getShortestEdgeLength ( const MiGeometryI meshGeometry,
const MiVolumeCell cell 
) [static]

Gets the shortest edge of a hexahedron cell.

static double MxHexahedronCellExtract::getVolume ( const MiGeometryI meshGeometry,
const MiVolumeCell hexahedronCell 
) [static]

Gets the volume of the cell.

static void MxHexahedronCellExtract::getWeight ( const MbVec3d ipcoord,
std::vector< double > &  weights 
) [inline, 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 hexahedron cell.

Parameters:
[in] ipcoord The 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] weights This method computes the 8 values weights[0-7]. It assumes the weights vector array has been already allocated. Its size must be set to 8 (at least) before calling this method, using for instance the weights.resize(8)
static void MxHexahedronCellExtract::getWeight ( const MiGeometryI meshGeometry,
const MiVolumeCell hexahedronCell,
const MbVec3d point,
std::vector< double > &  weights 
) [inline, static]

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 hexahedron cell. As computing the weights of a point needs the coordinates of the cell's nodes, the given hexahedronCell is assumed to contain 8 nodes.

Note:
Each node coordinate of the given cell is retrieved in the following way:
     meshGeometry.getCoord(hexahedronCell->getNodeIndex(i)) 
    
for each i in the range [0-7].
Parameters:
[in] meshGeometry The geometry of the mesh.
[in] hexahedronCell The input cell.
[in] point The input point given in the same space coordinate as meshGeometry.
[out] weights This method computes the 8 values weights[0-7]. It assumes the weights vector array has been already allocated. Its size must be set to 8 (at least) before calling this method, using for instance the weights.resize(8)
static bool MxHexahedronCellExtract::isPointInsideCell ( const MiGeometryI meshGeometry,
const MiVolumeCell hexahedronCell,
const MbVec3d point,
std::vector< double > &  weights 
) [inline, static]

Checks if a point is inside or outside an hexahedron cell.

This static method helps to implement the method MiCell::isPointInsideCell(meshGeometry,point,weights) for a hexahedron cell.

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

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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/