MA5233: Computational Mathematics

Slides:



Advertisements
Similar presentations
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Advertisements

Numerical Integration
Roundoff and truncation errors
Numerical Method for Computing Ground States of Spin-1 Bose-Einstein Condensates Fong Yin Lim Department of Mathematics and Center for Computational Science.
A History of Numerical Analysis Ideas Alan Kaylor Cline Department of Computer Sciences The University of Texas at Austin Prepared for CS 378 History of.
Numerical Methods for Problems in Unbounded Domains
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
Today’s class Romberg integration Gauss quadrature Numerical Methods
COMP1261 Advanced Algorithms n 15 credits, Term 1 (Wednesday 9-12) n Pre-requisites: Calculus and Mathematical Methods, Numerical Mathematics and Computer.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 32 Ordinary Differential Equations.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 31 Ordinary Differential Equations.
CVEN Exam 1 Review. Matlab.m files Matlab.m files Programming: FOR, WHILE, IF and FUNCTION Programming: FOR, WHILE, IF and FUNCTION Taylor Series.
1 A Matrix Free Newton /Krylov Method For Coupling Complex Multi-Physics Subsystems Yunlin Xu School of Nuclear Engineering Purdue University October 23,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
1 Error Analysis Part 1 The Basics. 2 Key Concepts Analytical vs. numerical Methods Representation of floating-point numbers Concept of significant digits.
Ordinary Differential Equations (ODEs)
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
Numerical methods for PDEs PDEs are mathematical models for –Physical Phenomena Heat transfer Wave motion.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Chapter 12 Fast Fourier Transform. 1.Metropolis algorithm for Monte Carlo 2.Simplex method for linear programming 3.Krylov subspace iteration (CG) 4.Decomposition.
MA3264: Mathematical Modeling Weizhu Bao Department of Mathematics & Center for Computational Science and Engineering National University of Singapore.
MMJ 1113 Computational Methods for Engineers Mohsin Mohd Sies Fakulti Kejuruteraan Mekanikal, Universiti Teknologi Malaysia.
Chapter 17 Boundary Value Problems. Standard Form of Two-Point Boundary Value Problem In total, there are n 1 +n 2 =N boundary conditions.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
MATH 685/CSI 700 Lecture Notes Lecture 1. Intro to Scientific Computing.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
EE 3561_Unit_1(c)Al-Dhaifallah EE 3561 : - Computational Methods in Electrical Engineering Unit 1: Introduction to Computational Methods and Taylor.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
ES 240: Scientific and Engineering Computation. Chapter 4 Chapter 4: Errors Uchechukwu Ofoegbu Temple University.
Lecture 22 - Exam 2 Review CVEN 302 July 29, 2002.
STE 6239 Simulering Friday, Week 1: 5. Scientific computing: basic solvers.
MA5251: Spectral Methods & Applications
Computational Physics Introduction 3/30/11. Goals  Calculate solutions to physics problems  All physics problems can be formulated mathematically. 
Lecture 1 - Introduction June 3, 2002 CVEN 302. Lecture’s Goals General Introduction to CVEN Computer Applications in Engineering and Construction.
Integration of 3-body encounter. Figure taken from
On the Use of Sparse Direct Solver in a Projection Method for Generalized Eigenvalue Problems Using Numerical Integration Takamitsu Watanabe and Yusaku.
Computational Aspects of Multi-scale Modeling Ahmed Sameh, Ananth Grama Computing Research Institute Purdue University.
Akram Bitar and Larry Manevitz Department of Computer Science
© Fluent Inc. 11/24/2015J1 Fluids Review TRN Overview of CFD Solution Methodologies.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Introduction Course Outline.
Numerical Methods.
Numerical Analysis Intro to Scientific Computing.
MECH4450 Introduction to Finite Element Methods Chapter 9 Advanced Topics II - Nonlinear Problems Error and Convergence.
Numerical Analysis – Differential Equation
Numerical Analysis. Numerical Analysis or Scientific Computing Concerned with design and analysis of algorithms for solving mathematical problems that.
FALL 2015 Esra Sorgüven Öner
Discretization for PDEs Chunfang Chen,Danny Thorne Adam Zornes, Deng Li CS 521 Feb., 9,2006.
MULTISCALE COMPUTATIONAL METHODS Achi Brandt The Weizmann Institute of Science UCLA
Partial Derivatives Example: Find If solution: Partial Derivatives Example: Find If solution: gradient grad(u) = gradient.
MECH593 Introduction to Finite Element Methods
Numerical Analysis Intro to Scientific Computing.
SCIENTIFIC DISCOVERY EXPERIMENT THEORY SCIENTIFIC COMPUTING 1.
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
Lecture 1 Introduction Dr. Hakikur Rahman Thanks to Dr. S. M. Lutful Kabir for Slides CSE 330: Numerical Methods.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
S5.40. Module Structure 30% practical tests / 70% written exam 3h lectures / week (except reading week) 3 x 2h of computer labs (solving problems practicing.
Chapter 12 Fast Fourier Transform
Convergence in Computational Science
Class Notes 18: Numerical Methods (1/2)
MATH My research interests lie primarily in the area of numerical analysis and scientific computing, …
Analytical Tools in ME Course Objectives
Introduction CSE 541.
EE 616 Computer Aided Analysis of Electronic Networks Lecture 12
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Akram Bitar and Larry Manevitz Department of Computer Science
Presentation transcript:

MA5233: Computational Mathematics Weizhu Bao Department of Mathematics & Center for Computational Science and Engineering National University of Singapore Email: bao@math.nus.edu.sg URL: http://www.math.nus.edu.sg/~bao

Computational Science Third paradigm for Discovery in Science Solving scientific & engineering problems Interdisciplinary Problem-driven Mathematical models Numerical methods Algorithmic aspects— computer science Programming Software Applications, ……

Dynamics of soliton in quantum physics

Wave interaction in plasma physics

Wave interaction in particle physics

Vortex-pair dynamics in superfluidity

Vortex-dipole dynamics in superfluidity

Vortex lattice dynamics in superfluidity

Vortex lattice dynamics in BEC

Computational Science Computational Mathematics – Scientific computing/numerical analysis Computational Physics Computational Chemistry Computational Biology Computational Fluid Dynamics Computational Enginnering Computational Materials Sciences ……...

Steps for solving a practical problems Physical or engineering problems Mathematical model – physical laws Analytical methods – existence, regularity, solution, … Numerical methods – discretization Programming -- coding Results -- computing Compare with experimental results

Computational Mathematics Numerical analysis/Scientific computing A branch of mathematics interested in constructive methods Obtain numerically the solution of mathematical problems Theory or foundation of computational science Develop new numerical methods Computational error analysis: Stability Convergence Convergence rate or order of accuracy,….

History Numerical analysis can be traced back to a symposium with the title ``Problems for the Numerical Analysis of the Future, UCLA, July 29-31, 1948. Volume 15 in Applied Mathematics Series, National Bureau of Standards Boom of research and applications: Fluid flow, weather prediction, semiconductor, physics, ……

Milestone Algorithms 1901: Runge-Kutta methods for ODEs 1903: Cholesky decomposition 1926: Aitken acceleration process 1946: Monte Carlo method 1947: The simplex algorithm 1955: Romberg method 1956: The finite element method

Milestone algorithms 1957: The Fortran optimizing compiler 1959: QR algorithm 1960: Multigrid method 1965: Fast Fourier transform (FFT) 1969: Fast matrix manipulations 1976: High Performance computing & packages: LAPACK, LINPACK – Matlab 1982: Wavelets 1982: Fast Multipole method

Top 10 Algorithms 1946: Monte Carlo method 1947: Simplex method for linear programming 1950: Krylov subspace iterative methods 1951: Decompositional approach for matrix computation 1957: Fortran optimizing compiler 1959-61: QR algorithms 1962: Quicksort 1965: Fast Fourier Transform (FFT) 1977: Integer relation detection algorithm 1982: Fast multipole algorithm http://amath.colorado.edu/resources/archive/topten.pdf

Contents Basic numerical methods Numerical linear algebra Round-off error Function approximation and interpolation Numerical integration and differentiation Numerical linear algebra Linear system solvers Eigenvalue probems Numerical ODE Nonlinear equations solvers & optimization

Contents Numerical PDE Problem driven research: Finite difference method (FDM) Finite element method (FEM) Finite volume method (FVM) Spectral method Problem driven research: Computational Fluid dynamics (CFD) Computational physics Computational biology, ……

How to do it well Three key factors Ability for a graduate student Master all kinds of different numerical methods Know and aware the progress in the applied science Know and aware the progress in PDE or ODE Ability for a graduate student Solve problem correctly Write your results neatly Speak your results well and clear – presentation Find good problems to solve

Numerical error Example 1: Example 2: Example 3: Example 4:

Numerical error Truncation error or error of the method Round-off error: due to finite digits of numbers in computer Numerical errors for practical problems Truncation error Round-off error Model error & observation error & empirical error etc.

Absolute error Absolute error: Absolute error bound (not unique!!):

Relative error An example: Relative error: Relative error bound:

Absolute error bounds for basic operations Suppose Error bounds

Significant digits An example Definition: n significant digits Method: Write in the standard form Count the number of digits after decimal

Error spreading: An example Algorithm 1: Use 4 significant digits for practical computation Results

Error spreading: An example Algorithm 2 Result Truncation error analysis

Convergence and its rate Numerical integration Exact solution

Numerical methods Composite midpoint rule Composite Simpson’s rule Composite trapezoidal rule Error estimate

Numerical results

Numerical errors

Observations Before h0 After h1 Between h0 and h1 Truncation error is too large !! After h1 Round-off error is dominated!! Between h0 and h1 Clear order of accuracy is observed for the method We can observe clear convergence rate for proper region of the mesh size!!!

Numerical Differentiation The total error

Numerical Differentiation

Numerical Differentiation Total error depends Truncation error: Round-off error: Minimizer of E(h): Double precision: Clear region to observe truncation error:

How to determine order of accuracy Numerical approximation or method How to determine p and C?? By plot log E(h) vs log h

How to determine order of accuracy By quotation