MeshFields
GPU accelerated mesh-based fields
Public Member Functions | Static Public Attributes | List of all members
MeshField::LinearTriangleCoordinateShape Struct Reference

Linear triangle shape functions for coordinate fields. More...

#include <MeshField_Shape.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION Kokkos::Array< Real, numNodes *meshEntDimgetNodeParametricCoords () const
 Get parametric coordinates of element nodes. More...
 
KOKKOS_INLINE_FUNCTION Kokkos::Array< Real, numNodesgetValues (Vector2 const &xi) const
 Evaluate shape functions at parametric coordinate. More...
 

Static Public Attributes

static const size_t numNodes = 3
 Number of nodes.
 
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)
 

Detailed Description

Linear triangle shape functions for coordinate fields.

Similar to LinearTriangleShape but specialized for coordinate field usage. Defines linear basis functions for a triangular element with 3 nodes. Parametric coordinate range: xi0, xi1 $\in$ [0, 1]

Shape functions and ordering from: Zienkiewicz, Taylor, and Zhu 'The Finite Element Method: Its Basis and Fundamentals', 2013

Definition at line 230 of file MeshField_Shape.hpp.

Member Function Documentation

◆ getNodeParametricCoords()

KOKKOS_INLINE_FUNCTION Kokkos::Array<Real, numNodes * meshEntDim> MeshField::LinearTriangleCoordinateShape::getNodeParametricCoords ( ) const
inline

Get parametric coordinates of element nodes.

Returns
Array of node coordinates: [node0_xi0, node0_xi1, node1_xi0, node1_xi1, node2_xi0, node2_xi1]

Definition at line 241 of file MeshField_Shape.hpp.

◆ getValues()

KOKKOS_INLINE_FUNCTION Kokkos::Array<Real, numNodes> MeshField::LinearTriangleCoordinateShape::getValues ( Vector2 const &  xi) const
inline

Evaluate shape functions at parametric coordinate.

Parameters
xiParametric coordinates (xi0, xi1) where xi0, xi1 $\in$ [0,1]
Returns
Array of shape function values using barycentric coordinates [L0, L1, L2]

Definition at line 255 of file MeshField_Shape.hpp.


The documentation for this struct was generated from the following file: