concepts and algorithms of scientific and visual
play

Concepts and Algorithms of Scientific and Visual Computing Finite - PowerPoint PPT Presentation

Concepts and Algorithms of Scientific and Visual Computing Finite Element Method CS448J, Autumn 2015, Stanford University Dominik L. Michels Finite Element Method (FEM) We consider the partial differential equation 2 x u ( x , y ) +


  1. Concepts and Algorithms of Scientific and Visual Computing –Finite Element Method– CS448J, Autumn 2015, Stanford University Dominik L. Michels

  2. Finite Element Method (FEM) We consider the partial differential equation ∂ 2 x u ( x , y ) + ∂ 2 y u ( x , y ) = f ( x , y ) with ( x , y ) ∈ G and u ( x , y ) = 0 for ( x , y ) ∈ ∂ G . In the following, we develop an exemplary finite element method in order to solve the upper equation. First, we formulate the corresponding variational problem. For that, we multiply the differential equation with smooth functions v ( x , y ) which vanish at the boundary, and integrate over G : � � � � ( ∂ 2 x u + ∂ 2 y u ) v d x d y = f v d x d y . G G According to Gauß’s theorem, this is equivalent to a ( u , v ) = b ( v ) with � � � � a ( u , v ) = − ( ∂ x u ∂ x v + ∂ y u ∂ y v )d x d y , b ( v ) = f v d x d y . G G

  3. Triangulation We decompose G is small parts using an appropriate triangulation; e.g. for the unit square we simply define sampling points x µ = µ ∆ x , y ν = ν ∆ y with µ,ν ∈ { 0 ,..., N } and ∆ x = ∆ y = 1 / N =: h .

  4. Triangulation G 4 µ ν 5 3 y ν 6 2 1 x µ Figure : Illustration of the triangulation of a squared surface.

  5. Basis Functions For each triangle we formulate a basis function, which is typically of polynomial kind. We employ a simple linear approach u ( x , y ) ≈ ˜ u ( x , y ) = a 1 + a 2 x + a 3 y . The basis functions should provide a continuous transition from one triangle to another, so that the overall solution can be continuous. The basis coefficients a 1 , a 2 , a 3 be uniquely determined using the function values u 1 , u 2 , u 3 at the triangle’s corners. Summation over all triangles leads to N − 1 N − 1 � � ˜ u ( x , y ) = α µ,ν u µ,ν ( x , y ) , µ =1 ν =1 in which the basis coefficients α must be determined and u µ,ν represents a linear function over every triangle.

  6. Basis Functions G µ ν y ν x µ Figure : Illustration of the pyramid-shaped basis functions.

  7. Basis Functions We set up u µ,ν ( x k , y l ) = 1 for k = µ and l = ν , and u µ,ν ( x k , y l ) = 0 for all other sampling points of G µ,ν . Moreover, u µ,ν ( x , y ) = 0 for ( x , y ) � G µ,ν . We illustrate the computation of u µ,ν over G µ,ν in the case of a triangular of first kind. From u µ,ν ( x , y ) = a 1 + a 2 x + a 3 y follows u µ,ν = 1 for x = x µ , y = y ν , u µ,ν = 0 for x = x µ − 1 , y = y ν − 1 , and u µ,ν = 0 for x = x µ , y = y ν − 1 , leading to a 1 = 1 − ν, a 2 = 0 , a 3 = 1 / h . Hence � y � u µ,ν ( x , y ) = 1 + h − ν .

  8. Basis Functions Similarly, we obtain � x � y � � u µ,ν ( x , y ) = 1 − h − µ + h − ν , (Case 2) � x � u µ,ν ( x , y ) = 1 − h − µ , (Case 3) � y � u µ,ν ( x , y ) = 1 − h − ν , (Case 4) � x � y � � u µ,ν ( x , y ) = 1 + h − µ + h − ν , (Case 5) � x � u µ,ν ( x , y ) = 1 + h − µ . (Case 6)

  9. Basis Coefficients We substitute ˜ u ( x , y ) for u ( x , y ) and u µ,ν ( x , y ) for v ( x , y ) into the variational formulation, so that we obtain the linear system N − 1 N − 1 � � α µ,ν a ( u µ,ν , u k , l ) = b ( u k , l ) µ =1 ν =1 with � � a ( u µ,ν , u k , l ) = ( ∂ x u µ,ν ∂ x u k , l + ∂ y u µ,ν ∂ y u k , l )d x d y G k , l and � � b ( u k , l ) = f u k , l d x d y . G k , l for k , l ∈ { 1 ,..., N − 1 } to determine the basis coefficients.

  10. Basis Coefficients Since the integration is performed over simple triangles, the integrals can easily be determined leading to h 2 (4 α k , l − 2 α k +1 , l − 2 α k − 1 , l ) h 2 1 2 for the portions caused by the partial derivatives with respect to x , and h 2 (4 α k , l − 2 α k , l +1 − 2 α k , l − 1 ) h 2 1 2 for the portions caused by the partial derivatives with respect to y . Furthermore, we simply obtain b ( u k , l ) ≈ f k , l V P in which V P = 1 3 6 1 2 h 2 denotes the volume of the pyramid leading to b ( u k , l ) ≈ f k , l h 2 .

  11. Solution Finally, this leads to the linear system 4 α k , l − α k +1 , l − α k − 1 , l − α k , l +1 − α k , l − 1 = h 2 f k , l , k , l ∈ { 1 ,..., N − 1 } , for the basis coefficients. After computation and substitution of the basis coefficients α , N − 1 N − 1 � � ˜ u ( x , y ) = α µ,ν u µ,ν ( x , y ) , µ =1 ν =1 is an explicit representation of an approximation of the final solution.

  12. Boundary Element Method (BEM) In contrast to the finite element method, the boundary element method only discretizes the boundary of a given surface or volume, so that the unknown variables are only located there. The partial differential equations are transformed to integral equations describing the considered phenomena on the whole domain. These equations are the discretized and solved analogously to the procedure in the finite element method. The number of notes is usually significantly smaller compared to the finite element and the finite difference methods. Instead, one obtains are usually dense and antisymmetric linear system, which sometimes impedes the solution process. Furthermore, the boundary element methods can be coupled easily with the finite element method (BEM-FEM coupling).

Recommend


More recommend