The Line3 Element
The Line3 element is a 3-node quadratic element on . The nodes are placed at , , and : 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:
Each satisfies . The endpoint functions and are negative in the interior of the interval — dips below zero near and near — while the midpoint function has the characteristic bubble shape, reaching its maximum value of one at . The three functions sum to one everywhere.
The reference-domain gradients are:
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.