HOME

TheInfoList



OR:

In the
finite element method The 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 ...
for the numerical solution of elliptic
partial differential equations In mathematics, a partial differential equation (PDE) is an equation which imposes relations between the various partial derivatives of a multivariable function. The function is often thought of as an "unknown" to be solved for, similarly to ...
, the stiffness matrix is a
matrix Matrix most commonly refers to: * ''The Matrix'' (franchise), an American media franchise ** '' The Matrix'', a 1999 science-fiction action film ** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchi ...
that represents the
system of linear equations In mathematics, a system of linear equations (or linear system) is a collection of one or more linear equations involving the same variables. For example, :\begin 3x+2y-z=1\\ 2x-2y+4z=-2\\ -x+\fracy-z=0 \end is a system of three equations in t ...
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 Poisson's equation is an elliptic partial differential equation of broad utility in theoretical physics. For example, the solution to Poisson's equation is the potential field caused by a given electric charge or mass density distribution; with ...
: -\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 The 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 ...
, one chooses a set of ''
basis function In mathematics, a basis function is an element of a particular basis for a function space. Every function in the function space can be represented as a linear combination of basis functions, just as every vector in a vector space can be repres ...
s'' 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_\Omega \varphi_i\cdot f \, dx = -\int_\Omega \varphi_i\nabla^2u^h \, dx = -\sum_j\left(\int_\Omega \varphi_i\nabla^2\varphi_j\,dx\right)\, u_j = \sum_j\left(\int_\Omega \nabla\varphi_i\cdot\nabla\varphi_j\, dx\right)u_j. The stiffness matrix is the -element
square matrix In mathematics, a square matrix is a 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. Square matrices are often ...
defined by : \mathbf A_ = \int_\Omega\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 of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue, often denote ...
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 geometry, a normal is an object such as a line, ray, or vector that is perpendicular to a given object. For example, the normal line to a plane curve at a given point is the (infinite) line perpendicular to the tangent line to the curve ...
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 imp ...
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 In mathematics, a Sobolev space is a vector space of functions equipped with a norm that is a combination of ''Lp''-norms of the function together with its derivatives up to a given order. The derivatives are understood in a suitable weak sense ...
, 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 an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An exampl ...
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, a quadrature rule is an approximation of the definite integral of a function, usually stated as a weighted sum of function values at specified points within the domain of integration. (See numerical integration for mor ...
. The
condition number In numerical analysis, the condition number of a function measures how much the output value of the function can change for a small change in the input argument. This is used to measure how sensitive a function is to changes or errors in the inpu ...
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