Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings Theory / 15

Similar documents
Numerical Methods for PDEs : Video 9: 2D Finite Difference February 14, Equations / 29

AMS527: Numerical Analysis II

Introduction to Computational Mathematics

Robot Mapping. Least Squares Approach to SLAM. Cyrill Stachniss

Graphbased. Kalman filter. Particle filter. Three Main SLAM Paradigms. Robot Mapping. Least Squares Approach to SLAM. Least Squares in General

Jacobian of Point Coordinates w.r.t. Parameters of General Calibrated Projective Camera

Journal of Engineering Research and Studies E-ISSN

Isogeometric Collocation Method

Finite Element Analysis Prof. Dr. B. N. Rao Department of Civil Engineering Indian Institute of Technology, Madras. Lecture - 24

1.2 Numerical Solutions of Flow Problems

An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (2000/2001)

Maple as an Instructional Tool

Fast marching methods

2. Use elementary row operations to rewrite the augmented matrix in a simpler form (i.e., one whose solutions are easy to find).

MA 162: Finite Mathematics - Sections 2.6

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB

Finite Element Analysis Dr. B. N. Rao Department of Civil Engineering Indian Institute of Technology Madras. Module - 01 Lecture - 15

2D Object Definition (1/3)

Adaptive numerical methods

Boundary element quadrature schemes for multi- and many-core architectures

Iterative Methods for Linear Systems

Harmonic Spline Series Representation of Scaling Functions

Finite Element Analysis Prof. Dr. B. N. Rao Department of Civil Engineering Indian Institute of Technology, Madras. Lecture - 36

Lab - Introduction to Finite Element Methods and MATLAB s PDEtoolbox

AMSC/CMSC 460 Final Exam, Fall 2007

Lecture 3.2 Methods for Structured Mesh Generation

Parametric Surfaces. Substitution

Contents. I The Basic Framework for Stationary Problems 1

First of all, we need to know what it means for a parameterize curve to be differentiable. FACT:

MODERN FACTOR ANALYSIS

COMP 4601 Hubs and Authorities

Examples from Section 7.1: Integration by Parts Page 1

Matrix Inverse 2 ( 2) 1 = 2 1 2

Parallel Implementations of Gaussian Elimination

521493S Computer Graphics Exercise 2 Solution (Chapters 4-5)

Variational Methods II

1 2 (3 + x 3) x 2 = 1 3 (3 + x 1 2x 3 ) 1. 3 ( 1 x 2) (3 + x(0) 3 ) = 1 2 (3 + 0) = 3. 2 (3 + x(0) 1 2x (0) ( ) = 1 ( 1 x(0) 2 ) = 1 3 ) = 1 3

Name of student. Personal number. Teaching assistant. Optimisation: Stereo correspondences for fundamental matrix estimation.

Polar Coordinates. Chapter 10: Parametric Equations and Polar coordinates, Section 10.3: Polar coordinates 28 / 46

x = 12 x = 12 1x = 16

Anisotropic quality measures and adaptation for polygonal meshes

Objectives and Homework List

QUADRATIC UNIFORM B-SPLINE CURVE REFINEMENT

Parallel Performance Studies for COMSOL Multiphysics Using Scripting and Batch Processing

Integrated Math I. IM1.1.3 Understand and use the distributive, associative, and commutative properties.

Polynomials tend to oscillate (wiggle) a lot, even when our true function does not.

) 2 + (y 2. x 1. y c x2 = y

Math background. 2D Geometric Transformations. Implicit representations. Explicit representations. Read: CS 4620 Lecture 6

CHAPTER 5 SYSTEMS OF EQUATIONS. x y

DEPARTMENT - Mathematics. Coding: N Number. A Algebra. G&M Geometry and Measure. S Statistics. P - Probability. R&P Ratio and Proportion

Robot Mapping. A Short Introduction to Homogeneous Coordinates. Gian Diego Tipaldi, Wolfram Burgard

Mathematics 96 (3581) CA (Class Addendum) 2: Associativity Mt. San Jacinto College Menifee Valley Campus Spring 2013

Using Arrays and Vectors to Make Graphs In Mathcad Charles Nippert

Multidimensional scaling

(Creating Arrays & Matrices) Applied Linear Algebra in Geoscience Using MATLAB

Iterative Algorithms I: Elementary Iterative Methods and the Conjugate Gradient Algorithms

An idea which can be used once is a trick. If it can be used more than once it becomes a method

Control Volume Finite Difference On Adaptive Meshes

MEI STRUCTURED MATHEMATICS METHODS FOR ADVANCED MATHEMATICS, C3. Practice Paper C3-B

An Introduction to Numerical Analysis

10/26/ Solving Systems of Linear Equations Using Matrices. Objectives. Matrices

Motivation Patch tests Numerical examples Conclusions

3. Replace any row by the sum of that row and a constant multiple of any other row.

Jane Li. Assistant Professor Mechanical Engineering Department, Robotic Engineering Program Worcester Polytechnic Institute

COMPUTER AIDED ENGINEERING DESIGN (BFF2612)

Multiple View Geometry in Computer Vision

When implementing FEM for solving two-dimensional partial differential equations, integrals of the form

What you will learn today

= f (a, b) + (hf x + kf y ) (a,b) +

Polar Coordinates. Chapter 10: Parametric Equations and Polar coordinates, Section 10.3: Polar coordinates 27 / 45

Direct Rendering. Direct Rendering Goals

Continuity and Tangent Lines for functions of two variables

1 Projective Geometry

A numerical grid and grid less (Mesh less) techniques for the solution of 2D Laplace equation

Open and Closed Sets

Linear Equation Systems Iterative Methods

As a consequence of the operation, there are new incidences between edges and triangles that did not exist in K; see Figure II.9.

Multiview Stereo COSC450. Lecture 8

Image deblurring by multigrid methods. Department of Physics and Mathematics University of Insubria

Computational Fluid Dynamics - Incompressible Flows

CDA6530: Performance Models of Computers and Networks. Chapter 8: Statistical Simulation --- Discrete-Time Simulation

CS 395T Lecture 12: Feature Matching and Bundle Adjustment. Qixing Huang October 10 st 2018

Chapter 1 BACKGROUND

A MATRIX FORMULATION OF THE CUBIC BÉZIER CURVE

Contents. I Basics 1. Copyright by SIAM. Unauthorized reproduction of this article is prohibited.

Isometries. 1 Identifying Isometries

Finite Element Convergence for Time-Dependent PDEs with a Point Source in COMSOL 4.2

Solve Non-Linear Parabolic Partial Differential Equation by Spline Collocation Method

Perspective Projection in Homogeneous Coordinates

LAB 4: Introduction to MATLAB PDE Toolbox and SolidWorks Simulation

Projective geometry for Computer Vision

SYSTEMS OF NONLINEAR EQUATIONS

Linear Interpolating Splines

1 Exercise: Heat equation in 2-D with FE

Performing Matrix Operations on the TI-83/84

Natural Quartic Spline

Modeling Ground Water Problems Using the Complex Polynomial Method

To Do. Outline. Translation. Homogeneous Coordinates. Foundations of Computer Graphics. Representation of Points (4-Vectors) Start doing HW 1

Transfinite Interpolation Based Analysis

3D Geometry and Camera Calibration

Transcription:

22.520 Numerical Methods for PDEs : Video 11: 1D Finite Difference Mappings Theory and Matlab February 15, 2015 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015 1 Theory / 15

Idea So far, we ve only considered square and simple 1-D unit domains. What is domain is something other than a square/rectangle/unit line? What if finite difference is not aligned with x and y directions? What if the nodes are along a curved line? So far, the nodes have been equally spaced. What about refining locally to get better answers? How to we setup finite differences with varying node refinement? 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015 2 Theory / 15

Idea Define a mapping, T, between a computational and physical domain. Can be mathematical or numerical (computational physical) Transform governing equation from the physical computational. Solve the PDE on the computational domain Map the computational results to the physical domain. 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015 3 Theory / 15

Let s use the 1-D string example: Let s define the physical and computational domains Computational: Define computational domain: ξ = (0, 1). Define the physical space as follows: The real string is 4 units long. The real string is refined at sides. x(ξ) = 2cos(πξ) 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015 4 Theory / 15

We d like to solve: 2 u(x(ξ)) = 2 u x 2 = f on the computational domain rather than physical domain. To do this, we need to recognize that: u(x) = u(x(ξ)) Goal: what is the equivalent equation to solve on the computational domain. ie. What equation can we solve in ξ domain and get the answer? 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015 5 Theory / 15

Let s start by expressing ( ) x in the computational domain. The goal is to find the derivatives w.r.t. ξ rather than x. This way, we can perform finite differences w.r.t. ξ. Taking the first derivative: Similarly, we can write: ( ) x = ( ) dξ ξ dx ( ) ξ = ( ) dx x dξ 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015 6 Theory / 15

So, the first derivative is: (u) x = (u) dξ ξ dx Now, let s try the second derivative: ( ) 2 u (u) x 2 = x = x ( ) (u) x dξ ξ dx = f Substituting in the first derivative result from above: 2 u x 2 = dξ ( u dx ξ ξ dξ ) = f dx 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015 7 Theory / 15

Now, we need to apply the chain rule: 2 u x 2 = dξ ( u dx ξ ξ Continuing by simplification: Continuing: 2 u x 2 = ( ) dξ 2 dx ξ ) dξ dx + dξ u dx ξ ( ) u + dξ u ξ dx ξ 2 u x 2 = 1 2 u ) 2 ξ 2 1 ( dx dξ ( dx dξ ξ ( ) dξ = f dx ( ) 1 = f ξ dx dξ ) 3 2 x ξ 2 u ξ = f 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015 8 Theory / 15

Using J to represent the Jacobian of the mapping, J = dx dξ, the equation is : 2 u x 2 = 1 2 u J 2 ξ 2 1 2 x u J 3 ξ 2 ξ = f The result is an equivalent equation in the computational domain as that which must be satisfied in the physical domain. The components in blue are those corresponding to the geometry. Those in red correspond to the derivative of the solution in the computational domain. 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015 9 Theory / 15

To implement the equation in a finite difference solution method in the computational domain: 2 u x 2 = 1 J 2 2 u ξ 2 1 J 3 2 x ξ 2 u ξ = f Substitute the second order, central difference equations for the first and second derivatives: ( 2 ) u x 2 = 1 ( ) ui 1 2u i + u i+1 J 2 ξ 2 1 2 ( ) x ui+1 u i 1 J 3 ξ 2 = f i 2 x Now, all that s left is to construct the matrices. 22.520 Numerical Methods for PDEs : Video 11: 1D Finite February Difference 15, Mappings 2015 10 Theory / 15

Let s generalize for a given row i of the matrix: ( 2 ) u x 2 = 1 ( ) ui 1 2u i + u i+1 J 2 ξ 2 1 2 ( ) x ui+1 u i 1 J 3 ξ 2 = f i = 1 2 x The A-Matrix entries are: ( ) 1 1 A(row i, column i ) = 2 J 2 ξ 2 ( ) 1 1 A(row i, column i + 1) = 1 J 2 ξ 2 1 J 3 2 x ( ) 1 1 A(row i, column i 1) = 1 J 2 ξ 2 + 1 J 3 2 x ξ 2 f (row i ) = 1 ( 1 ξ 2 ) 2 ξ ) ( 1 2 ξ 22.520 Numerical Methods for PDEs : Video 11: 1D Finite February Difference 15, Mappings 2015 11 Theory / 15

For our example: 2 u(x(ξ)) = f x = 2cos(πξ) The mapping coefficients can be analytically computed: dx dξ = 2π sin(πξ) d 2 x dξ 2 = 2π 2 cos(πξ) Alternatively, if we only had the points in the physical domain (ie. not provided with an analytical mapping), we could simply use finite difference formulae to calculate the derivatives, e.g.: dx dξ = x i+1 x i 1 2 ξ 22.520 Numerical Methods for PDEs : Video 11: 1D Finite February Difference 15, Mappings 2015 12 Theory / 15

1-D string example solution (computational vs. physical): 22.520 Numerical Methods for PDEs : Video 11: 1D Finite February Difference 15, Mappings 2015 13 Theory / 15

Let s check our infinity-norm convergence (max error) : The convergence is second order (i.e., the solution converges as expected) 22.520 Numerical Methods for PDEs : Video 11: 1D Finite February Difference 15, Mappings 2015 14 Theory / 15

What have we learned? We can transform an equation from a tricky physical domain to a simpler reference computational domain. We need to develop a new governing equation for the computational domain that represents the physical domain equation but on a uniform grid/spacing. Once we have the mapping & new equation, the solution to the finite difference problem is identical to what was done before. The mapping can be computed numerically or analytically (depending on complexity). 22.520 Numerical Methods for PDEs : Video 11: 1D Finite February Difference 15, Mappings 2015 15 Theory / 15