Elliptic PDEs and Solvers

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

Computational Modeling for Engineering MECN 6040
Chapter 8 Elliptic Equation.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2013 – 12269: Continuous Solution for Boundary Value Problems.
Geometric (Classical) MultiGrid. Hierarchy of graphs Apply grids in all scales: 2x2, 4x4, …, n 1/2 xn 1/2 Coarsening Interpolate and relax Solve the large.
1cs542g-term Notes  No extra class tomorrow.
PART 7 Ordinary Differential Equations ODEs
ECE602 BME I Partial Differential Equations in Biomedical Engineering.
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
PARTIAL DIFFERENTIAL EQUATIONS
Numerical Integration CSE245 Lecture Notes. Content Introduction Linear Multistep Formulae Local Error and The Order of Integration Time Domain Solution.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 19 Solution of Linear System of Equations - Iterative Methods.
Revision.
Systems of Non-Linear Equations
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
1 Chapter 9 NUMERICAL SOLUTION OF PARTIAL DIFFERENTIAL EQUATIONS.
Partial differential equations Function depends on two or more independent variables This is a very simple one - there are many more complicated ones.
Numerical Methods for Partial Differential Equations
Types of Governing equations
Monte Carlo Methods in Partial Differential Equations.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 81 Partial.
SE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM Read & CISE301_Topic9 KFUPM.
Numerical methods for PDEs PDEs are mathematical models for –Physical Phenomena Heat transfer Wave motion.
The Finite Difference Method This section presents a quick overview bout the finite difference method. This method can be used to solve any partial differential.
Numerical Methods Due to the increasing complexities encountered in the development of modern technology, analytical solutions usually are not available.
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
1 LECTURE 4 PDEs in the Real World. 2 Aim of Lecture Recap of finite difference method & Neumann boundary conditions The finite difference method for.
Elliptic Partial Differential Equations - Introduction
Numerical Methods on Partial Differential Equation Md. Mashiur Rahman Department of Physics University of Chittagong Laplace Equation.
Scientific Computing Partial Differential Equations Poisson Equation.
Finite Element Method.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
1 Computational Methods II (Elliptic) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal Pulau.
1 Computational Methods II (Elliptic) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal Pulau.
Elliptic PDEs and the Finite Difference Method
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 8 - Chapter 29.
Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3- Chapter 12 Iterative Methods.
Finite Difference Methods Definitions. Finite Difference Methods Approximate derivatives ** difference between exact derivative and its approximation.
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
Sensitivity derivatives Can obtain sensitivity derivatives of structural response at several levels Finite difference sensitivity (section 7.1) Analytical.
Engineering Analysis – Computational Fluid Dynamics –
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Finite Deference Method
Darryl Michael/GE CRD Fields and Waves Lesson 3.6 ELECTROSTATICS - Numerical Simulation.
Discretization for PDEs Chunfang Chen,Danny Thorne Adam Zornes, Deng Li CS 521 Feb., 9,2006.
Partial Derivatives Example: Find If solution: Partial Derivatives Example: Find If solution: gradient grad(u) = gradient.
1/30/ Elliptic Partial Differential Equations – Lieberman Method – Part 1 of 2 Elliptic Partial Differential.
Part 3 Chapter 12 Iterative Methods
NUMERICAL DIFFERENTIATION or DIFFERENCE APPROXIMATION Used to evaluate derivatives of a function using the functional values at grid points. They are.
1 LECTURE 6 Stability of Parabolic PDEs. 2 Aim of Lecture Last week we discussed Parabolic PDEs –Looked at Explicit and Implicit Methods –Advantages and.
Implementing Finite Volume Methods 1.  Continue on Finite Volume Methods for Elliptic Equations  Finite Volumes in Two-Dimensions  Poisson’s Equation.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Part 8 - Chapter 29.
Part 3 Chapter 12 Iterative Methods
EEE 431 Computational Methods in Electrodynamics
بسم الله الرحمن الرحيم.
Implementing Finite Volume Methods
Introduction to Partial Differential Equations
Pressure Poisson Equation
Partial Differential Equations
Numerical Analysis Lecture 45.
CS6068 Applications: Numerical Methods
Elliptic Partial Differential Equations – Gauss-Seidel Method
topic4: Implicit method, Stability, ADI method
Finite Difference Method for Poisson Equation
Numerical Methods on Partial Differential Equation
Engineering Analysis ENG 3420 Fall 2009
Programming assignment #1 Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Presentation transcript:

Elliptic PDEs and Solvers LECTURE 3 Elliptic PDEs and Solvers

Aim of Lecture This week we will discuss Overview of Finite Difference Method for Elliptic PDEs Taylor series Forward, Backward, Central Differences Boundary conditions Using EXCEL to solve PDEs Jacobi Gauss-Seidel

Taylor Series Consider the function u expanded about the point i,j. i k

Finite Difference Equations Consider the function u expanded about the point x. Forward Difference Backward Difference NOTE: Order of Truncation Error

Taylor Series Central difference approximations obtained by: Similar approximation for y. i i+1 i-1 j j +1 j - 1 Central Difference

Finite Difference Method Method based on truncated Taylor series i i+1 i -1 j -1 j j+1 ui,j - Forward difference - Backward difference - Central difference - Central difference Above approximations can be substituted for differentials in the PDE.

Laplace Equation - FDM Consider the Laplace equation. i i+1 i -1 j -1 ui,j Difference formula for each node: When h = k we have:

Poisson Equation - FDM Consider the Poisson equation. i i+1 i -1 j -1 ui,j Difference formula for each node: When h = k we have:

Including Boundary Conditions u = a i i+1 i -1 j -1 j j+1 ui,j Two types of boundary conditions Dirichlet u = a Neumann Boundary conditions must be included into the discretised equations j -1 j ui,j j - 2 i -1 i i+1

Dirichlet Boundary Conditions ui,j+1 = 2 i i+1 i -1 j -1 j j+1 ui,j Dirichlet Boundary Conditions: e.g. u = 2 Include boundary value directly

Example i = 1 2 3 4 j = 1 2 3 4 Consider the following square domain and its representation using a Finite Difference Grid. Finite difference approximation u = 1 Y X (1,0) (0,0) (0,1) (1,1) u = 0 Need to solve for internal nodal values

Example Taking h = k = 1/3 we have: Can show that j = 1 2 3 4

Neumann Boundary Conditions j - 2 j -1 j ui,j Either use backward/forward difference so that Or use central difference (need to introduce artificial nodes outside the boundary, but note error) Alternatively, for derivatives in x direction, if then i i+1 i -1 j - 2 j -1 j ui,j

Example i = 1 2 3 j = 1 2 3 Consider the following square domain and its representation using a Finite Difference Grid. Y X (1,0) (0,0) (0,1) (1,1) u = 1

Example Taking h = k = 1/2 we have: So that j = 1 2 3 Taking h = k = 1/2 we have: So that Dirichlet boundary conditions give Using central difference approximation Artificial Node

EXCEL FOR SOLVING FINITE DIFFERENCE EQUATIONS

USING EXCEL Ideal for solving Finite Difference Equations i i+1 i-1 j

Setting Parameters Write Parameter in Name Box: Name Box Formula Box

IF command in Excel Using the IF Command IF(CONDITION, THEN DO THIS, ELSE DO THIS)

Setting up FD Grid in EXCEL Consider Tutorial 3, Question 2 Boundary conditions (grey) Unknowns (white) x values (peach)

Input FD Formula Formula for D16 Formula for D9 Previous Iteration Latest Iteration

Iteration in Excel The Function key (F9) updates all values (1 Iteration) Use the FLAG Parameter FLAG = 0 (sets all cell values back to 0) FLAG = 1 (Starts Iterations) Keep pressing F9 to increment iteration count. EXCEL updates cells in Columns. Can program both Jacobi and Gauss-Seidel.

Iteration in Excel Consider two iterations (Press F9 twice) First Iteration Second Iteration

Solution converged to 4 decimal places Iteration in Excel Continue Iterating (Pressing F9) until convergence Solution converged to 4 decimal places

Gauss Seidel in Excel Even easier than Jacobi (don’t require the old values of the previous iteration) Each cell just uses most up-to-date values Don’t even know/care which order the cells are calculated in Consider Tutorial 3, Question 1

Using Excel – summary/list of tasks Set up the parameters of the problem such as FLAG, h, k, g NB when solving a Laplace equation it is better to set up Excel to solve Poisson and then just set g = 0 Set up the domain (size, x/y values) Fill in the known (Dirichlet) boundary values Work out the general FD formula and copy it across all cells with unknown values Work out FD formulas for all unknown (Neumann) boundary values and copy to relevant cells – next week There should be no cells inside the domain that reference cells outside the domain (apart from parameters like g or h) Double click each boundary cell to check