Finite Element Methods

Similar documents
Scientific Computing I

Lehrstuhl Informatik V. Lehrstuhl Informatik V. 1. solve weak form of PDE to reduce regularity properties. Lehrstuhl Informatik V

Finite-Elements Method 2

The Finite Element Method for the Wave Equation

6 Non-homogeneous Heat Problems

Algorithms for Scientific Computing

1 Discretizing BVP with Finite Element Methods.

A brief introduction to finite element methods

AMS 529: Finite Element Methods: Fundamentals, Applications, and New Trends

Chapter 1: The Finite Element Method

Chapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs

A Hybrid Method for the Wave Equation. beilina

Question 9: PDEs Given the function f(x, y), consider the problem: = f(x, y) 2 y2 for 0 < x < 1 and 0 < x < 1. x 2 u. u(x, 0) = u(x, 1) = 0 for 0 x 1

(L, t) = 0, t > 0. (iii)

Numerical Solutions to Partial Differential Equations

Lecture 9 Approximations of Laplace s Equation, Finite Element Method. Mathématiques appliquées (MATH0504-1) B. Dewals, C.

The Closed Form Reproducing Polynomial Particle Shape Functions for Meshfree Particle Methods

Applications of the Maximum Principle

MA 201: Method of Separation of Variables Finite Vibrating String Problem Lecture - 11 MA201(2016): PDE

Math 4263 Homework Set 1

MATH34032 Mid-term Test 10.00am 10.50am, 26th March 2010 Answer all six question [20% of the total mark for this course]

Finite Element Method for Ordinary Differential Equations

Finite Difference and Finite Element Methods

Fundamental Solutions and Green s functions. Simulation Methods in Acoustics

FINITE ELEMENT METHOD: APPROXIMATE SOLUTIONS

Introduction to Finite Element Method

Applied/Numerical Analysis Qualifying Exam

Numerical Analysis of Differential Equations Numerical Solution of Elliptic Boundary Value

A very short introduction to the Finite Element Method

A proof for the full Fourier series on [ π, π] is given here.

Lecture 1. Finite difference and finite element methods. Partial differential equations (PDEs) Solving the heat equation numerically

Multigrid finite element methods on semi-structured triangular grids

A truly meshless Galerkin method based on a moving least squares quadrature

Chapter 3 Variational Formulation & the Galerkin Method

PIECEWISE LINEAR FINITE ELEMENT METHODS ARE NOT LOCALIZED

Chapter 12. Partial di erential equations Di erential operators in R n. The gradient and Jacobian. Divergence and rotation

1 Compact and Precompact Subsets of H

Vectors in Function Spaces

Spotlight on Laplace s Equation

Simple Examples on Rectangular Domains

Scientific Computing WS 2017/2018. Lecture 18. Jürgen Fuhrmann Lecture 18 Slide 1

1. Let a(x) > 0, and assume that u and u h are the solutions of the Dirichlet problem:

Scientific Computing

Partial differential equation for temperature u(x, t) in a heat conducting insulated rod along the x-axis is given by the Heat equation:

Math 5520 Homework 2 Solutions

Convergence for periodic Fourier series

LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES)

FEM Convergence for PDEs with Point Sources in 2-D and 3-D

Numerical Solution I

u xx + u yy = 0. (5.1)

Hilbert Spaces: Infinite-Dimensional Vector Spaces

CONVERGENCE THEORY. G. ALLAIRE CMAP, Ecole Polytechnique. 1. Maximum principle. 2. Oscillating test function. 3. Two-scale convergence

ON NUMERICAL METHODS FOR ELLIPTIC TRANSMISSION/BOUNDARY VALUE PROBLEMS

INTRODUCTION TO FINITE ELEMENT METHODS

Basic Concepts of Adaptive Finite Element Methods for Elliptic Boundary Value Problems

Resources. Introduction to the finite element method. History. Topics

Math Theory of Partial Differential Equations Lecture 3-2: Spectral properties of the Laplacian. Bessel functions.

Finite Difference Methods for Boundary Value Problems

Computational Methods for Engineering Applications II. Homework Problem Sheet 4

ERROR IN LINEAR INTERPOLATION

Numerical Methods for Partial Differential Equations

MECh300H Introduction to Finite Element Methods. Finite Element Analysis (F.E.A.) of 1-D Problems

Chapter 4: Interpolation and Approximation. October 28, 2005

In this chapter we study elliptical PDEs. That is, PDEs of the form. 2 u = lots,

Gaussian Processes. Le Song. Machine Learning II: Advanced Topics CSE 8803ML, Spring 2012

Diffusion on the half-line. The Dirichlet problem

Chapter 1 Foundations of Elliptic Boundary Value Problems 1.1 Euler equations of variational problems

13 PDEs on spatially bounded domains: initial boundary value problems (IBVPs)

Iterative Methods for Linear Systems

arxiv: v1 [math.na] 1 May 2013

Elements of linear algebra

Strauss PDEs 2e: Section Exercise 4 Page 1 of 6

AM 205: lecture 14. Last time: Boundary value problems Today: Numerical solution of PDEs

[2] (a) Develop and describe the piecewise linear Galerkin finite element approximation of,

Convergence Order Studies for Elliptic Test Problems with COMSOL Multiphysics

DRAFT: April 28, 2008

Section 12.6: Non-homogeneous Problems

Notes for CS542G (Iterative Solvers for Linear Systems)

CIV-E1060 Engineering Computation and Simulation Examination, December 12, 2017 / Niiranen

Time-dependent variational forms

Preconditioned space-time boundary element methods for the heat equation

Homework for Math , Fall 2016

Chapter 6. Finite Element Method. Literature: (tiny selection from an enormous number of publications)

How to solve the stochastic partial differential equation that gives a Matérn random field using the finite element method

PDEs in Image Processing, Tutorials

TMA4220: Programming project - part 1

v(x, 0) = g(x) where g(x) = f(x) U(x). The solution is where b n = 2 g(x) sin(nπx) dx. (c) As t, we have v(x, t) 0 and u(x, t) U(x).

Chapter 10. Numerical Methods

Examples of the Fourier Theorem (Sect. 10.3). The Fourier Theorem: Continuous case.

CRITERIA FOR SELECTION OF FEM MODELS.

Introduction of Partial Differential Equations and Boundary Value Problems

UNIVERSITY OF MANITOBA

Lucio Demeio Dipartimento di Ingegneria Industriale e delle Scienze Matematiche

MATH 333: Partial Differential Equations

Boundary Value Problems and Iterative Methods for Linear Systems

1 Wave Equation on Finite Interval

A Robust Preconditioner for the Hessian System in Elliptic Optimal Control Problems

Lecture 3: Function Spaces I Finite Elements Modeling. Bruno Lévy

Green s Functions and Distributions

Method of Separation of Variables

Transcription:

Solving Operator Equations Via Minimization We start with several definitions. Definition. Let V be an inner product space. A linear operator L: D V V is said to be positive definite if v, Lv > for every v in D. If v, Lv for every v D, then L is said to be positive semidefinite. The first step is to show that some operator equations may be solved by minimizing a related quadratic functional. Theorem. Suppose V is a real inner product space, and K : V V is a self-adjoint positive definite linear operator. Suppose the operator equation K[u] = f has a solution. Then this solution, call it u, is unique. Moreover, if we define an associated quadratic functional Q[u] := u, K[u] f, u () for all admissable u V, then Q[u ] < Q[u] for all admissable u u. Proof. To establish uniqueness of solution, suppose u, v V are such that K[u] = K[v] = f. Then u v, K[u v] = u v, K[u] K[v] = u v, f f = u v, =. By positive definiteness, u = v.

Now note that, for any admissible u Q[u] = u, K[u] u, f = u, K[u] u, k[u ] = u, K[u] u, K[u ] u, K[u ] = u, K[u u ] u, K[u] = u, K[u u ] { u, K[u u ] + u, K[u ] K[u] } u, K[u] = u u, K[u u ] u, K[u ]. But u u, K[u u ] and achieves its minimum value zero when and only when u = u. Thus, Q also is minimized (uniquely) when u = u. Example : Consider the ODE/BVP y = f (x), < x < l, subject to BCs y() = = y(l). () We are working here with the operator K[y] = y, the one-dimensional negative Laplacian, subject to homogeneous Dirchlet BCs, so it is self-adjoint and positive definite. To see the latter of these assertions, note that for each φ that is twice-differentiable in (, l) with φ L (, l) (the natural inner product space for us to work in), we have l φ, K[φ] = φ(x)φ (x) dx = φ(x)φ (x) l l + where, denotes the -dimensional Dirichlet inner product [φ (x)] dx = φ, φ, l φ, ψ := φ (x)ψ (x) dx. (3) Note that, is not truly an inner product in many contexts, as one can have φ, φ = with φ. However, with our BCs, φ, φ = implies φ. Thus, the solution (if one exists) of our problem is the function y minimizing Q[y] := y, Ky f, y = y, y f, y.

It is interesting to note that, while the operator K requires its arguments to be (at least piecewise) twice differentiable, Q (in its formulation involving the Dirichlet inner product) only requires arguments (admissible functions) from A = { ν: [, l] R ν is continuous, ν is PWC and bdd., and ν() = = ν(l) }. As was the case when we solved IBVPs using Fourier series, if we solve () by a process which minimizes the associated functional Q, the result may be a weak solution. Example : Poisson Problem in the Plane with Dirichlet BCs Consider the problem u = f, (x, y), with u = for (x, y). Here we assume that is a bounded, connected region in R n (say, n = or 3) with piecewise smooth boundary. Working under the inner product of L (), our operator K = (with the prescribed BCs) is once again self-adjoint and positive definite. The argument for the latter is similar to the above φ, K[φ] = φ(x) φ(x) dx = = φ(x) dx = φ, φ, φ(x) ( φ n)(x) dσ + φ(x) φ(x) dx where the n-dimensional Dirichlet inner product (truly an inner product because of the BCs) is given by φ, ψ := φ(x) ψ(x) dx (4) Hence, the solution to our problem, when it exists, is the unique minimizer u of the functional Q[u] := u, Ku f, u = u, u f, u. Note that, in the case R, Q[u] = ( u x + ) u y f u dx dy and is defined (at least) for all functions u which are piecewise C in and satisfy the homogeneous Dirichlet BCs. 3

FEM: General Rayleigh-Ritz Approach We have established that a linear operator equation K[u] = f subject to homogeneous Dirichlet BCs, with K self-adjoint and positive definite, may be recast in the variational form min u D Q[u], (5) where Q is a quadratic functional, and this minimization occurs over some collection D of admissible functions in a larger inner product space V (probably an L space). Even though the admissible functions D (generally) do not constitute the full space, D is (usually) an infinite-dimensional subspace. The idea behind the Rayleigh-Ritz approach to FEM is to severely restrict the scope of our search for a minimizer. Instead of searching throughout D, we limit our search to admissible functions lying in some finite-dimensional subspace W. In particular, we may fix a choice of independent functions φ, φ,..., φ n D and take W = span({φ,..., φ n }). We then look to solve min Q[u]. u W (6) Since each u W has the form n u(x) = c j φ j (x), j= (6) is really about choosing the best coefficients c = (c,..., c n ). In an abuse of notation, we now write our quadratic functional as if the input is c: Q(c) := u, K[u] f, u, with u = u(x; c) = n c j φ j (x). j= Plugging the latter expression for u into the functional yields Q(c) = c i φ i, K [ ] c j φ j f, c i φ i i j i = c i c j φi, K[φ j ] c i f, φi i j i = ct Mc c T b, (7) where the stiffness matrix M = (m ij ) and load vector b = (b,..., b n ) are given by m ij = φ i, K[φ j ], b i = f, φ i, (8) for i =,..., n, and j =,..., n. The problem of minimizing a quadratic functional (7) may be a new one to us, but it is a elementary problem in optimization. The stiffness matrix M, like the For short blurbs about Rayleigh and Ritz, see Stanoyevitch, p. 46. 4

underlying operator K, is symmetric (self-adjoint) and positive definite (so nonsingular), and the minimizer is known to be the unique solution of Mc = b, that is, c = M b. Example 3: Hat Function Basis for One-Dimensional ODEs/BVPs It seems one of the most common bases to use in the case of a -dimensional ODEs/BVP on [a, b] with homogeneous Dirichlet BCs is one consisting of hat functions. Let us take the (possibly non-uniform) partition a x φ 3 (x) x x x 3 x 4 x 5... b x n+ x a = x < x < x < < x n+ = b, with h k = x k+ x k for k =,..., n, and for j =,,..., n let φ j (x) be the continuous function which is linear on each subinterval [x k, x k+ ] and whose values at mesh points are given by φ j (x m ) = δ jm (Kronecker delta). A plot of φ 4 (x) appears above at right. Now recall that the problem () y = f (x), < x < l, subject to BCs y() = = y(l), may be solved by minimizing the functional Q[ν] := ν, ν f, ν = over the set of admissible functions l ( ) dν f (x)ν(x) dx dx, A = { ν: [, l] R ν is continuous, ν is PWC and bdd., and ν() = = ν(l) }. The piecewise linear Rayleigh-Ritz method assumes a partition of the interval [, l] and seeks to minimize our functional over the finite-dimensional collection of piecewise linear functions W = span({φ, φ,..., φ n }). That is, we take as our approximate solution ỹ(x) = n c j φ j (x), j= where the c j s are the entries of the vector c which satisfies Mc = b, with M = (m ij ) and b having entries given by m ij = φ i, φ j = φi, φ j = l φ i (x)φ j (x) dx = = +, h i h i i = j,, h min{i,j} j i =,, j i >, b i = xi f, φ i = = f (x)(x x i ) dx + xi+ f (x)(x i+ x) dx. () h i x i h i x i 5 (9)

Some remarks: The matrix M is tridiagonal (sparse), which is highly desirable, as the number of elements (in this case, subintervals of the original domain [, l]) may typically be quite large. This sparsity is owing to the fact that the support of the basis functions is fairly small and overlaps with the support of just two other basis functions. In settings where more elaborate basis functions are used, this property is still desirable. It is generally wise to place more nodes in regions where the (known) coefficient functions of the differential equation undergo more activity. When max i h i is small, we might use the trapezoid rule to evaluate the integrals in () for the b i s, we get b i [ + f (x i )h i ]h i + [ f (x i )h i + ]h i = h i h i f (x i)(h i + h i ). After Stanoyevitch, p. 435ff, apply these ideas to () with l = and ( ( )) ( ) f (x) = sin sign (x.5) exp exp (x 4 x.5.5 +.3 4 x.5..5) +.. The code for doing so is found in the file stanop436.m. Some new Octave/Matlab commands of note: diff(), sign(), end as an index to a vector The first few lines of the code contain a choice between two types of meshes, one that is uniform, and one that is adaptive, being rather coarse where f is well behaved but much finer in the region.35 x.65 where f is highly oscillatory. There is also a switch controlling whether the elements of the load vector b are computed using accurate numerical integration or with the trapezoid rule approximation mentioned above. Results are quite different between the two methods using the uniform mesh, but about identical for the adaptive mesh. 6