Weighted Residual Methods

Similar documents
Weighted Residual Methods

Galerkin Finite Element Model for Heat Transfer

Ritz Method. Introductory Course on Multiphysics Modelling

FINITE ELEMENT METHOD: APPROXIMATE SOLUTIONS

Chapter 3 Variational Formulation & the Galerkin Method

Finite-Elements Method 2

An Introductory Course on Modelling of Multiphysics Problems

Fundamental Solutions and Green s functions. Simulation Methods in Acoustics

Weak form of Boundary Value Problems. Simulation Methods in Acoustics

PART IV Spectral Methods

D(u(x)) = p(x). a i ϕ i (2.1) i=1

Electrodynamics PHY712. Lecture 3 Electrostatic potentials and fields. Reference: Chap. 1 in J. D. Jackson s textbook.

Chapter 1: The Finite Element Method

Numerical Analysis and Methods for PDE I

Introduction to Finite Element Method

Introduction. J.M. Burgers Center Graduate Course CFD I January Least-Squares Spectral Element Methods

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

Outline. 1 Boundary Value Problems. 2 Numerical Methods for BVPs. Boundary Value Problems Numerical Methods for BVPs

Lecture 24: Starting to put it all together #3... More 2-Point Boundary value problems

Numerical methods for PDEs FEM convergence, error estimates, piecewise polynomials

Alternative Boundary Condition Implementations for Crank Nicolson Solution to the Heat Equation

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

Problem set 3: Solutions Math 207B, Winter Suppose that u(x) is a non-zero solution of the eigenvalue problem. (u ) 2 dx, u 2 dx.

A brief introduction to finite element methods

Lucio Demeio Dipartimento di Ingegneria Industriale e delle Scienze Matematiche

Higher-order ordinary differential equations

Fast Numerical Methods for Stochastic Computations

Elements of linear algebra

Numerical Methods for Partial Differential Equations

1 Comparison of Kansa s method versus Method of Fundamental Solution (MFS) and Dual Reciprocity Method of Fundamental Solution (MFS- DRM)

Boundary-value Problems in Rectangular Coordinates

Course and Wavelets and Filter Banks

Concepts. 3.1 Numerical Analysis. Chapter Numerical Analysis Scheme

1 Separation of Variables

Consequences of Orthogonality

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

Section 12.6: Non-homogeneous Problems

Final: Solutions Math 118A, Fall 2013

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

ACM/CMS 107 Linear Analysis & Applications Fall 2017 Assignment 2: PDEs and Finite Element Methods Due: 7th November 2017

256 Summary. D n f(x j ) = f j+n f j n 2n x. j n=1. α m n = 2( 1) n (m!) 2 (m n)!(m + n)!. PPW = 2π k x 2 N + 1. i=0?d i,j. N/2} N + 1-dim.

Mathematical Methods - Lecture 9

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

Existence Theory: Green s Functions

In this worksheet we will use the eigenfunction expansion to solve nonhomogeneous equation.

FEniCS Course. Lecture 0: Introduction to FEM. Contributors Anders Logg, Kent-Andre Mardal

Scientific Computing I

Algorithms for Scientific Computing

IV. Transport Phenomena Lecture 18: Forced Convection in Fuel Cells II

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

Numerical Solutions to Partial Differential Equations

High Frequency Scattering by Convex Polygons Stephen Langdon

Finite Element Method for Ordinary Differential Equations

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

Homework for Math , Fall 2016

MATH 819 FALL We considered solutions of this equation on the domain Ū, where

Applications of the Maximum Principle

PROJECTION METHODS FOR DYNAMIC MODELS

Spectral Representation of Random Processes

Lecture Introduction

1. Differential Equations (ODE and PDE)

Steps in the Finite Element Method. Chung Hua University Department of Mechanical Engineering Dr. Ching I Chen

High Frequency Scattering by Convex Polygons Stephen Langdon

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

1 Discretizing BVP with Finite Element Methods.

Numerical Solution I

SPECTRAL METHODS: ORTHOGONAL POLYNOMIALS

Fixed point iteration and root finding

Model Reduction, Centering, and the Karhunen-Loeve Expansion

Adaptive Finite Element Methods Lecture Notes Winter Term 2017/18. R. Verfürth. Fakultät für Mathematik, Ruhr-Universität Bochum

Linear Models Review

Math 5520 Homework 2 Solutions

Variational Principles for Equilibrium Physical Systems

6 Non-homogeneous Heat Problems

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

Green s Functions and Distributions

Math 5587 Lecture 2. Jeff Calder. August 31, Initial/boundary conditions and well-posedness

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).

Variational Formulations

FINITE VOLUME METHOD: BASIC PRINCIPLES AND EXAMPLES

Mat1062: Introductory Numerical Methods for PDE

Chapter 6: Rational Expr., Eq., and Functions Lecture notes Math 1010

Math 201 Lecture 25: Partial Differential Equations: Introduction and Overview

Motivation: Sparse matrices and numerical PDE's

Index. C 2 ( ), 447 C k [a,b], 37 C0 ( ), 618 ( ), 447 CD 2 CN 2

General Variation of a Functional

Non-Intrusive Solution of Stochastic and Parametric Equations

5. The Indirect Approach To Domain Decomposition

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

Sect Properties of Real Numbers and Simplifying Expressions

Lecture 19: Heat conduction with distributed sources/sinks

LECTURE 3: DISCRETE GRADIENT FLOWS

Analysis III for D-BAUG, Fall 2017 Lecture 11

Contents. Prologue Introduction. Classical Approximation... 19

Simple Examples on Rectangular Domains

Midterm 2: Sample solutions Math 118A, Fall 2013

17 Source Problems for Heat and Wave IB- VPs

[y i α βx i ] 2 (2) Q = i=1

Vectors in Function Spaces

The Finite Element Method for the Analysis of Non-Linear and Dynamic Systems. Prof. Dr. Eleni Chatzi Lecture 1-20 September, 2017

Transcription:

Weighted Residual Methods Introductory Course on Multiphysics Modelling TOMASZ G. ZIELIŃSKI bluebox.ippt.pan.pl/ tzielins/ Table of Contents Problem definition. oundary-value Problem.................. oundary conditions.................... Weighted Residual Method. General idea......................... Approximation........................ Error functions........................4 Minimization of errors................... 4.5 System of algebraic equations.............. 4.6 Categories of WRM.................... 5 ODE example 6. A simple VP approached by WRM........... 6. Numerical solution..................... 7. Another numerical solution................ 8 Problem definition. oundary-value Problem Let be a domain with the boundary, and: L(.) be a (second order) differential operator defined on functions u(x), x, f f(x) be a known source term in, n n(x) be the unit vector normal to the boundary.

Weighted Residual Methods ICMM lecture oundary-value Problem Find u u(x)? satisfying PDE L(u) f in () and subject to (at least one of) the following boundary conditions u û on, x n ˆγ on, x n + ˆα u ˆβ on, () where û û(x), ˆγ ˆγ(x), ˆα ˆα(x), and ˆβ ˆβ(x) are known fields prescribed on adequate parts of the boundary Remarks: the boundary parts are mutually disjoint, i.e.,,, and, for f the PDE is called homogeneous.. oundary conditions There are three kinds of boundary conditions:. the first kind or Dirichlet b.c.:. the second kind or Neumann b.c.:. the third kind or Robin b.c.: u û on, () x n ˆγ on, (4) x n + ˆα u ˆβ on, (5) also known as the generalized Neumann b.c., it can be presented as x n ˆγ + ˆα( û u ) on. (6) Indeed, this form is obtained for ˆβ ˆγ + ˆα û. Now, one can easily notice that the third kind is just a linear combination of the first two kinds. However, in this case the fields û and ˆγ are prescribed simultaneously on the same fragment of boundary, and their effect is controlled by another known boundary value, ˆα, which usually can be interpreted as an essential property of the surrounding medium. Finally, notice that the Dirichlet condition is obtained for the limit ˆα, while the Neumann condition for ˆα.

ICMM lecture Weighted Residual Methods Weighted Residual Method. General idea Weighted Residual Method (WRM) assumes that a solution can be approximated analytically or piecewise analytically. In general, a solution to a PDE can be expressed as a linear combination of a base set of functions where the coefficients are determined by a chosen method, and the method attempts to minimize the approximation error (for instance, finite differences try to minimize the error specifically at the chosen grid points). In fact, WRM represents a particular group of methods where an integral error is minimized in a certain way. Depending on this way the WRM can generate: the finite volume method, finite element methods, spectral methods, and also finite difference methods.. Approximation Assumption: the exact solution, u, can be approximated by a linear combination of N (linearly-independent) analytical functions, that is, u(x) ũ(x) N U s φ s (x) (7) s Here: ũ is an approximated solution, and U s are unknown coefficients, the so-called degrees of freedom, φ s φ s (x) form a base set of selected functions (often called as trial functions or shape functions). This set of functions generates the space of approximated solutions. s,... N where N is the number of degrees of freedom.. Error functions In general, an approximated solution, ũ, does not satisfy exactly the PDE and/or some (or all) boundary conditions. The generated errors can be described by the following error functions:

4 Weighted Residual Methods ICMM lecture. the PDE residuum R (ũ) L(ũ) f, (8). the Dirichlet condition residuum R (ũ) ũ û, (9). the Neumann condition residuum. the Robin condition residuum R (ũ) ũ n ˆγ, () x R (ũ) ũ x n + ˆαũ ˆβ. ().4 Minimization of errors Requirement: Minimize the errors in a weighted integral sense R (ũ) ψ r + R (ũ) ψ r + R (ũ) ψ r + R (ũ) ψ r. () Here, ψ r,,, and (r,... M) are sets of weight functions. Note that M weight functions yield M conditions (or equations) from which to determine the N coefficients U s. To determine these N coefficients uniquely we need N independent conditions (equations). Now, using the formulae for residua results in L(ũ) ψ ũ r + ũ ψ r + x n ψ r + f ψ r + û ψ r + ( ũ x n + ˆα ũ ) ˆγ ψ r + ˆβ ψ r. ().5 System of algebraic equations y applying the approximation (7) to Eq. (), and using the properties of linear operators, N N ũ L(ũ) U s L(φ s ), x n φ s U s x n, (4) s s

ICMM lecture Weighted Residual Methods 5 the following system of algebraic equations is obtained: N A rs U s r (5) where A rs r L(φ s ) ψ r + f ψ r + φ s û ψ r + s ψ r + ˆγ ψ r + φ s x n ψ r + ˆβ ( ) φs x n + ˆα φ s ψ r, (6) ψ r. (7).6 Categories of WRM Assume that the boundary conditions are met and approximated must be only the PDE in the domain. The error of this approximation is minimized by zeroing an integral of weighted residuum. There are four main categories of weight functions which generate the following categories of WRM: Subdomain method. Here the domain is divided in M subdomains r where x r, ψ r (x) (8) outside, such that this method minimizes the residual error in each of the chosen subdomains. Note that the choice of the subdomains is free. In many cases an equal division of the total domain is likely the best choice. However, if higher resolution (and a corresponding smaller error) in a particular area is desired, a non-uniform choice may be more appropriate. Collocation method. In this method the weight functions are chosen to be Dirac delta functions (x) δ(x x r ). (9) such that the error is zero at the chosen nodes x r. Least squares method. functions in the form This method uses derivatives of the residual itself as weight ψ r (x) R (ũ(x)). () U r The motivation for this choice is to minimize R of the computational domain. Note that (if the boundary conditions are satisfied) this choice of the weight function implies ( ) R () U r for all values of U r.

6 Weighted Residual Methods ICMM lecture Galerkin method. In this method the weight functions are chosen to be identical to the base functions. (x) φ r (x). () In particular, if the base function set is orthogonal (i.e., φ r φ s if r s), this choice of weight functions implies that the residual R is rendered orthogonal with the minimization condition R () for all base functions. ODE example. A simple VP approached by WRM oundary Value Problem (for an ODE) Find u u(x)? satisfying d u dx du dx in [a, b], (4) subject to boundary conditions on a b: u du xa û (Dirichlet), dx ˆγ (Neumann). (5) xb WRM approach: Residua for an approximated solution ũ R (ũ) d ũ dx dũ dx, R (ũ) ũ xa û, R (ũ) dũ dx ˆγ. (6) xb Minimization of weighted residual error ψ r (x), r,... N) b a (for weight functions ψ r (x), ψ r (x), and ( dũ dx dũ ) [ (ũ ) ] [( ) ] dũ ψ r + û + dx xa dx ˆγ ψ r. (7) xb System of algebraic equations(for the approximation ũ(x) N U s φ s (x)) s N A rs U s r (8) s

ICMM lecture Weighted Residual Methods 7 where b ( d φ s A rs dx dφ ) ] [ ] s dφs ψ r + [φ s + ψ r, (9) dx xa dx xb a ] ] r [û ψ r + [ˆγ ψ r. () xa xb. Numerical solution oundary limits and values: a, û, b, ˆγ. Shape functions (s, ): φs, e x. Weight functions (r, ):, x. System of equations: [ ] [ ] [ ] ( + e) U. e U u(x).5.5 φ (x) e x ũ(x) ex +e e (exact solution) ψ (x) ψ (x) ψ (x) φ (x) Coefficients: U e, U e. Approximated solution:.5 ψ (x) ψ (x) ψ (x) x a.5 b x ũ U + U e x ex + e e. One can check that this approximation is in fact the exact solution. Such result is obtained thanks to the choice of shape functions (the simple subspace generated by the shape functions happens to contain the exact solution).

8 Weighted Residual Methods ICMM lecture. Another numerical solution oundary limits and values: a, û, b, ˆγ. Shape and weight functions (s,, ): φs ψs ψs ψs, x, x. u(x) ( ũ(x) ) 7 5 + 4x + 4x u(x) ex +e e (exact solution) System of equations: 7 Coefficients: 6 U U U. U 5 7, U 7, U 7. Approximated solution:.5 φ (x) φ (x) x.5 φ (x) x x a.5 b ũ U + U x + U x 7( 5 + 4x + 4x ).