HOME

TheInfoList



OR:

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 : -\nabla^2 u = f 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 : u \approx u^h = u_1\varphi_1+\cdots+u_n\varphi_n. The coefficients are determined so that the error in the approximation is orthogonal to each basis function : : \int_ \varphi_i\cdot f \, dx = -\int_ \varphi_i\nabla^2u^h \, dx = -\sum_j\left(\int_ \varphi_i\nabla^2\varphi_j\,dx\right)\, u_j = \sum_j\left(\int_ \nabla\varphi_i\cdot\nabla\varphi_j\, dx\right)u_j. 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 : \mathbf A_ = \int_ \nabla\varphi_i\cdot\nabla\varphi_j\, dx. By defining the vector with components \mathbf F_i = \int_\Omega\varphi_i f\,dx, 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 : -\sum_\frac\left(a^\frac\right)= f where \mathbf A(x) = a^(x) is a positive-definite matrix defined for each point in the domain. We impose the Robin boundary condition : -\sum_\nu_k a^\frac = c(u-g), where is the component of the unit outward normal vector in the -th direction. The system to be solved is : \sum_j\left(\sum_\int_\Omega a^\frac\fracdx+\int_c\varphi_i\varphi_j\, ds\right)u_j = \int_\Omega\varphi_i f\, dx+\int_c\varphi_i g\, ds, 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 : B ,v= (f,v) for all functions in . Then the stiffness matrix for this problem is : \mathbf A_ = B varphi_j,\varphi_i


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 : \mathbf A^_ = \int_\nabla\varphi_i\cdot\nabla\varphi_j\, dx. 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 : \mathbf D = \left beginx_3 - x_2 & x_1 - x_3 & x_2 - x_1 \\ y_3 - y_2 & y_1 - y_3 & y_2 - y_1\end\right Then the element stiffness matrix is : \mathbf A^ = \frac. 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