28 #ifndef __vtkvmtkFEShapeFunctions_h 29 #define __vtkvmtkFEShapeFunctions_h 31 #include "vtkObject.h" 32 #include "vtkvmtkWin32Header.h" 35 #include "vtkDoubleArray.h" 43 void Initialize(vtkCell* cell, vtkDoubleArray* pcoords);
45 double GetPhi(vtkIdType
id, vtkIdType i)
46 {
return this->Phi->GetValue(
id*this->NumberOfCellPoints+i); }
48 double*
GetDPhi(vtkIdType
id, vtkIdType i)
49 {
return this->DPhi->GetTuple(
id*this->NumberOfCellPoints+i); }
51 void GetDPhi(vtkIdType
id, vtkIdType i,
double* dphi)
52 { this->DPhi->GetTuple(
id*this->NumberOfCellPoints+i,dphi); }
54 double GetDPhi(vtkIdType
id, vtkIdType i,
int c)
55 {
return this->DPhi->GetComponent(
id*this->NumberOfCellPoints+i,c); }
58 {
return this->Jacobians->GetValue(i); }
60 static void GetInterpolationFunctions(vtkCell* cell,
double* pcoords,
double* sf);
61 static void GetInterpolationDerivs(vtkCell* cell,
double* pcoords,
double* derivs);
63 static double ComputeJacobian(vtkCell* cell,
double* pcoords);
69 static void ComputeInverseJacobianMatrix2D(vtkCell* cell,
double* pcoords,
double inverseJacobianMatrix[2][3]);
70 static void ComputeInverseJacobianMatrix3D(vtkCell* cell,
double* pcoords,
double inverseJacobianMatrix[3][3]);
vtkDoubleArray * Jacobians
double GetJacobian(vtkIdType i)
Set of common utility (calculate jacobian, interpolation function, and interpolation function derivat...
double GetPhi(vtkIdType id, vtkIdType i)
double GetDPhi(vtkIdType id, vtkIdType i, int c)
void GetDPhi(vtkIdType id, vtkIdType i, double *dphi)
vtkIdType NumberOfCellPoints
double * GetDPhi(vtkIdType id, vtkIdType i)