Notes for Lecture 10

Similar documents
Electrodynamics PHY712. Lecture 4 Electrostatic potentials and fields. Reference: Chap. 1 & 2 in J. D. Jackson s textbook.

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

Spezielle Funktionen 3 Orthogonale Polynome

Chapter 1. Introduction to Electrostatics

Math 4263 Homework Set 1

Summary of time independent electrodynamics

Basic Aspects of Discretization

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

Algorithmic Lie Symmetry Analysis and Group Classication for Ordinary Dierential Equations

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF MATHEMATICS ACADEMIC YEAR / EVEN SEMESTER QUESTION BANK

Notes 19 Gradient and Laplacian

MAT 419 Lecture Notes Transcribed by Eowyn Cenek 6/1/2012

PEAT SEISMOLOGY Lecture 2: Continuum mechanics

Notes: Most of the material presented in this chapter is taken from Jackson, Chap. 2, 3, and 4, and Di Bartolo, Chap. 2. 2π nx i a. ( ) = G n.

Numerical Solutions to Partial Differential Equations

Modern Algebra Math 542 Spring 2007 R. Pollack Solutions for HW #5. 1. Which of the following are examples of ring homomorphisms? Explain!

Selected electrostatic problems (Lecture 14)

Scientific Computing: Numerical Integration

Chapter 5 FINITE DIFFERENCE METHOD (FDM)

COMPLETION OF A METRIC SPACE

Functional Analysis Exercise Class

Lecture 2 Some Sources of Lie Algebras

PHYS 410/555 Computational Physics Solution of Non Linear Equations (a.k.a. Root Finding) (Reference Numerical Recipes, 9.0, 9.1, 9.

Lecture 4.2 Finite Difference Approximation

Fourier transforms, Generalised functions and Greens functions

A short review of continuum mechanics

Chapter 9: Differential Analysis

Mathematical Tripos Part IA Lent Term Example Sheet 1. Calculate its tangent vector dr/du at each point and hence find its total length.

Lecture-05 Perturbation Theory and Feynman Diagrams

Introduction to Electrostatics

Lecture 17. Higher boundary regularity. April 15 th, We extend our results to include the boundary. Let u C 2 (Ω) C 0 ( Ω) be a solution of

Chapter 9: Differential Analysis of Fluid Flow

Lent 2019 VECTOR CALCULUS EXAMPLE SHEET 1 G. Taylor

l=0 The expansion coefficients can be determined, for example, by finding the potential on the z-axis and expanding that result in z.

University of Illinois at Chicago Department of Physics. Electricity & Magnetism Qualifying Examination

n 2 xi = x i. x i 2. r r ; i r 2 + V ( r) V ( r) = 0 r > 0. ( 1 1 ) a r n 1 ( 1 2) V( r) = b ln r + c n = 2 b r n 2 + c n 3 ( 1 3)

UNIVERSITY of LIMERICK OLLSCOIL LUIMNIGH

Solutions to Problems in Jackson, Classical Electrodynamics, Third Edition. Chapter 2: Problems 11-20

1. Poisson-Boltzmann 1.1. Poisson equation. We consider the Laplacian. which is given in spherical coordinates by (2)

LECTURE-13 : GENERALIZED CAUCHY S THEOREM

Finite Difference Methods for Boundary Value Problems

Gradient operator. In our calculation of dφ along the vector ds, we see that it can be described as the scalar product

Electric and magnetic multipoles

Lecture Introduction

Vector and Tensor Calculus

NPTEL web course on Complex Analysis. A. Swaminathan I.I.T. Roorkee, India. and. V.K. Katiyar I.I.T. Roorkee, India

S12.1 SOLUTIONS TO PROBLEMS 12 (ODD NUMBERS)

Energy method for wave equations

Continuum Electrostatics for Ionic Solutions with Nonuniform Ionic Sizes

The Dirichlet boundary problems for second order parabolic operators satisfying a Carleson condition

FINITE DIFFERENCES. Lecture 1: (a) Operators (b) Forward Differences and their calculations. (c) Backward Differences and their calculations.

Lagrangian submanifolds and generating functions

Regularity for Poisson Equation

Particle in Cell method

Dulac-Cherkas function and its application to estimation of limit cycles number for some classes of planar autonomous systems

Part I. Discrete Models. Part I: Discrete Models. Scientific Computing I. Motivation: Heat Transfer. A Wiremesh Model (2) A Wiremesh Model

Lecture 7 From Dirac equation to Feynman diagramms. SS2011: Introduction to Nuclear and Particle Physics, Part 2 2

u( x) = g( y) ds y ( 1 ) U solves u = 0 in U; u = 0 on U. ( 3)

Theoretische Physik 2: Elektrodynamik (Prof. A-S. Smith) Home assignment 11

PHY752, Fall 2016, Assigned Problems

Lecture 7. Capacitors and Electric Field Energy. Last lecture review: Electrostatic potential

CS Lecture 19. Exponential Families & Expectation Propagation

Math Exam III - Spring

Introduction of Partial Differential Equations and Boundary Value Problems

Jackson 2.3 Homework Problem Solution Dr. Christopher S. Baird University of Massachusetts Lowell

Partial Differential Equations

Numerical Solution of Laplace Equation By Gilberto E. Urroz, October 2004

Solutions of the Harmonic Oscillator Equation in a B-Polynomial Basis

Multivariate Distribution Models

Introduction to Electrostatics

Power series solutions for 2nd order linear ODE s (not necessarily with constant coefficients) a n z n. n=0

3D and Planar Constitutive Relations

(d). Why does this imply that there is no bounded extension operator E : W 1,1 (U) W 1,1 (R n )? Proof. 2 k 1. a k 1 a k

Classical Field Theory: Electrostatics-Magnetostatics

Non-bonded interactions

Module 3: BASICS OF CFD. Part A: Finite Difference Methods

Numerical solution of the 2-D Poisson equation on an irregular domain with Robin boundary conditions

Chapter 4. Multiple Integrals. 1. Integrals on Rectangles

MATH 590: Meshfree Methods

Lecture : PSPACE IP

18.440: Lecture 19 Normal random variables

i=1 α i. Given an m-times continuously

Physics 741 Graduate Quantum Mechanics 1 Solutions to Midterm Exam, Fall x i x dx i x i x x i x dx

1 Review of Electrostatics

Introduction to Probability and Stocastic Processes - Part I

INTRODUCTION TO FINITE ELEMENT METHODS ON ELLIPTIC EQUATIONS LONG CHEN

Black Hole Universe with Rotation Chan Park KAIST

Mathematical Notes for E&M Gradient, Divergence, and Curl

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

Practical in Numerical Astronomy, SS 2012 LECTURE 9

EE243 Advanced Electromagnetic Theory Lec #3: Electrostatics (Apps., Form),

Reflection of Plane Electromagnetic Wave from Conducting Plane

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 9

Compatible Discretization Schemes

S chauder Theory. x 2. = log( x 1 + x 2 ) + 1 ( x 1 + x 2 ) 2. ( 5) x 1 + x 2 x 1 + x 2. 2 = 2 x 1. x 1 x 2. 1 x 1.

Chapter 12: Bivariate & Conditional Distributions

Additional Mathematical Tools: Detail

Solutions Definition 2: a solution

laplace s method for ordinary differential equations

Transcription:

February 2, 26 Notes for Lecture Introduction to grid-based methods for solving Poisson and Laplace Equations Finite difference methods The basis for most grid-based finite difference methods is the Taylor s expansion: Φ(r + u) Φ(r) + u Φ(r) + 2! (u )2 Φ(r) + 3! (u )3 Φ(r) +! (u ) Φ(r) +. () We will work out some explicit formulae for a 2-dimensional regular grid with h denoting the step length. For the 2-dimensional Poisson equation we have 2 ρ(x, y) Φ(x, y). (2) ε We note that a sum of surrounding edge values gives: S A Φ(x + h, y) + Φ(x h, y) + Φ(x, y + h) + Φ(x, y h) (3) Φ(x, y) + h 2 2 Φ(x, y) + h 2 x + Φ(x, y) + (h 6...). y Similarly, a sum of surrounding corner values gives: S B Φ(x + h, y + h) + Φ(x h, y + h) + Φ(x + h, y h) + Φ(x h, y h) () ( Φ(x, y) + 2h 2 2 Φ(x, y) + h 6 x + y + 6 2 2 ) Φ(x, y) + (h 6...). x We note that we can combine these two results into the relation S A + S B 5Φ(x, y) + 3h2 2 2 Φ(x, y) + h 8 2 2 Φ(x, y) + (h 6...). (5) This result can be written in the form; Φ(x, y) 5 S A 2 S B 3h2 ρ(x, y) + h 2 ρ(x, y). (6) ε ε

Φ(x,a)V 2 3 Φ(,y) 5 6 Φ(a,y) 7 8 9 Φ(x,) Figure : 3 3 grid for solution of the Poisson equation within a 2-dimensional square. In general, the right hand side of this equation is known, and most of the left hand side of the equation, except for the boundary values are unknown. It can be used to develop a set of linear equations for the values of Φ(x, y) on the grid points. For example, consider a solution to the Laplace equation in the square region x a, y a which Φ(x, ) Φ(, y) Φ(a, y) and Φ(x, a) V. We will first analyze this system with a mesh of 9 points. In this case, φ 5 Φ( a 2, a 2 ) is unknown, while φ φ 2 φ 3 and φ φ 6 φ 7 φ 8 φ 9. For this example, Eq. 6 states φ 5 5 (φ 2 + φ + φ 6 + φ 8 ) + 2 (φ + φ 3 + φ 7 + φ 9 ) 3 V. (7) This results is within 2% of the exact answer of Φ( a 2, a 2 ).25V. If analyze this same system with the next more accurate grid, using the symmetry of the system Φ(x, y) Φ(a x, y), we have now 6 unknown values {φ 5, φ 6, φ 8, φ 9, φ, φ 2 } and boundary values φ φ 2 φ 3 and φ φ 7 φ φ 3 φ φ 5. This results in the following relations between the grid points: φ 5 5 (φ 2 + φ + φ 6 + φ 8 ) 2 (φ + φ 3 + φ 7 + φ 9 ), (8) φ 6 5 (φ 3 + φ 5 + φ 5 + φ 9 ) 2 (φ 2 + φ 2 + φ 8 + φ 8 ), (9) φ 8 5 (φ 5 + φ 7 φ 9 + φ ) 2 (φ + φ 6 + φ + φ 2 ), () φ 9 5 (φ 6 + φ 8 + φ 8 + φ 2 ) 2 (φ 5 + φ 5 + φ + φ ), ()

Φ(x,a)V 2 3 2 Φ(,y) 7 5 8 6 5 9 8 7 2 Φ(a,y) 3 5 3 Φ(x,) Figure 2: 5 5 grid for solution of the Poisson equation within a 2-dimensional square. φ 5 (φ 8 + φ + φ 2 + φ ) 2 (φ 7 + φ 9 + φ 3 + φ 5 ), (2) φ 2 5 (φ 9 + φ + φ + φ 5 ) 2 (φ 8 + φ 8 + φ + φ ). (3) These equations can be cast into the form of a matrix problem which can be easily solved using Maple: /5 /5 /2 φ 5 3/ 2/5 / /5 φ 6 3/ /5 /2 /5 /5 /2 φ 8 V / /5 2/5 / /5 φ 9. () /5 /2 /5 φ / /5 2/5 φ 2 The solution to these equations and the exact results are found to be: φ 5 φ 6 φ 8 φ 9 φ φ 2.62835839.55666769.92222635 V.26595573 ; (exact).759236.2532.3228338.5529283.8228338.25.67976687.95792 V. (5)

We see that the accuracy has improved considerably with the new mesh. Introduction to Finite element method The finite element approach is based on an expansion of the unknown electrostatic potential in terms of known grid-based functions of fixed shape. In two dimensions, using the indices {i, j} to reference the grid, we can denote the shape functions as {φ ij (x, y)}. The finite element expansion of the potential in two dimensions can take the form: πε Φ(x, y) ij ψ ij φ ij (x, y), (6) where ψ ij represents the amplitude associated with the shape function φ ij (x, y). The amplitude values can be determined for a given solution of the Poisson equation: by solving a linear algebra problem of the form 2 (πε Φ(x, y)) πρ(x, y), (7) M kl,ij ψ ij G kl, (8) ij where M kl,ij φ kl (x, y) φ ij (x, y) and G kl φ kl (x, y) πρ(x, y). (9) In obtaining this result, we have assumed that the boundary values vanish. In order for this result to be useful, we need to be able evaluate the integrals for M kl,ij and for G kl. In the latter case, we need to know the form of the charge density. The form of M kl,ij only depends upon the form of the shape functions. If we take these functions to be: where X i (x) φ ij (x, y) X i (x)y j (y), (2) { x x i h for xi h x x i + h otherwise and Y j (y) has a similar expression in the variable y. Then M kl,ij [ dxk (x) dx i (x) Y l(y)y j (y) + X k (x)x i (x) dy l(y) There are four types of non-trivial contributions to these values: xi +h xi +h, (2) ] dy j (y). (22) (X i (x)) 2 h ( u ) 2 du 2h 3, (23) (X i (x)x i+ (x)) h ( u)udu h 6, (2)

and xi +h xi +h ( dxi (x) ( dxi (x) ) 2 h du 2 h, (25) ) dx i+ (x) du h h. (26) These basic ingredients lead to the following distinct values for the matrix: 8 for k i and l j 3 M kl,ij for k i ± and/or l j ± 3 otherwise. (27) For problems in which the boundary values are, Eq. 8 then can be used to find all of the interior amplitudes ψ ij. In order to use this technique to solve the boundary value problem discussed above, we have to make one modification. The boundary value of Φ(x, a) V is not consistent with the derivation of Eq. (9), however, since we are only interested in the region y a, we can extend our numerical analysis to the region y a + h and require Φ(x, a + h) in addition to Φ(x, a) V. Using the same indexing as in Fig. 2, this means that ψ ψ 2 ψ 3 V. The finite element approach for this problem thus can be put into the matrix form for analysis by Maple: 8/3 /3 /3 /3 ψ 5 2/3 8/3 2/3 /3 ψ 6 /3 /3 8/3 /3 /3 /3 ψ 8 V 2/3 /3 2/3 8/3 2/3 /3 ψ 9. (28) /3 /3 8/3 /3 ψ 2/3 /3 2/3 8/3 ψ 2 The solution to these equations and the exact results are found to be: ψ 5 ψ 6 ψ 8 ψ 9 ψ ψ 2.5727698.587926267.9285729 V.27857286 ; (exact).7537788.92659.3228338.5529283.8228338.25.67976687.95792 V. (29) We see that the results are similar to those obtained using the finite difference approach.