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

Linear (P1) shape functions for 1D edge elements. 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 (Vector1 const &xi) const
 Evaluate shape functions at parametric coordinate. More...
 
KOKKOS_INLINE_FUNCTION Kokkos::Array< Real, numNodesgetLocalGradients (Vector1 const &) const
 Get gradients of shape functions in parametric coordinates @detail gradients are constant - ignoring parametric coord input. More...
 

Static Public Attributes

static const size_t numNodes = 2
 Number of nodes (2 for linear edge)
 
static const size_t meshEntDim = 1
 Mesh entity dimension (1D)
 
constexpr static Mesh_Topology DofHolders [1] = {Vertex}
 DOFs located at vertices.
 
constexpr static size_t Order = 1
 Polynomial order (linear)
 

Detailed Description

Linear (P1) shape functions for 1D edge elements.

Defines linear basis functions for a 1D edge element with 2 nodes. Parametric coordinate range: xi $\in$ [-1, 1]

Node ordering:

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

Definition at line 99 of file MeshField_Shape.hpp.

Member Function Documentation

◆ getLocalGradients()

KOKKOS_INLINE_FUNCTION Kokkos::Array<Real, numNodes> MeshField::LinearEdgeShape::getLocalGradients ( Vector1 const &  ) const
inline

Get gradients of shape functions in parametric coordinates @detail gradients are constant - ignoring parametric coord input.

Returns
Array of constant gradients [dN0/dxi, dN1/dxi]

Definition at line 138 of file MeshField_Shape.hpp.

◆ getNodeParametricCoords()

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

Get parametric coordinates of element nodes.

Returns
Array of node coordinates: [node0_xi, node1_xi]

Definition at line 110 of file MeshField_Shape.hpp.

◆ getValues()

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

Evaluate shape functions at parametric coordinate.

Parameters
xiParametric coordinate (xi $\in$ [-1, 1])
Returns
Array of shape function values [N0(xi), N1(xi)]

Definition at line 123 of file MeshField_Shape.hpp.


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