Weighted Residual Methods

Similar documents
Weighted Residual Methods

Ritz Method. Introductory Course on Multiphysics Modelling

An Introductory Course on Modelling of Multiphysics Problems

Galerkin Finite Element Model for Heat Transfer

Finite-Elements Method 2

Fundamental Solutions and Green s functions. Simulation Methods in Acoustics

Weak form of Boundary Value Problems. Simulation Methods in Acoustics

FINITE ELEMENT METHOD: APPROXIMATE SOLUTIONS

PART IV Spectral Methods

Chapter 3 Variational Formulation & the Galerkin Method

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

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

Fundamentals of Linear Elasticity

Introduction to Finite Element Method

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

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

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

Numerical Analysis and Methods for PDE I

Fast Numerical Methods for Stochastic Computations

Consequences of Orthogonality

Elements of linear algebra

Numerical Methods for Partial Differential Equations

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

Homework for Math , Fall 2016

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

Boundary-value Problems in Rectangular Coordinates

A brief introduction to finite element methods

Final: Solutions Math 118A, Fall 2013

Numerical Solutions to Partial Differential Equations

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

Section 12.6: Non-homogeneous Problems

Contents. Prologue Introduction. Classical Approximation... 19

Spectral Representation of Random Processes

Course and Wavelets and Filter Banks

MEEN 673 ********************************* NONLINEAR FINITE ELEMENT ANALYSIS ********************************* J. N. Reddy

Fundamentals of Fluid Dynamics: Ideal Flow Theory & Basic Aerodynamics

6 Non-homogeneous Heat Problems

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

Finite Element Method for Ordinary Differential Equations

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

Concepts. 3.1 Numerical Analysis. Chapter Numerical Analysis Scheme

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

SPECTRAL METHODS: ORTHOGONAL POLYNOMIALS

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

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

Lecture 26: Putting it all together #5... Galerkin Finite Element Methods for ODE BVPs

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

A FETI-DP Method for Mortar Finite Element Discretization of a Fourth Order Problem

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

Modelling in photonic crystal structures

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.

17 Source Problems for Heat and Wave IB- VPs

Mathematical Methods - Lecture 9

Algorithms for Scientific Computing

MATH 590: Meshfree Methods

Topic 12 Overview of Estimation

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

FINITE VOLUME METHOD: BASIC PRINCIPLES AND EXAMPLES

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

INTRODUCTION TO PDEs

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

Chapter 1: The Finite Element Method

Trefftz-DG solution to the Helmholtz equation involving integral equations

arxiv: v5 [math.na] 1 Sep 2018

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

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

Model Reduction, Centering, and the Karhunen-Loeve Expansion

SOLVING ELLIPTIC PDES

K. BLACK To avoid these diculties, Boyd has proposed a method that proceeds by mapping a semi-innite interval to a nite interval [2]. The method is co

Variational Principles for Equilibrium Physical Systems

Preconditioned space-time boundary element methods for the heat equation

Midterm 2: Sample solutions Math 118A, Fall 2013

Using Green s functions with inhomogeneous BCs

Boundary regularity of solutions of degenerate elliptic equations without boundary conditions

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

Two new enriched multiscale coarse spaces for the Additive Average Schwarz method

Partial Differential Equations

Scientific Computing I

Lecture IX. Definition 1 A non-singular Sturm 1 -Liouville 2 problem consists of a second order linear differential equation of the form.

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

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

5. The Indirect Approach To Domain Decomposition

Lucio Demeio Dipartimento di Ingegneria Industriale e delle Scienze Matematiche

Mathematical Modeling using Partial Differential Equations (PDE s)

1 Separation of Variables

Topic 16 Interval Estimation

Existence Theory: Green s Functions

Chapter 4. Two-Dimensional Finite Element Analysis

A Stable Spectral Difference Method for Triangles

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.

PROJECTION METHODS FOR DYNAMIC MODELS

NUMERICAL SOLUTIONS OF SYSTEM OF SECOND ORDER BOUNDARY VALUE PROBLEMS USING GALERKIN METHOD

Partial Differential Equations

Virtual Work and Variational Principles

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

1 Discretizing BVP with Finite Element Methods.

Finite Difference Methods for Boundary Value Problems

An Introduction to Numerical Methods for Differential Equations. Janet Peterson

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

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

Transcription:

Weighted Residual Methods Introductory Course on Multiphysics Modelling TOMASZ G. ZIELIŃSKI bluebox.ippt.pan.pl/ tzielins/ Institute of Fundamental Technological Research of the Polish Academy of Sciences Warsaw Poland

Outline 1 Problem definition Boundary-Value Problem Boundary conditions

Outline 1 Problem definition Boundary-Value Problem Boundary conditions 2 Weighted Residual Method General idea Approximation Error functions Minimization of errors System of algebraic equations Categories of WRM

Outline 1 Problem definition Boundary-Value Problem Boundary conditions 2 Weighted Residual Method General idea Approximation Error functions Minimization of errors System of algebraic equations Categories of WRM 3 ODE example A simple BVP approached by WRM Numerical solution Another numerical solution

Outline 1 Problem definition Boundary-Value Problem Boundary conditions 2 Weighted Residual Method General idea Approximation Error functions Minimization of errors System of algebraic equations Categories of WRM 3 ODE example A simple BVP approached by WRM Numerical solution Another numerical solution

Boundary-Value Problem Let B be a domain with the boundary B, and: L(.) be a (second order) differential operator, f = f (x) be a known source term in B, n = n(x) be the unit vector normal to the boundary B.

Boundary-Value Problem Let B be a domain with the boundary B, and: L(.) be a (second order) differential operator, f = f (x) be a known source term in B, n = n(x) be the unit vector normal to the boundary B. Boundary-Value Problem Find u = u(x) =? satisfying PDE L(u) = f in B and subject to (at least one of) the following boundary conditions u = û on B 1, u u n = ˆγ on B2, x x n + ˆα u = ˆβ on B 3, where û = û(x), ˆγ = ˆγ(x), ˆα = ˆα(x), and ˆβ = ˆβ(x) are known fields prescribed on adequate parts of the boundary B = B 1 B 2 B 3 Remarks: the boundary parts are mutually disjoint, for f 0 the PDE is called homogeneous.

Types of boundary conditions There are three kinds of boundary conditions: 1 the first kind or Dirichlet b.c.: u = û on B 1,

Types of boundary conditions There are three kinds of boundary conditions: 1 the first kind or Dirichlet b.c.: u = û on B 1, 2 the second kind or Neumann b.c.: u x n = ˆγ on B 2,

Types of boundary conditions There are three kinds of boundary conditions: 1 the first kind or Dirichlet b.c.: u = û on B 1, 2 the second kind or Neumann b.c.: 3 the third kind or Robin b.c.: u x n = ˆγ on B 2, u x n + ˆα u = ˆβ on B 3, also known as the generalized Neumann b.c., it can be presented as u x n = ˆγ + ˆα( û u ) on B 3. Indeed, this form is obtained for ˆβ = ˆγ + ˆα û.

Outline 1 Problem definition Boundary-Value Problem Boundary conditions 2 Weighted Residual Method General idea Approximation Error functions Minimization of errors System of algebraic equations Categories of WRM 3 ODE example A simple BVP approached by WRM Numerical solution Another numerical solution

General idea of the method 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.

General idea of the method 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. 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, finite difference methods.

Approximation Assumption: the exact solution, u, can be approximated by a linear combination of N (linearly-independent) analytical functions, that is, N u(x) ũ(x) = U s φ s (x) s=1 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 = 1,... N where N is the number of degrees of freedom.

Residua or 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: 0 the PDE residuum R 0 (ũ) = L(ũ) f,

Residua or 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: 0 the PDE residuum R 0 (ũ) = L(ũ) f, 1 the Dirichlet condition residuum R 1 (ũ) = ũ û,

Residua or 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: 0 the PDE residuum R 0 (ũ) = L(ũ) f, 1 the Dirichlet condition residuum R 1 (ũ) = ũ û, 2 the Neumann condition residuum R 2 (ũ) = ũ x n ˆγ,

Residua or 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: 0 the PDE residuum R 0 (ũ) = L(ũ) f, 1 the Dirichlet condition residuum R 1 (ũ) = ũ û, 2 the Neumann condition residuum 3 the Robin condition residuum R 2 (ũ) = ũ x n ˆγ, R 3 (ũ) = ũ x n + ˆαũ ˆβ.

Minimization of errors Requirement: Minimize the errors in a weighted integral sense R 0 (ũ) ψ 0 1 2 3 r + R 1 (ũ) ψ r + R 2 (ũ) ψ r + R 3 (ũ) ψ r = 0. B B 1 B 2 Here, { ψ 0 } { 1 } { 2 } { 3 } r, ψ r, ψ r, and ψ r (r = 1,... 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). B 3

Minimization of errors Requirement: Minimize the errors in a weighted integral sense R 0 (ũ) ψ 0 1 2 3 r + R 1 (ũ) ψ r + R 2 (ũ) ψ r + R 3 (ũ) ψ r = 0. B B 1 B 2 Here, { ψ 0 } { 1 } { 2 } { 3 } r, ψ r, ψ r, and ψ r (r = 1,... 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 B L(ũ) 0 ψ r + B 1 1 ũ ψ r + B B 2 ũ x n 2 ψ r + 0 = f ψ r + B 1 B 3 1 û ψ r + B 2 B 3 ( ũ x n + ˆα ũ ) 3 ψ r 2 ˆγ ψ r + B 3 3 ˆβ ψ r.

System of algebraic equations By applying the approximation ũ = N U s φ s, and using the properties of linear operators, L(ũ) = N U s L(φ s ), s=1 s=1 ũ N x n = φ s U s x n, the following system of algebraic equations is obtained: N A rs U s = B r s=1 s=1 A rs = B B r = B L(φ s ) ψ 0 r + f 0 ψ r + B 1 B 1 φ s 1 û ψ r + 1 ψ r + B 2 B 2 2 ˆγ ψ r + φ s x n ψ 2 r + B 3 3 ˆβ ψ r. B 3 ( ) φs x n + ˆα φ 3 s ψ r,

Categories of WRM generated by weight functions There are four main categories of weight functions which generate the following categories of WRM: Subdomain method. Collocation method. Least squares method. Galerkin method.

Categories of WRM generated by weight functions Main categories: Subdomain method. Here the domain is divided in M subdomains B r where { 0 1 x B r, ψ r (x) = 0 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. Least squares method. Galerkin method.

Categories of WRM generated by weight functions Main categories: Subdomain method. Collocation method. In this method the weight functions are chosen to be Dirac delta functions 0 ψ r (x) = δ(x x r ). such that the error is zero at the chosen nodes x r. Least squares method. Galerkin method.

Categories of WRM generated by weight functions Main categories: Subdomain method. Collocation method. Least squares method. This method uses derivatives of the residual itself as weight functions in the form 0 ψ r (x) = R 0(ũ(x)). U r The motivation for this choice is to minimize B R2 0 of the computational domain. Note that (if the boundary conditions are satisfied) this choice of the weight function implies ( ) R 2 0 = 0 U r for all values of U r. Galerkin method. B

Categories of WRM generated by weight functions Main categories: Subdomain method. Collocation method. Least squares method. Galerkin method. In this method the weight functions are chosen to be identical to the base functions. 0 ψ r (x) = φ r (x). In particular, if the base function set is orthogonal (i.e., B φ r φ s = 0 if r s), this choice of weight functions implies that the residual R 0 is rendered orthogonal with the minimization condition for all base functions. B R 0 0 ψ r = 0

Outline 1 Problem definition Boundary-Value Problem Boundary conditions 2 Weighted Residual Method General idea Approximation Error functions Minimization of errors System of algebraic equations Categories of WRM 3 ODE example A simple BVP approached by WRM Numerical solution Another numerical solution

A simple BVP approached by WRM Boundary Value Problem (for an ODE) Find u = u(x) =? satisfying d 2 u dx du = 0 in B = [a, b], 2 dx subject to boundary conditions on B = B 1 B 2 = {a} {b}: u du x=a = û (Dirichlet), dx = ˆγ (Neumann). x=b

A simple BVP approached by WRM Boundary Value Problem (for an ODE) Find u = u(x) =? satisfying d 2 u dx du = 0 in B = [a, b], 2 dx subject to boundary conditions on B = B 1 B 2 = {a} {b}: u du x=a = û (Dirichlet), dx = ˆγ (Neumann). x=b WRM approach: Residua for an approximated solution ũ R 0(ũ) = d2 ũ dx dũ 2 dx, R1(ũ) = ũ x=a û, R 2(ũ) = dũ dx ˆγ. x=b

A simple BVP approached by WRM Boundary Value Problem (for an ODE) Find u = u(x) =? satisfying d 2 u dx du = 0 in B = [a, b], 2 dx subject to boundary conditions on B = B 1 B 2 = {a} {b}: u du x=a = û (Dirichlet), dx = ˆγ (Neumann). x=b WRM approach: Residua for an approximated solution ũ R 0(ũ) = d2 ũ dx dũ 2 dx, R1(ũ) = ũ x=a û, R 2(ũ) = dũ dx Minimization of weighted residual error b a ˆγ. x=b ( d2ũ dx dũ ) 0 [ (ũ ) ] [( ) ] 1 dũ ψ 2 r + û ψ r + dx x=a dx ˆγ 2 ψ r = 0. x=b

A simple BVP approached by WRM Boundary Value Problem (for an ODE) Find u = u(x) =? satisfying d 2 u dx du = 0 in B = [a, b], 2 dx subject to boundary conditions on B = B 1 B 2 = {a} {b}: u du x=a = û (Dirichlet), dx = ˆγ (Neumann). x=b WRM approach: System of algebraic equations: A rs = b a ( d 2 φ s dx 2 ] B r = [û ψ 1 r x=a dφs dx ) N A rs U s = B r, s=1 0 ψ r + ] + [ˆγ ψ 2 r. x=b [φ s 1 ψ r ] x=a [ dφs + dx ] 2 ψ r x=b,

Numerical (and exact) solution Boundary limits and values: a = 0, û = 1, b = 1, ˆγ = 2. u(x) 2.5 2 1.5 1 0.5 a = 0 0.5 b = 1 x

Numerical (and exact) solution Boundary limits and values: a = 0, û = 1, b = 1, ˆγ = 2. Shape functions (s = 1, 2): { φs } = { 1, e x }. 2.5 u(x) φ 2 (x) = e x 2 1.5 1 φ 1 (x) = 1 0.5 a = 0 0.5 b = 1 x

Numerical (and exact) solution Boundary limits and values: a = 0, û = 1, b = 1, ˆγ = 2. Shape functions (s = 1, 2): { φs } = { 1, e x }. Weight functions (r = 1, 2): { 0 ψ r } = { 1 ψ r } = { 2 ψ r } = { 1, x }. u(x) 2.5 2 1.5 1 0 φ 2 (x) = e x ψ 1 (x) = ψ 1 1 (x) = ψ 2 1 (x) = 1 φ 1 (x) = 1 0.5 0 ψ 2 (x) = ψ 1 2 (x) = ψ 2 2 (x) = x x a = 0 0.5 b = 1

Numerical (and exact) solution Boundary limits and values: a = 0, û = 1, b = 1, ˆγ = 2. Shape functions (s = 1, 2): { φs } = { 1, e x }. Weight functions (r = 1, 2): { 0 ψ r } = { 1 ψ r } = { 2 ψ r } = { 1, x }. System of equations: [ ] [ ] [ ] 1 (1 + e) U1 3 =. 0 e 2 Coefficients: Approximated solution: U 2 U 1 = 1 2 e, U2 = 2 e. 2.5 0.5 u(x) 2 1.5 1 0 φ 2 (x) = e x ψ 1 (x) = ψ 1 1 (x) = ψ 2 1 (x) = 1 φ 1 (x) = 1 0 ũ(x) = 2ex +e 2 e (exact solution) ψ 2 (x) = ψ 1 2 (x) = ψ 2 2 (x) = x x a = 0 0.5 b = 1 ũ = U 1 + U 2 e x = 2ex + e 2 e.

Another numerical solution Boundary limits and values: a = 0, û = 1, b = 1, ˆγ = 2. u(x) 2 u(x) = 2ex +e 2 e (exact solution) 1.5 1 0.5 a = 0 0.5 b = 1 x

Another numerical solution Boundary limits and values: a = 0, û = 1, b = 1, ˆγ = 2. Shape and weight functions (s = 1, 2, 3): { φs } = { 0 ψ s } = { 1 ψ s } = { 2 ψ s } = { 1, x, x 2 }. u(x) 2 u(x) = 2ex +e 2 e (exact solution) 1.5 1 0.5 φ 2 (x) = x φ 1 (x) = 1 φ 3 (x) = x 2 a = 0 0.5 b = 1 x

Another numerical solution Boundary limits and values: a = 0, û = 1, b = 1, ˆγ = 2. Shape and weight functions (s = 1, 2, 3): { φs } = { 0 ψ s } = { 1 ψ s } = { 2 ψ s } = { 1, x, x 2 }. System of equations: 1 0 3 1 7 0 2 3 0 Coefficients: 2 3 13 6 U 1 U 2 U 3 3 = 3. 2 U 1 = 15 12 12, U2 =, U3 = 17 17 17. Approximated solution: ũ = U 1 + U 2 x + U 3 x 2 = 3 ( 5 + 4x + 4x 2 ). 17 u(x) 2 1.5 1 0.5 φ 2 (x) = x ũ(x) = 3 ( 17 5 + 4x + 4x 2 ) u(x) = 2ex +e 2 e (exact solution) φ 1 (x) = 1 φ 3 (x) = x 2 a = 0 0.5 b = 1 x