In the
finite element method
Finite element method (FEM) is a popular method for numerically solving differential equations arising in engineering and mathematical modeling. Typical problem areas of interest include the traditional fields of structural analysis, heat tran ...
for the numerical solution of elliptic
partial differential equations
In mathematics, a partial differential equation (PDE) is an equation which involves a multivariable function and one or more of its partial derivatives.
The function is often thought of as an "unknown" that solves the equation, similar to how ...
, the stiffness matrix is a
matrix
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the m ...
that represents the
system of linear equations
In mathematics, a system of linear equations (or linear system) is a collection of two or more linear equations involving the same variable (math), variables.
For example,
: \begin
3x+2y-z=1\\
2x-2y+4z=-2\\
-x+\fracy-z=0
\end
is a system of th ...
that must be solved in order to ascertain an approximate solution to the differential equation.
The stiffness matrix for the Poisson problem
For simplicity, we will first consider the
Poisson problem
:
on some domain , subject to the boundary condition on the boundary of . To discretize this equation by the
finite element method
Finite element method (FEM) is a popular method for numerically solving differential equations arising in engineering and mathematical modeling. Typical problem areas of interest include the traditional fields of structural analysis, heat tran ...
, one chooses a set of ''
basis functions'' defined on which also vanish on the boundary. One then approximates
:
The coefficients are determined so that the error in the approximation is orthogonal to each basis function :
:
as a consequence of the homogenous
Dirichlet boundary conditions. The stiffness matrix is the -element
square matrix
In mathematics, a square matrix is a Matrix (mathematics), matrix with the same number of rows and columns. An ''n''-by-''n'' matrix is known as a square matrix of order Any two square matrices of the same order can be added and multiplied.
Squ ...
defined by
:
By defining the vector with components
the coefficients are determined by the linear system . The stiffness matrix is
symmetric, i.e. , so all its
eigenvalue
In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
s are real. Moreover, it is a strictly
positive-definite matrix, so that the system always has a unique solution. (For other problems, these nice properties will be lost.)
Note that the stiffness matrix will be different depending on the computational grid used for the domain and what type of finite element is used. For example, the stiffness matrix when piecewise quadratic finite elements are used will have more degrees of freedom than piecewise linear elements.
The stiffness matrix for other problems
Determining the stiffness matrix for other PDEs follows essentially the same procedure, but it can be complicated by the choice of boundary conditions. As a more complex example, consider the
elliptic equation
:
where
is a positive-definite matrix defined for each point in the domain. We impose the
Robin boundary condition
:
where is the component of the unit outward
normal vector in the -th direction. The system to be solved is
:
as can be shown using an analogue of
Green's identity. The coefficients are still found by solving a system of linear equations, but the matrix representing the system is markedly different from that for the ordinary Poisson problem.
In general, to each scalar
elliptic operator
In the theory of partial differential equations, elliptic operators are differential operators that generalize the Laplace operator. They are defined by the condition that the coefficients of the highest-order derivatives be positive, which im ...
of order , there is associated a
bilinear form
In mathematics, a bilinear form is a bilinear map on a vector space (the elements of which are called '' vectors'') over a field ''K'' (the elements of which are called '' scalars''). In other words, a bilinear form is a function that is linea ...
on the
Sobolev space , so that the
weak formulation of the equation is
:
for all functions in . Then the stiffness matrix for this problem is
:
Practical assembly of the stiffness matrix
In order to implement the finite element method on a computer, one must first choose a set of basis functions and then compute the integrals defining the stiffness matrix. Usually, the domain is
discretized by some form of
mesh generation, wherein it is divided into non-overlapping
triangles or
quadrilaterals, which are generally referred to as elements. The basis functions are then chosen to be
polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
s of some order within each element, and continuous across element boundaries. The simplest choices are
piecewise linear for triangular elements and piecewise bilinear for rectangular elements.
The element stiffness matrix for element is the matrix
:
The element stiffness matrix is zero for most values of and , for which the corresponding basis functions are zero within . The full stiffness matrix is the sum of the element stiffness matrices. In particular, for basis functions that are only supported locally, the stiffness matrix is
sparse.
For many standard choices of basis functions, i.e. piecewise linear basis functions on triangles, there are simple formulas for the element stiffness matrices. For example, for piecewise linear elements, consider a triangle with vertices , , , and define the 2×3 matrix
:
Then the element stiffness matrix is
:
When the differential equation is more complicated, say by having an inhomogeneous diffusion coefficient, the integral defining the element stiffness matrix can be evaluated by
Gaussian quadrature
In numerical analysis, an -point Gaussian quadrature rule, named after Carl Friedrich Gauss, is a quadrature rule constructed to yield an exact result for polynomials of degree or less by a suitable choice of the nodes and weights for .
Th ...
.
The
condition number of the stiffness matrix depends strongly on the quality of the numerical grid. In particular, triangles with small angles in the finite element mesh induce large eigenvalues of the stiffness matrix, degrading the solution quality.
References
*
*
*
*
* {{citation , first1=O.C. , last1=Zienkiewicz , author1-link=Olgierd Zienkiewicz , first2=R.L. , last2=Taylor , first3=J.Z. , last3=Zhu , year=2005 , title=The Finite Element Method: Its Basis and Fundamentals , publisher=Elsevier Butterworth-Heinemann , edition=6th , location=Oxford, UK , isbn=978-0750663205
Applied mathematics
Numerical analysis