|
VMTK
|
Provides a set of common utility functions (calculate jacobian, interpolation function, and interpolation function derivatives) used during assembly of certain finite element solutions. More...
#include <vtkvmtkFEShapeFunctions.h>
Public Types | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkFEShapeFunctions * | NewInstance () const |
| void | Initialize (vtkCell *cell, vtkDoubleArray *pcoords) |
| double | GetPhi (vtkIdType id, vtkIdType i) |
| double * | GetDPhi (vtkIdType id, vtkIdType i) |
| void | GetDPhi (vtkIdType id, vtkIdType i, double *dphi) |
| double | GetDPhi (vtkIdType id, vtkIdType i, int c) |
| double | GetJacobian (vtkIdType i) |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkFEShapeFunctions * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkFEShapeFunctions * | New () |
| static void | GetInterpolationFunctions (vtkCell *cell, double *pcoords, double *sf) |
| static void | GetInterpolationDerivs (vtkCell *cell, double *pcoords, double *derivs) |
| static double | ComputeJacobian (vtkCell *cell, double *pcoords) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkFEShapeFunctions () | |
| ~vtkvmtkFEShapeFunctions () | |
Static Protected Member Functions | |
| static void | ComputeInverseJacobianMatrix2D (vtkCell *cell, double *pcoords, double inverseJacobianMatrix[2][3]) |
| static void | ComputeInverseJacobianMatrix3D (vtkCell *cell, double *pcoords, double inverseJacobianMatrix[3][3]) |
Protected Attributes | |
| vtkDoubleArray * | Phi |
| vtkDoubleArray * | DPhi |
| vtkDoubleArray * | Jacobians |
| vtkIdType | NumberOfCellPoints |
Provides a set of common utility functions (calculate jacobian, interpolation function, and interpolation function derivatives) used during assembly of certain finite element solutions.
vtkvmtkFEShapeFunctions evaluates, for a given vtkCell, the isoparametric finite-element shape functions (interpolation functions Phi), their gradients with respect to physical (x,y,z) coordinates (DPhi), and the Jacobian of the parametric-to-physical mapping (Jacobians), at a set of parametric points (typically Gauss quadrature points, see vtkvmtkGaussQuadrature). Initialize() precomputes and caches these quantities for every point in pcoords so that GetPhi/GetDPhi/ GetJacobian can be queried cheaply during element assembly. The static GetInterpolationFunctions/GetInterpolationDerivs/ComputeJacobian methods dispatch to the appropriate VTK cell type's own interpolation routines and can be used standalone, without an Initialize() call, for a single evaluation point. Supported cell types include line, quad, triangle, hexahedron, wedge and tetra, and their quadratic/biquadratic variants.
Definition at line 46 of file vtkvmtkFEShapeFunctions.h.
| typedef vtkObject vtkvmtkFEShapeFunctions::Superclass |
Definition at line 49 of file vtkvmtkFEShapeFunctions.h.
|
protected |
Definition at line 49 of file vtkvmtkFEShapeFunctions.cxx.
|
protected |
Definition at line 57 of file vtkvmtkFEShapeFunctions.cxx.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkFEShapeFunctions * vtkvmtkFEShapeFunctions::NewInstance | ( | ) | const |
|
static |
| void vtkvmtkFEShapeFunctions::Initialize | ( | vtkCell * | cell, |
| vtkDoubleArray * | pcoords ) |
Precompute and cache the shape function values (Phi), their physical-space gradients (DPhi), and the mapping Jacobian (Jacobians) at every parametric point held in pcoords, for the given cell. Subsequent GetPhi/GetDPhi/GetJacobian calls index into these cached arrays using the point index id (0-based, in the order of pcoords) and, for Phi/DPhi, the cell-local node index i (0 to cell->GetNumberOfPoints()-1).
Definition at line 64 of file vtkvmtkFEShapeFunctions.cxx.
|
inline |
Get the cached value of the i-th node's shape function at the id-th parametric point (previously computed by Initialize()).
Definition at line 65 of file vtkvmtkFEShapeFunctions.h.
|
inline |
Get a pointer to the cached 3-component physical-space gradient of the i-th node's shape function at the id-th parametric point (previously computed by Initialize()).
Definition at line 72 of file vtkvmtkFEShapeFunctions.h.
|
inline |
Copy the cached 3-component physical-space gradient of the i-th node's shape function at the id-th parametric point (previously computed by Initialize()) into dphi.
Definition at line 79 of file vtkvmtkFEShapeFunctions.h.
|
inline |
Get the c-th component of the cached physical-space gradient of the i-th node's shape function at the id-th parametric point (previously computed by Initialize()).
Definition at line 86 of file vtkvmtkFEShapeFunctions.h.
|
inline |
Get the cached Jacobian of the parametric-to-physical mapping at the i-th parametric point (previously computed by Initialize()).
Definition at line 93 of file vtkvmtkFEShapeFunctions.h.
|
static |
Evaluate, into sf, the shape function (interpolation function) values of cell at the parametric coordinates pcoords. Dispatches to the appropriate vtkCell subclass's InterpolationFunctions method based on cell->GetCellType(); unsupported cell types emit a warning.
Definition at line 242 of file vtkvmtkFEShapeFunctions.cxx.
|
static |
Evaluate, into derivs, the parametric-space derivatives of cell's shape functions at the parametric coordinates pcoords. Dispatches to the appropriate vtkCell subclass's InterpolationDerivs (or InterpolateDerivs) method based on cell->GetCellType(); unsupported cell types emit a warning.
Definition at line 288 of file vtkvmtkFEShapeFunctions.cxx.
|
static |
Compute and return the Jacobian of the parametric-to-physical mapping of cell at the parametric coordinates pcoords, for 2D or 3D cells. A negative Jacobian (inverted/degenerate element) is reported (optionally, when the corresponding compile-time macro is enabled) and its absolute value is returned.
Definition at line 334 of file vtkvmtkFEShapeFunctions.cxx.
|
staticprotected |
Definition at line 134 of file vtkvmtkFEShapeFunctions.cxx.
|
staticprotected |
Definition at line 201 of file vtkvmtkFEShapeFunctions.cxx.
|
protected |
Definition at line 126 of file vtkvmtkFEShapeFunctions.h.
|
protected |
Definition at line 127 of file vtkvmtkFEShapeFunctions.h.
|
protected |
Definition at line 128 of file vtkvmtkFEShapeFunctions.h.
|
protected |
Definition at line 129 of file vtkvmtkFEShapeFunctions.h.