|
MeshFields
GPU accelerated mesh-based fields
|
Linear (P1) 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 shape functions at parametric coordinate. More... | |
| KOKKOS_INLINE_FUNCTION Kokkos::Array< Real, meshEntDim *numNodes > | getLocalGradients (Vector2 const &) const |
| Get gradients of shape functions @detail gradients are constant - ignoring parametric coord input. More... | |
Static Public Attributes | |
| static const size_t | numNodes = 3 |
| Number of nodes (3 for linear triangle) | |
| static const size_t | numComponentsPerDof = 1 |
| Components per DOF (scalar field) | |
| static const size_t | meshEntDim = 2 |
| Mesh entity dimension (2D) | |
| constexpr static Mesh_Topology | DofHolders [1] = {Vertex} |
| DOFs located at vertices. | |
| constexpr static size_t | Order = 1 |
| Polynomial order (linear) | |
Linear (P1) shape functions for 2D triangular elements.
Defines linear basis functions for a triangular element with 3 nodes. Parametric coordinate range: xi0, xi1
[0, 1]
Node ordering:
Shape functions use barycentric coordinates where L0 = 1-xi0-xi1, L1 = xi0, L2 = xi1
Shape functions and ordering from: Zienkiewicz, Taylor, and Zhu 'The Finite Element Method: Its Basis and Fundamentals', 2013
Definition at line 163 of file MeshField_Shape.hpp.
|
inline |
Get gradients of shape functions @detail gradients are constant - ignoring parametric coord input.
Definition at line 210 of file MeshField_Shape.hpp.
|
inline |
Get parametric coordinates of element nodes.
Definition at line 175 of file MeshField_Shape.hpp.
|
inline |
Evaluate shape functions at parametric coordinate.
| xi | Parametric coordinates (xi0, xi1) where xi0, xi1 [0,1] |
Definition at line 190 of file MeshField_Shape.hpp.