H1 Lagrange Shape Functions

In many cases, the partial differential equations that describe the continuous problem include derivatives of the dependant variables up to the second order, so that their integral form includes first order derivatives. These problems require shape functions that are continuous over the space domain (C0). Typical interpolation functions that satisfy this requirement are the H1-conforming Lagrange shape functions, which are continuous functions that can be expressed in terms of Lagrange polynomials.

Solid Mechanics applications use isoparametric elements, where the element topology and the primary unknowns use the same order of approximation (that is, they are interpolated using shape functions of the same polynomial degree).

Simcenter STAR-CCM+ offers 2D linear, 3D linear, and 3D quadratic Lagrange elements [947]. The unknowns are stored at element nodes. Quadratic elements increase accuracy by adding mid-side nodes between the corner nodes at each edge.

2D Linear Elements
Triangle

Quad

3D Linear Elements
Tet4

Wedge6

Hex8

Pyramid5

3D Quadratic Elements
Tet10

Wedge15

Hex20

Pyramid13

Consider an element with n nodes. It is convenient to define a local coordinate system, so that the position of any point within the element can be defined using local coordinates ξ.

If ξP is the position vector of a point P in the local coordinate system, the value of u at point P can then be written as:

Figure 1. EQUATION_DISPLAY
u(ξP)=NM(ξP)uM
(4803)
where:
  • the index M=1,...,n identifies the element nodes
  • uM=u(ξM) is the value of u at the node M
  • NM is an H1 Lagrange shape function, which determines the contribution of the nodal value uM to u
  • Eqn. (4803) and all following equations use Einstein notation, which implies summation over repeated indices. For example, NMuMM=1nNMuM

If M and N are two element nodes, with MN, NM is defined so that:

Figure 2. EQUATION_DISPLAY
NM(ξM)=1NM(ξN)=0
(4804)
The shape functions for linear tetrahedral and hexahedral elements are described below. The local coordinate system is defined using natural coordinates:
Figure 3. EQUATION_DISPLAY
ξ={ξ1ξ2ξ3}
(4805)
Linear Tetrahedron (Tet4)
In tetrahedral elements, the local coordinates are 0ξi1:

The nodal shape functions at a point of coordinates (ξ1,ξ2,ξ3) are simply:
Figure 4. EQUATION_DISPLAY
N1=ξ1N2=ξ2N3=ξ3N4=1ξ1ξ2ξ3
(4806)
which correspond to the barycentric coordinates.
Linear Hexahedron (Hex8)
In hexahedral elements, the local coordinates are 1ξi1:

The nodal shape functions at a point of coordinates (ξ1,ξ2,ξ3) are:
Figure 5. EQUATION_DISPLAY
NM(ξi)=18(1+ξiMξi);M=1,...,8
(4807)
Linear hexahedra are enriched with bubble degrees of freedom, to overcome locking phenomena. For example, the linear shape functions Eqn. (4807) do not provide enough mode shapes to approximate shear and bending in Solid Mechanics applications, causing the elements to be overly stiff. The stiffening effect worsens for high aspect ratios and skewed element shapes. To overcome locking, Simcenter STAR-CCM+ adds three additional vectors uoi (that is, 9 internal, or bubble, degrees of freedom) to the nodal quantities uM:
Figure 6. EQUATION_DISPLAY
u(ξi)=NM(ξi)uM+uoi(1ξi2);  i=1,2,3;M=1,...,8;
(4808)
The accuracy of the quadratic Hex20 element is higher than the accuracy of the linear Hex8 element with bubble functions. The Hex20 is also insensitive to high aspect ratios and skewness. Tet4 elements are stiff in bending and shear and their behavior cannot be improved with the use of bubble functions.

From Local to Global: Parametric Mapping

Local-to-global mapping between the parent domain and the global physical domain ensures continuity across adjacent elements.



Shape Function Derivatives

The derivatives of the variable u with respect to the undeformed coordinates X are related to the nodal quantities uM through:

Figure 7. EQUATION_DISPLAY
uX=NMXuM
(4809)

The derivatives of the shape functions with respect to the undeformed physical coordinates are determined from the derivatives of the shape functions with respect to the natural coordinates through:

Figure 8. EQUATION_DISPLAY
NMX=J1NMξ
(4810)

where:

Figure 9. EQUATION_DISPLAY
NMξ=(NMξ1NMξ2NMξ3);NMX=(NMX1NMX2NMX3)
(4811)

and J1 is the inverse of the Jacobian transformation, J:

Figure 10. EQUATION_DISPLAY
J=[X1ξ1X1ξ2X1ξ3X2ξ1X2ξ2X2ξ3X3ξ1X3ξ2X3ξ3]
(4812)