16. Solution of elliptic partial differential equation

Size: px
Start display at page:

Download "16. Solution of elliptic partial differential equation"

Transcription

1 16. Solution of elliptic partial differential equation

2 Recall in the first lecture of this course.

3 Assume you know how to use a computer to compute; but have not done any serious numerical computations and only know some very basic numerics. This course will teach you FORTRAN programing language to compute good habits to write structural Fortran programs to write test driver to test the Fortran program written by you or others to use well developed and optimized libraries such as LAPACK FFTW to do parallel computing in multi-process computer using OpenMP to use the these skills to solve partial differential equations governing simple physical systems such as Poisson equation wave equation heat equation.

4 and using these basic blocks plus some extra hard work eventually you are able to develop your own numerical program to simulate the more realistic physical system such as

5 Numerical simulation of flow motion A popular tool due to the burst in power of computing. Substitute for experiment when measurement is inaccessible.

6 Governing equations for motion of an incompressible fluid Property variables to describe the flow: velocity: + + pressure: ( ) Equations governing the flow: incompressibility of fluid (solenoidal condition): momentum conservation: ( ) unknowns with 4 equations

7 Numerical solution based on explicit scheme Harlow F.H. & Welch J.E Numerical calculation of time-dependent viscous incompressible flow of fluid with free surface. Phys. Fluids 8(12) Define velocity and pressure at discrete time instance Δ : and 0 0 ( ) Δ ( ) i.e. after obtaining and at marching towards to get But 1. How is the solenoidal condition 0 satisfied? 2. What is the equation for the pressure? Take divergence of the discretized momentum equation: Δ ( )

8 Take divergence of the time-discretized momentum equation: Δ Δ ( ) Ideally 0 and 0 since the solenoidal condition 0 must be satisfied at every time instance. But due to numerical approximation the solenoidal condition may not be satisfied exactly. Let say there is a small value of at i.e. 0 but 0. We then project that 0 at. Δ 1 Δ ( ) This is an elliptic-type partial differential equation called Poisson equation: + + So the solenoidal condition at is satisfied by solving the pressure Poisson equation. This means that pressure is a tuning property to make sure the flow remain solenoidal.

9 Discrete Fourier Transform in Higher Dimension One-dimensional: Two-dimensional:

10 Numerical Solution of Poisson Equation Elliptic-type partial differential equation for in a rectangular domain: + Discrete representation of the continuous function: ( ) ( ) Numerical solution of the equation means finding discrete satisfies the discretized equation:

11 Rectangular domain with periodic conditions in both directions periodic periodic + periodic periodic Discrete can be represented by a discrete Fourier series with the coefficients to be determined: Similarly Since are given are known. 2 ( )

12 2 2 Substitute and into Poisson equation: Only need to consider 0~ /2 and 0~ /2 for real DFT. This is valid when 0 and 0. 0 and 0 corresponds to the constant mode. The solution of the Poisson equation subject to periodic boundary conditions in both direction is indeterminant i.e. any constant can be the solution. For the well posedness of the problem 0.

13 Rectangular domain with periodic condition in one direction and Dirichlet conditions on the other boundaries ( ) given periodic + periodic 0 ( ) given Unknown: + Boundary conditions: 0 + given ( ) + given

14 Since is periodic in direction only it can be represented as: 2 ( ) ( ) periodic + periodic Similarly

15 Substitute the expansions of and into the Poisson equation: Substitute the expansions of and into the boundary conditions: This is an ordinary differential equation for subject to the upper and lower boundary conditions of Dirichlet type for different. Only need to consider 0 to /2 for real DFT. 0 0

16 Discretize at Δ Δ / 0~. The unknowns are 0~ /2 1~ If use 2nd-order finite-difference scheme to approximate the differentiation of : ( ) 2 + Δ + Δ Δ + Δ (0) Δ Δ

17 Discretized equation for : Δ + Δ Δ + Δ Δ Δ The discretized equation can be represented as a system of linear equation: Δ Δ

18 Δ Δ The ( ) matrix is tridiagonal. The linear system can be solved efficiently for various. Only need to consider 0 to /2 for real DFT. In the above system of equation is real but and are complex. So the real and imaginary parts of the unknown vector can be solved separately as: and

19 Numerical implementation Given the source function of the Poisson equation and the lower and upper boundary values and where 0 ~ ( ) and 1 ~ ( ) Call FFT to compute and Loops of for calling FFT to compute Loops of 0 ~ /2 for solving for Loops of 1 ~ to construct the tridiagonal matrix for each end loops in Call suitable solver to solve and for of each end loops of Loops of for calling inverse FFT to get

20 Rectangular domain with periodic condition in one direction and Neumann conditions on the other boundaries ( ) given periodic + periodic 0 ( ) given Unknown: + Boundary conditions: 0 + given + given

21 Since is periodic in direction only it can be represented as: 2 ( ) ( ) periodic + periodic Similarly

22 Substitute the expansions of and into the Poisson equation: Substitute the expansions of and into the boundary conditions: 0 Again this is an ordinary differential equation for subject to the upper and lower boundary conditions of Neumann type for different. Only need to consider 0 to /2 for real DFT. 0

23 Discretize at Δ Δ / 0~ the unknowns are 0 to /2. If use 2nd-order finite-difference scheme to approximate the differentiation of : + 1 2Δ + 2Δ 2 + Δ + 2 Δ 2Δ Δ + Δ 1 0 2Δ 2Δ Δ Δ + 2Δ

24 Discretized equation for : Δ + 2 Δ 2Δ Δ + Δ Δ Δ + 2Δ The discretized equation can be represented as a system of linear equation: Δ + 2Δ Δ 2Δ The ( + 1) + 1 matrix is tridiagonal. The linear system can be solved efficiently for various. Only need to consider 0 to /2 for real DFT.

25 Dirichlet conditions on upper and lower boundaries: Δ Δ Neumann conditions on upper and lower boundaries: Δ + 2Δ Δ 2Δ

26 Δ + 2Δ Δ 2Δ For 0 i.e. the constant Fourier mode the coefficient matrix of the above system of equation is singular i.e. det 0. For example ( ) given To fix the problem i.e. to make the solution unique a given constant is specified at the grid point. For example (00) 0. periodic + periodic (00) 0 ( ) given

27 1 1 R 0 To implement the solvability condition 00 0: For 0 2 solutions of 0 modes are treated after solving for 0.

28 After obtain the other can be evaluated: + 1 2Δ + 2Δ + Δ 2 Δ Δ 2 + Δ 2 + Δ 2Δ 2Δ Δ Δ 2

29 Numerical implementation Given the source function of the Poisson equation and the lower and upper boundary derivative values and where 0 ~ and 0 ~ Call FFT to compute Loops of for calling FFT to compute Loops of 1 ~ /2 for solving for Loops of 0 ~ to construct the tridiagonal matrix for each end loops in Call suitable solver to solve and for of each end loops of The constant modes need to be treated after solving 0 Compute Loops of 1 ~ to compute for 0 end loops in Loops of for calling inverse FFT to get

30 Two approaches to test the Poisson solver The first approach: Invent a known analytical function and compute analytically the right-hand-side source function of the Poisson equation ( ): + and the boundary conditions: 0 0 or Given the analytical source function and the boundary conditions at and the Poisson equation is then solved for and the numerical solution is compared with the known function. + Such an approach can be used to test the convergence of the solver by increase the grid points.

31 The second approach: Generate the solutions using random numbers. The source function and the boundary conditions are then computed numerically using spectral scheme in the periodic direction and finite-difference scheme in the non-periodic direction. Given the source function numerically: spectral + finite-difference Also generate the boundary conditions using random numbers: and the boundary conditions the Poisson equation is then solved The numerical results should be equal to the original given random numbers since the forward (computing the source function) and inverse (solving the equation) operators are identical. Such an approach is for debugging the code. + or finite-difference

32 Homework Write a subroutine solving Poisson equation in a rectangular domain as shown in the figure below with periodic boundary conditions in the direction Dirichlet condition on the upper boundary and Neumann condition on the lower boundary. Use routine in Lapack to solve the tridiagonal system of linear equation (eg dgtsv). Use FFFTW to do discrete Fourier transform. In calling the subroutine the following data are input : the lengths the rectangular domain in and directions: and the numbers of discrete grids in and directions: and the right-hand side of the Poisson equation: 0 ~ ( ) 0 ~ the values on the lower and upper boundary conditions: and 0 ~ ( ) Write a test driver (use the second approach) to assess the maximum error calling the subroutine to confirm if the Poisson solver has been implemented correctly. Use random numbers between and 1. ( ) periodic in ( ) periodic in

33

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics Diffusion / Parabolic Equations Summary of PDEs (so far...) Hyperbolic Think: advection Real, finite speed(s) at which information propagates carries changes in the solution Second-order explicit methods

More information

Fast Direct Solver for Poisson Equation in a 2D Elliptical Domain

Fast Direct Solver for Poisson Equation in a 2D Elliptical Domain Fast Direct Solver for Poisson Equation in a 2D Elliptical Domain Ming-Chih Lai Department of Applied Mathematics National Chiao Tung University 1001, Ta Hsueh Road, Hsinchu 30050 Taiwan Received 14 October

More information

Partial Differential Equations

Partial Differential Equations Partial Differential Equations Introduction Deng Li Discretization Methods Chunfang Chen, Danny Thorne, Adam Zornes CS521 Feb.,7, 2006 What do You Stand For? A PDE is a Partial Differential Equation This

More information

A Simple Compact Fourth-Order Poisson Solver on Polar Geometry

A Simple Compact Fourth-Order Poisson Solver on Polar Geometry Journal of Computational Physics 182, 337 345 (2002) doi:10.1006/jcph.2002.7172 A Simple Compact Fourth-Order Poisson Solver on Polar Geometry Ming-Chih Lai Department of Applied Mathematics, National

More information

Poisson Solvers. William McLean. April 21, Return to Math3301/Math5315 Common Material.

Poisson Solvers. William McLean. April 21, Return to Math3301/Math5315 Common Material. Poisson Solvers William McLean April 21, 2004 Return to Math3301/Math5315 Common Material 1 Introduction Many problems in applied mathematics lead to a partial differential equation of the form a 2 u +

More information

Elliptic Problems / Multigrid. PHY 604: Computational Methods for Physics and Astrophysics II

Elliptic Problems / Multigrid. PHY 604: Computational Methods for Physics and Astrophysics II Elliptic Problems / Multigrid Summary of Hyperbolic PDEs We looked at a simple linear and a nonlinear scalar hyperbolic PDE There is a speed associated with the change of the solution Explicit methods

More information

Chapter 5. Methods for Solving Elliptic Equations

Chapter 5. Methods for Solving Elliptic Equations Chapter 5. Methods for Solving Elliptic Equations References: Tannehill et al Section 4.3. Fulton et al (1986 MWR). Recommended reading: Chapter 7, Numerical Methods for Engineering Application. J. H.

More information

PDE Solvers for Fluid Flow

PDE Solvers for Fluid Flow PDE Solvers for Fluid Flow issues and algorithms for the Streaming Supercomputer Eran Guendelman February 5, 2002 Topics Equations for incompressible fluid flow 3 model PDEs: Hyperbolic, Elliptic, Parabolic

More information

A CUDA Solver for Helmholtz Equation

A CUDA Solver for Helmholtz Equation Journal of Computational Information Systems 11: 24 (2015) 7805 7812 Available at http://www.jofcis.com A CUDA Solver for Helmholtz Equation Mingming REN 1,2,, Xiaoguang LIU 1,2, Gang WANG 1,2 1 College

More information

Numerical simulation of the Gross-Pitaevskii equation by pseudo-spectral and finite element methods comparison of GPS code and FreeFem++

Numerical simulation of the Gross-Pitaevskii equation by pseudo-spectral and finite element methods comparison of GPS code and FreeFem++ . p.1/13 10 ec. 2014, LJLL, Paris FreeFem++ workshop : BECASIM session Numerical simulation of the Gross-Pitaevskii equation by pseudo-spectral and finite element methods comparison of GPS code and FreeFem++

More information

Numerical Modelling in Fortran: day 10. Paul Tackley, 2016

Numerical Modelling in Fortran: day 10. Paul Tackley, 2016 Numerical Modelling in Fortran: day 10 Paul Tackley, 2016 Today s Goals 1. Useful libraries and other software 2. Implicit time stepping 3. Projects: Agree on topic (by final lecture) (No lecture next

More information

Dual Reciprocity Boundary Element Method for Magma Ocean Simulations

Dual Reciprocity Boundary Element Method for Magma Ocean Simulations Dual Reciprocity Boundary Element Method for Magma Ocean Simulations Tyler W. Drombosky drombosk@math.umd.edu Saswata Hier-Majumder saswata@umd.edu 28 April 2010 Physical Motivation Earth s early history

More information

Solving Poisson s Equations Using Buffered Fourier Spectral Method

Solving Poisson s Equations Using Buffered Fourier Spectral Method Solving Poisson s Equations Using Buffered Fourier Spectral Method Yinlin Dong Hassan Abd Salman Al-Dujaly Chaoqun Liu Technical Report 2015-12 http://www.uta.edu/math/preprint/ Solving Poisson s Equations

More information

Finite Difference Methods (FDMs) 1

Finite Difference Methods (FDMs) 1 Finite Difference Methods (FDMs) 1 1 st - order Approxima9on Recall Taylor series expansion: Forward difference: Backward difference: Central difference: 2 nd - order Approxima9on Forward difference: Backward

More information

Finite Difference Methods for

Finite Difference Methods for CE 601: Numerical Methods Lecture 33 Finite Difference Methods for PDEs Course Coordinator: Course Coordinator: Dr. Suresh A. Kartha, Associate Professor, Department of Civil Engineering, IIT Guwahati.

More information

Solution Methods. Steady State Diffusion Equation. Lecture 04

Solution Methods. Steady State Diffusion Equation. Lecture 04 Solution Methods Steady State Diffusion Equation Lecture 04 1 Solution methods Focus on finite volume method. Background of finite volume method. Discretization example. General solution method. Convergence.

More information

Chapter 9 Implicit integration, incompressible flows

Chapter 9 Implicit integration, incompressible flows Chapter 9 Implicit integration, incompressible flows The methods we discussed so far work well for problems of hydrodynamics in which the flow speeds of interest are not orders of magnitude smaller than

More information

Solving PDEs: the Poisson problem TMA4280 Introduction to Supercomputing

Solving PDEs: the Poisson problem TMA4280 Introduction to Supercomputing Solving PDEs: the Poisson problem TMA4280 Introduction to Supercomputing Based on 2016v slides by Eivind Fonn NTNU, IMF February 27. 2017 1 The Poisson problem The Poisson equation is an elliptic partial

More information

Syllabus for Applied Mathematics Graduate Student Qualifying Exams, Dartmouth Mathematics Department

Syllabus for Applied Mathematics Graduate Student Qualifying Exams, Dartmouth Mathematics Department Syllabus for Applied Mathematics Graduate Student Qualifying Exams, Dartmouth Mathematics Department Alex Barnett, Scott Pauls, Dan Rockmore August 12, 2011 We aim to touch upon many topics that a professional

More information

Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS

Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS 5.1 Introduction When a physical system depends on more than one variable a general

More information

Numerical Solutions to Partial Differential Equations

Numerical Solutions to Partial Differential Equations Numerical Solutions to Partial Differential Equations Zhiping Li LMAM and School of Mathematical Sciences Peking University The Implicit Schemes for the Model Problem The Crank-Nicolson scheme and θ-scheme

More information

Practical in Numerical Astronomy, SS 2012 LECTURE 9

Practical in Numerical Astronomy, SS 2012 LECTURE 9 Practical in Numerical Astronomy, SS 01 Elliptic partial differential equations. Poisson solvers. LECTURE 9 1. Gravity force and the equations of hydrodynamics. Poisson equation versus Poisson integral.

More information

Matrix Eigensystem Tutorial For Parallel Computation

Matrix Eigensystem Tutorial For Parallel Computation Matrix Eigensystem Tutorial For Parallel Computation High Performance Computing Center (HPC) http://www.hpc.unm.edu 5/21/2003 1 Topic Outline Slide Main purpose of this tutorial 5 The assumptions made

More information

Open boundary conditions in numerical simulations of unsteady incompressible flow

Open boundary conditions in numerical simulations of unsteady incompressible flow Open boundary conditions in numerical simulations of unsteady incompressible flow M. P. Kirkpatrick S. W. Armfield Abstract In numerical simulations of unsteady incompressible flow, mass conservation can

More information

Intro to Research Computing with Python: Partial Differential Equations

Intro to Research Computing with Python: Partial Differential Equations Intro to Research Computing with Python: Partial Differential Equations Erik Spence SciNet HPC Consortium 28 November 2013 Erik Spence (SciNet HPC Consortium) PDEs 28 November 2013 1 / 23 Today s class

More information

Helmholtz Institute for Supercomputational Physics (HISP) Fourth Helmholtz Summer School 2004 COMPUTATIONAL FLUID MECHANICS

Helmholtz Institute for Supercomputational Physics (HISP) Fourth Helmholtz Summer School 2004 COMPUTATIONAL FLUID MECHANICS Helmholtz Institute for Supercomputational Physics (HISP) Fourth Helmholtz Summer School 004 COMPUTATIONAL FLUID MECHANICS Laurette TUCKERMAN laurette@limsifr Recursion Relations and Influence Matrices

More information

NumAn2014 Conference Proceedings

NumAn2014 Conference Proceedings OpenAccess Proceedings of the 6th International Conference on Numerical Analysis, pp 198-03 Contents lists available at AMCL s Digital Library. NumAn014 Conference Proceedings Digital Library Triton :

More information

Dedalus: An Open-Source Spectral Magnetohydrodynamics Code

Dedalus: An Open-Source Spectral Magnetohydrodynamics Code Dedalus: An Open-Source Spectral Magnetohydrodynamics Code Keaton Burns University of California Berkeley Jeff Oishi SLAC National Accelerator Laboratory Received ; accepted ABSTRACT We developed the magnetohydrodynamic

More information

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

Index. C 2 ( ), 447 C k [a,b], 37 C0 ( ), 618 ( ), 447 CD 2 CN 2 Index advection equation, 29 in three dimensions, 446 advection-diffusion equation, 31 aluminum, 200 angle between two vectors, 58 area integral, 439 automatic step control, 119 back substitution, 604

More information

Discretization of PDEs and Tools for the Parallel Solution of the Resulting Systems

Discretization of PDEs and Tools for the Parallel Solution of the Resulting Systems Discretization of PDEs and Tools for the Parallel Solution of the Resulting Systems Stan Tomov Innovative Computing Laboratory Computer Science Department The University of Tennessee Wednesday April 4,

More information

Linear Algebra. PHY 604: Computational Methods in Physics and Astrophysics II

Linear Algebra. PHY 604: Computational Methods in Physics and Astrophysics II Linear Algebra Numerical Linear Algebra We've now seen several places where solving linear systems comes into play Implicit ODE integration Cubic spline interpolation We'll see many more, including Solving

More information

DUE: WEDS MARCH 26TH 2018

DUE: WEDS MARCH 26TH 2018 HOMEWORK # 2: FINITE DIFFERENCES MAPPING AND TWO DIMENSIONAL PROBLEMS DUE: WEDS MARCH 26TH 2018 NOTE: In this homework, you will choose ONE of the following three questions to perform and hand-in. Each

More information

MATLAB Solution of Flow and Heat Transfer through a Porous Cooling Channel and the Conjugate Heat Transfer in the Surrounding Wall

MATLAB Solution of Flow and Heat Transfer through a Porous Cooling Channel and the Conjugate Heat Transfer in the Surrounding Wall MATLAB Solution of Flow and Heat Transfer through a Porous Cooling Channel and the Conjugate Heat Transfer in the Surrounding Wall James Cherry, Mehmet Sözen Grand Valley State University, cherryj1@gmail.com,

More information

Fluid Dynamics: Theory, Computation, and Numerical Simulation Second Edition

Fluid Dynamics: Theory, Computation, and Numerical Simulation Second Edition Fluid Dynamics: Theory, Computation, and Numerical Simulation Second Edition C. Pozrikidis m Springer Contents Preface v 1 Introduction to Kinematics 1 1.1 Fluids and solids 1 1.2 Fluid parcels and flow

More information

Numerical Solution Techniques in Mechanical and Aerospace Engineering

Numerical Solution Techniques in Mechanical and Aerospace Engineering Numerical Solution Techniques in Mechanical and Aerospace Engineering Chunlei Liang LECTURE 3 Solvers of linear algebraic equations 3.1. Outline of Lecture Finite-difference method for a 2D elliptic PDE

More information

Periodic motions. Periodic motions are known since the beginning of mankind: Motion of planets around the Sun; Pendulum; And many more...

Periodic motions. Periodic motions are known since the beginning of mankind: Motion of planets around the Sun; Pendulum; And many more... Periodic motions Periodic motions are known since the beginning of mankind: Motion of planets around the Sun; Pendulum; And many more... Periodic motions There are several quantities which describe a periodic

More information

Finite Difference Methods for Boundary Value Problems

Finite Difference Methods for Boundary Value Problems Finite Difference Methods for Boundary Value Problems October 2, 2013 () Finite Differences October 2, 2013 1 / 52 Goals Learn steps to approximate BVPs using the Finite Difference Method Start with two-point

More information

2 Z. Li and C. Wang where u = (u; v) is the velocity, p is the pressure, ν is the viscosity. We assume that the boundary of the is piecewise

2 Z. Li and C. Wang where u = (u; v) is the velocity, p is the pressure, ν is the viscosity. We assume that the boundary of the is piecewise A fast finite difference method for solving Navier-Stokes Equations on irregular domains Zhilin Li Λ Cheng Wang y April 17, 2002 keywords: Navier-Stokes equations, irregular domains, vorticity stream-function

More information

Appendix C: Recapitulation of Numerical schemes

Appendix C: Recapitulation of Numerical schemes Appendix C: Recapitulation of Numerical schemes August 31, 2009) SUMMARY: Certain numerical schemes of general use are regrouped here in order to facilitate implementations of simple models C1 The tridiagonal

More information

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 1: Finite Difference Method

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 1: Finite Difference Method file:///d:/chitra/nptel_phase2/mechanical/cfd/lecture1/1_1.htm 1 of 1 6/19/2012 4:29 PM The Lecture deals with: Classification of Partial Differential Equations Boundary and Initial Conditions Finite Differences

More information

Basic Aspects of Discretization

Basic Aspects of Discretization Basic Aspects of Discretization Solution Methods Singularity Methods Panel method and VLM Simple, very powerful, can be used on PC Nonlinear flow effects were excluded Direct numerical Methods (Field Methods)

More information

FINITE VOLUME METHOD: BASIC PRINCIPLES AND EXAMPLES

FINITE VOLUME METHOD: BASIC PRINCIPLES AND EXAMPLES FINITE VOLUME METHOD: BASIC PRINCIPLES AND EXAMPLES SHRUTI JAIN B.Tech III Year, Electronics and Communication IIT Roorkee Tutors: Professor G. Biswas Professor S. Chakraborty ACKNOWLEDGMENTS I would like

More information

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids Fluid dynamics Math background Physics Simulation Related phenomena Frontiers in graphics Rigid fluids Fields Domain Ω R2 Scalar field f :Ω R Vector field f : Ω R2 Types of derivatives Derivatives measure

More information

Marching on the BL equations

Marching on the BL equations Marching on the BL equations Harvey S. H. Lam February 10, 2004 Abstract The assumption is that you are competent in Matlab or Mathematica. White s 4-7 starting on page 275 shows us that all generic boundary

More information

NUMERICAL SOLUTION OF ODE IVPs. Overview

NUMERICAL SOLUTION OF ODE IVPs. Overview NUMERICAL SOLUTION OF ODE IVPs 1 Quick review of direction fields Overview 2 A reminder about and 3 Important test: Is the ODE initial value problem? 4 Fundamental concepts: Euler s Method 5 Fundamental

More information

Pressure-velocity correction method Finite Volume solution of Navier-Stokes equations Exercise: Finish solving the Navier Stokes equations

Pressure-velocity correction method Finite Volume solution of Navier-Stokes equations Exercise: Finish solving the Navier Stokes equations Today's Lecture 2D grid colocated arrangement staggered arrangement Exercise: Make a Fortran program which solves a system of linear equations using an iterative method SIMPLE algorithm Pressure-velocity

More information

LES of Turbulent Flows: Lecture 3

LES of Turbulent Flows: Lecture 3 LES of Turbulent Flows: Lecture 3 Dr. Jeremy A. Gibbs Department of Mechanical Engineering University of Utah Fall 2016 1 / 53 Overview 1 Website for those auditing 2 Turbulence Scales 3 Fourier transforms

More information

Runge-Kutta-Chebyshev Projection Method

Runge-Kutta-Chebyshev Projection Method Runge-Kutta-Chebyshev Projection Method Zheming Zheng Linda Petzold Department of Mechanical Engineering, University of California Santa Barbara, Santa Barbara, CA 93106, USA June 8, 2006 This work was

More information

Von Neumann Analysis of Jacobi and Gauss-Seidel Iterations

Von Neumann Analysis of Jacobi and Gauss-Seidel Iterations Von Neumann Analysis of Jacobi and Gauss-Seidel Iterations We consider the FDA to the 1D Poisson equation on a grid x covering [0,1] with uniform spacing h, h (u +1 u + u 1 ) = f whose exact solution (to

More information

HIGH ACCURACY NUMERICAL METHODS FOR THE SOLUTION OF NON-LINEAR BOUNDARY VALUE PROBLEMS

HIGH ACCURACY NUMERICAL METHODS FOR THE SOLUTION OF NON-LINEAR BOUNDARY VALUE PROBLEMS ABSTRACT Of The Thesis Entitled HIGH ACCURACY NUMERICAL METHODS FOR THE SOLUTION OF NON-LINEAR BOUNDARY VALUE PROBLEMS Submitted To The University of Delhi In Partial Fulfillment For The Award of The Degree

More information

Modeling and Experimentation: Compound Pendulum

Modeling and Experimentation: Compound Pendulum Modeling and Experimentation: Compound Pendulum Prof. R.G. Longoria Department of Mechanical Engineering The University of Texas at Austin Fall 2014 Overview This lab focuses on developing a mathematical

More information

PDEs, part 1: Introduction and elliptic PDEs

PDEs, part 1: Introduction and elliptic PDEs PDEs, part 1: Introduction and elliptic PDEs Anna-Karin Tornberg Mathematical Models, Analysis and Simulation Fall semester, 2013 Partial di erential equations The solution depends on several variables,

More information

Computational Modeling for Physical Sciences

Computational Modeling for Physical Sciences Computational Modeling for Physical Sciences Since the invention of computers the use of computational modeling and simulations have revolutionized the way we study physical systems. Their applications

More information

Continuum Limit of Forward Kolmogorov Equation Friday, March 06, :04 PM

Continuum Limit of Forward Kolmogorov Equation Friday, March 06, :04 PM Continuum Limit of Forward Kolmogorov Equation Friday, March 06, 2015 2:04 PM Please note that one of the equations (for ordinary Brownian motion) in Problem 1 was corrected on Wednesday night. And actually

More information

Singularity structure of the electric field near the limiter of the tokamak

Singularity structure of the electric field near the limiter of the tokamak Singularity structure of the electric field near the limiter of the tokamak Steinbrecher György, Pometescu Nicolae Department of Physics, University of Craiova, Str. A. I. Cuza, No., 200585 - Craiova,

More information

Exponentials of Symmetric Matrices through Tridiagonal Reductions

Exponentials of Symmetric Matrices through Tridiagonal Reductions Exponentials of Symmetric Matrices through Tridiagonal Reductions Ya Yan Lu Department of Mathematics City University of Hong Kong Kowloon, Hong Kong Abstract A simple and efficient numerical algorithm

More information

Simple Examples on Rectangular Domains

Simple Examples on Rectangular Domains 84 Chapter 5 Simple Examples on Rectangular Domains In this chapter we consider simple elliptic boundary value problems in rectangular domains in R 2 or R 3 ; our prototype example is the Poisson equation

More information

q t = F q x. (1) is a flux of q due to diffusion. Although very complex parameterizations for F q

q t = F q x. (1) is a flux of q due to diffusion. Although very complex parameterizations for F q ! Revised Tuesday, December 8, 015! 1 Chapter 7: Diffusion Copyright 015, David A. Randall 7.1! Introduction Diffusion is a macroscopic statistical description of microscopic advection. Here microscopic

More information

Chapter 2 Algorithms for Periodic Functions

Chapter 2 Algorithms for Periodic Functions Chapter 2 Algorithms for Periodic Functions In this chapter we show how to compute the Discrete Fourier Transform using a Fast Fourier Transform (FFT) algorithm, including not-so special case situations

More information

Computational Fluid Dynamics

Computational Fluid Dynamics Computational Fluid Dynamics Dr.Eng. Reima Iwatsu Phone: 0355 69 4875 e-mail: iwatsu@las.tu-cottbus.de NACO Building Room 53-107 Time Summer Term Lecture: Tuesday 7:30-9:00 (every two weeks) LG4/310 Exercise:

More information

Index. higher order methods, 52 nonlinear, 36 with variable coefficients, 34 Burgers equation, 234 BVP, see boundary value problems

Index. higher order methods, 52 nonlinear, 36 with variable coefficients, 34 Burgers equation, 234 BVP, see boundary value problems Index A-conjugate directions, 83 A-stability, 171 A( )-stability, 171 absolute error, 243 absolute stability, 149 for systems of equations, 154 absorbing boundary conditions, 228 Adams Bashforth methods,

More information

Incompressible MHD simulations

Incompressible MHD simulations Incompressible MHD simulations Felix Spanier 1 Lehrstuhl für Astronomie Universität Würzburg Simulation methods in astrophysics Felix Spanier (Uni Würzburg) Simulation methods in astrophysics 1 / 20 Outline

More information

Numerical Solutions to Partial Differential Equations

Numerical Solutions to Partial Differential Equations Numerical Solutions to Partial Differential Equations Zhiping Li LMAM and School of Mathematical Sciences Peking University Numerical Methods for Partial Differential Equations Finite Difference Methods

More information

Computation Fluid Dynamics

Computation Fluid Dynamics Computation Fluid Dynamics CFD I Jitesh Gajjar Maths Dept Manchester University Computation Fluid Dynamics p.1/189 Garbage In, Garbage Out We will begin with a discussion of errors. Useful to understand

More information

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13 REVIEW Lecture 12: Spring 2015 Lecture 13 Grid-Refinement and Error estimation Estimation of the order of convergence and of the discretization error Richardson s extrapolation and Iterative improvements

More information

Finite Difference Methods for 3D Viscous Incompressible Flows in the Vorticity Vector Potential Formulation on Nonstaggered Grids

Finite Difference Methods for 3D Viscous Incompressible Flows in the Vorticity Vector Potential Formulation on Nonstaggered Grids JOURNAL OF COMPUTATIONAL PHYSICS 138, 57 82 (1997) ARTICLE NO. CP975815 Finite Difference Methods for 3D Viscous Incompressible Flows in the Vorticity Vector Potential Formulation on Nonstaggered Grids

More information

G6943y: Myths and Methods in Modeling (M&M s in M)

G6943y: Myths and Methods in Modeling (M&M s in M) 1 G6943y: Myths and Methods in Modeling (M&M s in M) Instructor Marc Spiegelman, (mspieg@ldeo.columbia.edu, xtn 8425 (LDEO), 212 854 4918 (DAPAM/Columbia)) Teaching Assistant TBA Dates and Times Spring

More information

NUMERICAL COMPUTATION OF A VISCOUS FLOW AROUND A CIRCULAR CYLINDER ON A CARTESIAN GRID

NUMERICAL COMPUTATION OF A VISCOUS FLOW AROUND A CIRCULAR CYLINDER ON A CARTESIAN GRID European Congress on Computational Methods in Applied Sciences and Engineering ECCOMAS 2000 Barcelona, 11-14 September 2000 c ECCOMAS NUMERICAL COMPUTATION OF A VISCOUS FLOW AROUND A CIRCULAR CYLINDER

More information

Natural Boundary Integral Method and Its Applications

Natural Boundary Integral Method and Its Applications Natural Boundary Integral Method and Its Applications By De-hao Yu State Key Laboratory of Scientific and Engineering Computing Institute of Computational Mathematics and Scientific/Engineering Computing

More information

5. FVM discretization and Solution Procedure

5. FVM discretization and Solution Procedure 5. FVM discretization and Solution Procedure 1. The fluid domain is divided into a finite number of control volumes (cells of a computational grid). 2. Integral form of the conservation equations are discretized

More information

Modeling, Simulating and Rendering Fluids. Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan

Modeling, Simulating and Rendering Fluids. Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan Modeling, Simulating and Rendering Fluids Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan Applications Mostly Hollywood Shrek Antz Terminator 3 Many others Games Engineering Animating Fluids is

More information

Chapter 2. General concepts. 2.1 The Navier-Stokes equations

Chapter 2. General concepts. 2.1 The Navier-Stokes equations Chapter 2 General concepts 2.1 The Navier-Stokes equations The Navier-Stokes equations model the fluid mechanics. This set of differential equations describes the motion of a fluid. In the present work

More information

Preliminary Examination, Numerical Analysis, August 2016

Preliminary Examination, Numerical Analysis, August 2016 Preliminary Examination, Numerical Analysis, August 2016 Instructions: This exam is closed books and notes. The time allowed is three hours and you need to work on any three out of questions 1-4 and any

More information

Introduction. Finite and Spectral Element Methods Using MATLAB. Second Edition. C. Pozrikidis. University of Massachusetts Amherst, USA

Introduction. Finite and Spectral Element Methods Using MATLAB. Second Edition. C. Pozrikidis. University of Massachusetts Amherst, USA Introduction to Finite and Spectral Element Methods Using MATLAB Second Edition C. Pozrikidis University of Massachusetts Amherst, USA (g) CRC Press Taylor & Francis Group Boca Raton London New York CRC

More information

where is the Laplace operator and is a scalar function.

where is the Laplace operator and is a scalar function. Elliptic PDEs A brief discussion of two important elliptic PDEs. In mathematics, Laplace's equation is a second-order partial differential equation named after Pierre-Simon Laplace who first studied its

More information

Computational Techniques Prof. Sreenivas Jayanthi. Department of Chemical Engineering Indian institute of Technology, Madras

Computational Techniques Prof. Sreenivas Jayanthi. Department of Chemical Engineering Indian institute of Technology, Madras Computational Techniques Prof. Sreenivas Jayanthi. Department of Chemical Engineering Indian institute of Technology, Madras Module No. # 05 Lecture No. # 24 Gauss-Jordan method L U decomposition method

More information

SPARSE SOLVERS POISSON EQUATION. Margreet Nool. November 9, 2015 FOR THE. CWI, Multiscale Dynamics

SPARSE SOLVERS POISSON EQUATION. Margreet Nool. November 9, 2015 FOR THE. CWI, Multiscale Dynamics SPARSE SOLVERS FOR THE POISSON EQUATION Margreet Nool CWI, Multiscale Dynamics November 9, 2015 OUTLINE OF THIS TALK 1 FISHPACK, LAPACK, PARDISO 2 SYSTEM OVERVIEW OF CARTESIUS 3 POISSON EQUATION 4 SOLVERS

More information

1.1 Implicit solution for vertical viscosity and diffusion terms using finite differences

1.1 Implicit solution for vertical viscosity and diffusion terms using finite differences 1 Vertical viscosity and diffusion operators in ROMS The purpose of this document is to provide sufficient technical detail for the implicit solvers in ROMS code. Although the mathematical concepts are

More information

Numerical Analysis of Differential Equations Numerical Solution of Elliptic Boundary Value

Numerical Analysis of Differential Equations Numerical Solution of Elliptic Boundary Value Numerical Analysis of Differential Equations 188 5 Numerical Solution of Elliptic Boundary Value Problems 5 Numerical Solution of Elliptic Boundary Value Problems TU Bergakademie Freiberg, SS 2012 Numerical

More information

GATE EC Previous Year Solved Paper

GATE EC Previous Year Solved Paper GATE EC Previous Year Solved Paper GATE 2017 is just round the corner. Engineering Mathematics is a highly scoring portion in GATE. A basic understanding of the concepts and a thorough practice is enough

More information

Computational Methods in Plasma Physics

Computational Methods in Plasma Physics Computational Methods in Plasma Physics Richard Fitzpatrick Institute for Fusion Studies University of Texas at Austin Purpose of Talk Describe use of numerical methods to solve simple problem in plasma

More information

arxiv: v2 [physics.comp-ph] 4 Feb 2014

arxiv: v2 [physics.comp-ph] 4 Feb 2014 Fast and accurate solution of the Poisson equation in an immersed setting arxiv:1401.8084v2 [physics.comp-ph] 4 Feb 2014 Alexandre Noll Marques a, Jean-Christophe Nave b, Rodolfo Ruben Rosales c Abstract

More information

Computation Fluid Dynamics Prof. Dr. Suman Chakraborty Department of Mechanical Engineering Indian Institute of Technology, Kharagpur

Computation Fluid Dynamics Prof. Dr. Suman Chakraborty Department of Mechanical Engineering Indian Institute of Technology, Kharagpur Computation Fluid Dynamics Prof. Dr. Suman Chakraborty Department of Mechanical Engineering Indian Institute of Technology, Kharagpur Lecture No. # 40 What is there in implementing a CFD Code So far, we

More information

1.1 Variational principle Variational calculations with Gaussian basis functions 5

1.1 Variational principle Variational calculations with Gaussian basis functions 5 Preface page xi Part I One-dimensional problems 1 1 Variational solution of the Schrödinger equation 3 1.1 Variational principle 3 1.2 Variational calculations with Gaussian basis functions 5 2 Solution

More information

FDM for parabolic equations

FDM for parabolic equations FDM for parabolic equations Consider the heat equation where Well-posed problem Existence & Uniqueness Mass & Energy decreasing FDM for parabolic equations CNFD Crank-Nicolson + 2 nd order finite difference

More information

Partial Differential Equations II

Partial Differential Equations II Partial Differential Equations II CS 205A: Mathematical Methods for Robotics, Vision, and Graphics Justin Solomon CS 205A: Mathematical Methods Partial Differential Equations II 1 / 28 Almost Done! Homework

More information

SOLVING ELLIPTIC PDES

SOLVING ELLIPTIC PDES university-logo SOLVING ELLIPTIC PDES School of Mathematics Semester 1 2008 OUTLINE 1 REVIEW 2 POISSON S EQUATION Equation and Boundary Conditions Solving the Model Problem 3 THE LINEAR ALGEBRA PROBLEM

More information

RAYLEIGH-BÉNARD CONVECTION IN A CYLINDER WITH AN ASPECT RATIO OF 8

RAYLEIGH-BÉNARD CONVECTION IN A CYLINDER WITH AN ASPECT RATIO OF 8 HEFAT01 9 th International Conference on Heat Transfer, Fluid Mechanics and Thermodynamics 16 18 July 01 Malta RAYLEIGH-BÉNARD CONVECTION IN A CYLINDER WITH AN ASPECT RATIO OF 8 Leong S.S. School of Mechanical

More information

3D Space Charge Routines: The Software Package MOEVE and FFT Compared

3D Space Charge Routines: The Software Package MOEVE and FFT Compared 3D Space Charge Routines: The Software Package MOEVE and FFT Compared Gisela Pöplau DESY, Hamburg, December 4, 2007 Overview Algorithms for 3D space charge calculations Properties of FFT and iterative

More information

Simulation Techniques for Intense Beams

Simulation Techniques for Intense Beams Simulation Techniques for Intense Beams * Steven M. Lund Lawrence Livermore National Laboratory (LLNL) Steven M. Lund and John J. Barnard USPAS: UCB: Beam Physics with Intense Space Charge Interaction

More information

Performance Analysis of Parallel Alternating Directions Algorithm for Time Dependent Problems

Performance Analysis of Parallel Alternating Directions Algorithm for Time Dependent Problems Performance Analysis of Parallel Alternating Directions Algorithm for Time Dependent Problems Ivan Lirkov 1, Marcin Paprzycki 2, and Maria Ganzha 2 1 Institute of Information and Communication Technologies,

More information

Contour Dynamics of Two-Dimensional Incompressible Systems

Contour Dynamics of Two-Dimensional Incompressible Systems Contour Dynamics of Two-Dimensional Incompressible Systems Christina Skowronski (a,b), Alan Dorsey (b), and Carlos Wexler (b) (a) Rutgers University, New Brunswick, NJ (b) University of Florida, Gainesville,

More information

Altered Jacobian Newton Iterative Method for Nonlinear Elliptic Problems

Altered Jacobian Newton Iterative Method for Nonlinear Elliptic Problems Altered Jacobian Newton Iterative Method for Nonlinear Elliptic Problems Sanjay K Khattri Abstract We present an Altered Jacobian Newton Iterative Method for solving nonlinear elliptic problems Effectiveness

More information

Introduction to numerical schemes

Introduction to numerical schemes 236861 Numerical Geometry of Images Tutorial 2 Introduction to numerical schemes Heat equation The simple parabolic PDE with the initial values u t = K 2 u 2 x u(0, x) = u 0 (x) and some boundary conditions

More information

Finite difference methods for the diffusion equation

Finite difference methods for the diffusion equation Finite difference methods for the diffusion equation D150, Tillämpade numeriska metoder II Olof Runborg May 0, 003 These notes summarize a part of the material in Chapter 13 of Iserles. They are based

More information

Direct Numerical Simulation of fractal-generated turbulence

Direct Numerical Simulation of fractal-generated turbulence Direct Numerical Simulation of fractal-generated turbulence S. Laizet and J.C. Vassilicos Turbulence, Mixing and Flow Control Group, Department of Aeronautics and Institute for Mathematical Sciences, Imperial

More information

PARALLEL PSEUDO-SPECTRAL SIMULATIONS OF NONLINEAR VISCOUS FINGERING IN MIS- Center for Parallel Computations, COPPE / Federal University of Rio de

PARALLEL PSEUDO-SPECTRAL SIMULATIONS OF NONLINEAR VISCOUS FINGERING IN MIS- Center for Parallel Computations, COPPE / Federal University of Rio de PARALLEL PSEUDO-SPECTRAL SIMULATIONS OF NONLINEAR VISCOUS FINGERING IN MIS- CIBLE DISPLACEMENTS N. Mangiavacchi, A.L.G.A. Coutinho, N.F.F. Ebecken Center for Parallel Computations, COPPE / Federal University

More information

The one-dimensional equations for the fluid dynamics of a gas can be written in conservation form as follows:

The one-dimensional equations for the fluid dynamics of a gas can be written in conservation form as follows: Topic 7 Fluid Dynamics Lecture The Riemann Problem and Shock Tube Problem A simple one dimensional model of a gas was introduced by G.A. Sod, J. Computational Physics 7, 1 (1978), to test various algorithms

More information

METHODS OF THEORETICAL PHYSICS

METHODS OF THEORETICAL PHYSICS METHODS OF THEORETICAL PHYSICS Philip M. Morse PROFESSOR OF PHYSICS MASSACHUSETTS INSTITUTE OF TECHNOLOGY Herman Feshbach PROFESSOR OF PHYSICS MASSACHUSETTS INSTITUTE OF TECHNOLOGY PART I: CHAPTERS 1 TO

More information

Study of Forced and Free convection in Lid driven cavity problem

Study of Forced and Free convection in Lid driven cavity problem MIT Study of Forced and Free convection in Lid driven cavity problem 18.086 Project report Divya Panchanathan 5-11-2014 Aim To solve the Navier-stokes momentum equations for a lid driven cavity problem

More information