|
MeshFields
GPU accelerated mesh-based fields
|
Quadratic (P2) shape functions for 2D triangular elements. More...
#include <MeshField_Shape.hpp>
Public Member Functions | |
| KOKKOS_INLINE_FUNCTION Kokkos::Array< Real, numNodes *meshEntDim > | getNodeParametricCoords () const |
| Get parametric coordinates of element nodes. More... | |
| KOKKOS_INLINE_FUNCTION Kokkos::Array< Real, numNodes > | getValues (Vector2 const &xi) const |
| Evaluate quadratic shape functions at parametric coordinate. More... | |
| KOKKOS_INLINE_FUNCTION Kokkos::Array< Real, meshEntDim *numNodes > | getLocalGradients (Vector2 const &xi) const |
| Get gradients of quadratic shape functions at parametric coordinate. More... | |
Static Public Attributes | |
| static const size_t | numNodes = 6 |
| Number of nodes (6 for quadratic triangle) | |
| static const size_t | meshEntDim = 2 |
| Mesh entity dimension (2D) | |
| constexpr static Mesh_Topology | DofHolders [2] = {Vertex, Edge} |
| DOFs at vertices and edges. | |
| constexpr static size_t | NumDofHolders [2] = {3, 3} |
| 3 vertices, 3 edges | |
| constexpr static size_t | DofsPerHolder [2] = {1, 1} |
| 1 DOF per vertex/edge | |
| constexpr static size_t | Order = 2 |
| Polynomial order (quadratic) | |
Quadratic (P2) shape functions for 2D triangular elements.
Defines quadratic basis functions for a triangular element with 6 nodes. Nodes are located at vertices and edge midpoints. Parametric coordinate range: xi0, xi1
[0, 1]
Node ordering:
Shape functions and ordering from: Zienkiewicz, Taylor, and Zhu 'The Finite Element Method: Its Basis and Fundamentals', 2013 [QuadraticTriangleShape]
Definition at line 285 of file MeshField_Shape.hpp.
|
inline |
Get gradients of quadratic shape functions at parametric coordinate.
| xi | Parametric coordinates (xi0, xi1) where xi0, xi1 [0,1] |
Definition at line 347 of file MeshField_Shape.hpp.
|
inline |
Get parametric coordinates of element nodes.
Definition at line 298 of file MeshField_Shape.hpp.
|
inline |
Evaluate quadratic shape functions at parametric coordinate.
| xi | Parametric coordinates (xi0, xi1) where xi0, xi1 [0,1] |
Definition at line 322 of file MeshField_Shape.hpp.