Series: Finite Element MethodShape Functions on Reference Elements

The Line3 Element

The Line3 element is a 3-node quadratic element on [0,1][0, 1]. The nodes are placed at x^0=0\hat{x}_0 = 0, x^1=1\hat{x}_1 = 1, and x^2=12\hat{x}_2 = \tfrac{1}{2}: the first two sit at the endpoints, as in Line2; the third is the midpoint.

In the library, it is implemented in elements/line3.py by the class Line3.

The three shape functions are the quadratic Lagrange basis polynomials associated with these nodes:

N0(x^)=(1x^)(12x^),N1(x^)=x^(2x^1),N2(x^)=4x^(1x^).N_0(\hat{x}) = (1 - \hat{x})(1 - 2\hat{x}), \qquad N_1(\hat{x}) = \hat{x}(2\hat{x} - 1), \qquad N_2(\hat{x}) = 4\hat{x}(1 - \hat{x}).

Each satisfies Ni(x^j)=δijN_i(\hat{x}_j) = \delta_{ij}. The endpoint functions N0N_0 and N1N_1 are negative in the interior of the interval — N0N_0 dips below zero near x^=1\hat{x} = 1 and N1N_1 near x^=0\hat{x} = 0 — while the midpoint function N2N_2 has the characteristic bubble shape, reaching its maximum value of one at x^=12\hat{x} = \tfrac{1}{2}. The three functions sum to one everywhere.

The reference-domain gradients are:

dN0dx^=4x^3,dN1dx^=4x^1,dN2dx^=48x^.\frac{\mathrm{d}N_0}{\mathrm{d}\hat{x}} = 4\hat{x} - 3, \qquad \frac{\mathrm{d}N_1}{\mathrm{d}\hat{x}} = 4\hat{x} - 1, \qquad \frac{\mathrm{d}N_2}{\mathrm{d}\hat{x}} = 4 - 8\hat{x}.

Shape functions of the Line3 element

Because Line3 uses the same quadratic Lagrange basis as the 1D building blocks of the Quad9 and Hex8 elements, its shape functions also appear as factors in the tensor-product constructions for those higher-dimensional elements.