18#ifndef vtkHigherOrderInterpolation_h
19#define vtkHigherOrderInterpolation_h
21#include "vtkCommonDataModelModule.h"
28#define VTK_21_POINT_WEDGE true
43 void (*function_evaluate_shape_functions)(
int,
double,
double*));
45 void (*function_evaluate_shape_and_gradient)(
int,
double,
double*,
double*));
48 void (*function_evaluate_shape_functions)(
int,
double,
double*));
50 void (*function_evaluate_shape_and_gradient)(
int,
double,
double*,
double*));
53 void (*function_evaluate_shape_functions)(
int,
double,
double*));
55 void (*function_evaluate_shape_and_gradient)(
int,
double,
double*,
double*));
58 vtkPoints* points,
const double* fieldVals,
int fieldDim,
double* fieldDerivs) = 0;
61 const double* fieldVals,
int fieldDim,
double* fieldDerivs,
62 void (*function_evaluate_shape_and_gradient)(
int,
double,
double*,
double*));
66 void (*function_evaluate_shape_functions)(
int,
double,
double*));
69 void (*function_evaluate_shape_and_gradient)(
int,
double,
double*,
double*));
79 const double* pcoords,
double* fieldVals,
int fieldDim,
double* fieldAtPCoords) = 0;
83 void (*function_evaluate_shape_functions)(
int,
double,
double*));
86 const double* fieldVals,
int fieldDim,
double* fieldDerivs) = 0;
90 void (*function_evaluate_shape_and_gradient)(
int,
double,
double*,
double*));
120 static int NumberOfIntervals(
const int order[N]);
140 for (
int n = 0; n < N; ++n)
int JacobianInverseWedge(vtkPoints *points, const double *derivs, double **inverse)
static const int * GetPointIndicesBoundingWedgeFace(int faceId)
static vtkVector2i GetFixedParametersOfWedgeEdge(int edgeId)
static void AppendCurveCollocationPoints(vtkSmartPointer< vtkPoints > &pts, const int order[1])
static const int * GetEdgeIndicesBoundingWedgeFace(int faceId)
std::vector< double > DerivSpace
static vtkVector2i GetVaryingParametersOfWedgeFace(int faceId)
static int Tensor1ShapeFunctions(const int order[1], const double *pcoords, double *shape, void(*function_evaluate_shape_functions)(int, double, double *))
static void AppendHexahedronCollocationPoints(vtkSmartPointer< vtkPoints > &pts, const int order[3])
static int Tensor3ShapeDerivatives(const int order[3], const double *pcoords, double *derivs, void(*function_evaluate_shape_and_gradient)(int, double, double *, double *))
static int Tensor2ShapeDerivatives(const int order[2], const double *pcoords, double *derivs, void(*function_evaluate_shape_and_gradient)(int, double, double *, double *))
static void WedgeShapeFunctions(const int order[3], const vtkIdType numberOfPoints, const double *pcoords, double *shape, vtkHigherOrderTriangle &tri, void(*function_evaluate_shape_functions)(int, double, double *))
void WedgeEvaluateDerivative(const int order[3], const double *pcoords, vtkPoints *points, const double *fieldVals, int fieldDim, double *fieldDerivs, vtkHigherOrderTriangle &tri, void(*function_evaluate_shape_and_gradient)(int, double, double *, double *))
vtkHigherOrderInterpolation()
static vtkVector2i GetPointIndicesBoundingHexEdge(int edgeId)
static vtkVector2i GetVaryingParametersOfHexFace(int faceId)
static int Tensor2ShapeFunctions(const int order[2], const double *pcoords, double *shape, void(*function_evaluate_shape_functions)(int, double, double *))
static int GetFixedParameterOfWedgeFace(int faceId)
void PrepareForOrder(const int order[3], const vtkIdType numberOfPoints)
static const int * GetEdgeIndicesBoundingHexFace(int faceId)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static int NumberOfIntervals(const int order[N])
static const int * GetPointIndicesBoundingHexFace(int faceId)
static int GetVaryingParameterOfHexEdge(int edgeId)
static int GetVaryingParameterOfWedgeEdge(int edgeId)
virtual void WedgeEvaluateDerivative(const int order[3], const double *pcoords, vtkPoints *points, const double *fieldVals, int fieldDim, double *fieldDerivs)=0
static void AppendQuadrilateralCollocationPoints(vtkSmartPointer< vtkPoints > &pts, const int order[2])
std::vector< double > ShapeSpace
~vtkHigherOrderInterpolation() override
static vtkVector2i GetPointIndicesBoundingWedgeEdge(int edgeId)
static void WedgeShapeDerivatives(const int order[3], const vtkIdType numberOfPoints, const double *pcoords, double *derivs, vtkHigherOrderTriangle &tri, void(*function_evaluate_shape_and_gradient)(int, double, double *, double *))
static int Tensor1ShapeDerivatives(const int order[1], const double *pcoords, double *derivs, void(*function_evaluate_shape_and_gradient)(int, double, double *, double *))
int JacobianInverse(vtkPoints *points, const double *derivs, double **inverse)
Compute the inverse of the Jacobian and put the values in inverse.
static vtkVector3d GetParametricWedgeCoordinates(int vertexId)
void WedgeEvaluate(const int order[3], const vtkIdType numberOfPoints, const double *pcoords, double *fieldVals, int fieldDim, double *fieldAtPCoords, vtkHigherOrderTriangle &tri, void(*function_evaluate_shape_functions)(int, double, double *))
static vtkVector2i GetFixedParametersOfHexEdge(int edgeId)
static int GetFixedParameterOfHexFace(int faceId)
static void AppendWedgeCollocationPoints(vtkSmartPointer< vtkPoints > &pts, const int order[3])
virtual void Tensor3EvaluateDerivative(const int order[3], const double *pcoords, vtkPoints *points, const double *fieldVals, int fieldDim, double *fieldDerivs)=0
static vtkVector3d GetParametricHexCoordinates(int vertexId)
void Tensor3EvaluateDerivative(const int order[3], const double *pcoords, vtkPoints *points, const double *fieldVals, int fieldDim, double *fieldDerivs, void(*function_evaluate_shape_and_gradient)(int, double, double *, double *))
static int Tensor3ShapeFunctions(const int order[3], const double *pcoords, double *shape, void(*function_evaluate_shape_functions)(int, double, double *))
virtual void WedgeEvaluate(const int order[3], const vtkIdType numberOfPoints, const double *pcoords, double *fieldVals, int fieldDim, double *fieldAtPCoords)=0
A 2D cell that represents an arbitrary order HigherOrder triangle.
a simple class to control print indentation
abstract base class for most VTK objects
represent and manipulate 3D points
Hold a reference to a vtkObjectBase instance.
Some derived classes for the different vectors commonly used.
#define VTK_SIZEHINT(...)