Finite Element Method (FEM)
The finite element approach is based on the discretization of the domain into a set of finite elements, which are usually triangles or quadrilaterals in a two dimensions and tetrahedral, hexahedra, pyramids or wedges in three dimensions, and using variational principles to solve the problem by minimizing an associated error function or residual.
The unknown variables are approximated over the domain using interpolation procedure in terms of nodal values and set of known functions called shape functions. This approximation is substituted into the governing (conservation) equations in their differential form and the resulting error (residual) is minimized in an average sense using a weighted residual approach.
The variational or weighted residual formulations transforms the governing equations into an integral form called the global weak form. The weak form when applied to each finite element results in a set of discrete equations in terms of the nodal unknown which can then be solved by a number of methods.
In this formulation the governing differential equation for a quantity is expressed as:
- is a differential operator with its associated initial and boundary conditions.
- is the convective flux vector.
- is the diffusive flux vector.
- is the contribution due to a source.
An approximate solution of the above equation is assumed, having the form:
- is the prescribed shape (interpolation) function.
- is the unknown value of the variable at a discrete spatial point .
Finite element method requires transformation of the governing differential equation into an integral equation over the domain. This is accomplished through approaches such as weighted residual formulation and least squares formulation.
A few of the approaches used to convert the differential equations into their weak integral forms are discussed below.
Weighted Residual Formulation
Substitution of the approximated form into the governing equations results in an error or residual function denoted by and expressed as:
In order to determine the nodal values , the inner product of the residual with a prescribed weighted function is set to zero
The above equation is called the strong form of the weighted residual method. In many cases it is possible to perform integration by parts and obtain the weak form of the equation which contains lower order derivatives than the ones occurring in and has reduced continuity requirement for the weighted function. The weak form is expressed as:
where , and are the differential operators with lower order derivatives than and represents the domain and the boundary of the domain.
- Point Collocation: where is the Dirac-Delta function. This is analogous to the finite difference approach.
- Subdomain Collocation: for the subdomain (element) and zero elsewhere. This leads to a finite volume formulation.
- Galerkin method: where is a shape function assumed over an element.
- Petrov Galerkin method: . This represents a generalization of all methods except the Galerkin method.
Least Squares Formulation
The least square approach is based on minimizing the residual function in a least square sense. A least square function is constructed by taking the inner product of residual function with itself and defined as:
Using variational principles leads to a least square weak form written as:
Galerkin Least Squares Formulation
Galerkin least square approach is an extension of the Galerkin weighted residual method and the least square approach. It uses stabilizing terms obtained by minimizing the residual of the governing equation. The use of variational principles on the resulting equations results in the following formulation:
- represents the Galerkin approximation.
- represents the least squares stabilization.
- represents the inner dot product of the comma separated terms.
- represents the stabilization parameter.