Lecture on Numerical Analysis Dr.-Ing. Michael Dumbser

Slides:



Advertisements
Similar presentations
M. Dumbser 1 / 23 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Lecture on Numerical.
Advertisements

Lecture on Numerical Analysis Dr.-Ing. Michael Dumbser
M. Dumbser 1 / 18 Analisi Numerica Università degli Studi di Trento Dipartimento dIngegneria Civile ed Ambientale Dr.-Ing. Michael Dumbser Lecture on Numerical.
Lecture on Numerical Analysis Dr.-Ing. Michael Dumbser
Numeric Integration Methods Jim Van Verth Red Storm Entertainment
Ordinary Differential Equations
Chapter 6 Differential Equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L8&9 KFUPM.
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
Integration Techniques
Ordinary Differential Equations
PART 7 Ordinary Differential Equations ODEs
MANE 4240 & CIVL 4240 Introduction to Finite Elements Numerical Integration in 1D Prof. Suvranu De.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 32 Ordinary Differential Equations.
11 September 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 10 – Ordinary Differential Equations 11 September am – 9.00 am.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 31 Ordinary Differential Equations.
Initial-Value Problems
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
8-1 Chapter 8 Differential Equations An equation that defines a relationship between an unknown function and one or more of its derivatives is referred.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
Numerical Solutions of Ordinary Differential Equations
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
Ordinary Differential Equations (ODEs)
Numerical Solution of Ordinary Differential Equation
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
PART 7 Ordinary Differential Equations ODEs
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
-S.SIVARAJA Dept of MATHEMATICS.  N-NUMERICAL  M-METHODS EASY TO LEARN & EASY TO SCORE.
Numerical Solutions to ODEs Nancy Griffeth January 14, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 13.
Boyce/DiPrima 9th ed, Ch 8.4: Multistep Methods Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce and Richard.
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Introduction to Numerical Methods for ODEs and PDEs Methods of Approximation Lecture 3: finite differences Lecture 4: finite elements.
Erin Catto Blizzard Entertainment Numerical Integration.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
ME451 Kinematics and Dynamics of Machine Systems
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Computer Animation Algorithms and Techniques
Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب.
Integration of 3-body encounter. Figure taken from
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ~ Ordinary Differential Equations ~ Stiffness and Multistep.
Numerical Solutions of ODE
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 12.
Ordinary Differential Equations (ODEs) 1Michael Sokolov / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Michael Sokolov ETH Zurich, Institut.
Integration for physically based animation CSE 3541 Matt Boggus.
The simple pendulum (Formulation as a differential-algebraic equation) Consider a small mass m attached to a light inelastic string of length l, with the.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Game Technology Animation V Generate motion of objects using numerical simulation methods Physically Based Animation.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Runge Kutta schemes Taylor series method Numeric solutions of ordinary differential equations.
Differential Equations
Solving Ordinary Differential Equations
Integrators of higher order
Numerical Methods by Dr. Laila Fouad.
ECE 576 – Power System Dynamics and Stability
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Numerical Solutions of Ordinary Differential Equations
Class Notes 19: Numerical Methods (2/2)
Numerical Analysis Lecture 45.
Sec:25.3 RUNGE-KUTTA METHODS.
ORBITAL Trajectories!!! Made by Karol Sanchez
Sec:5.4 RUNGE-KUTTA METHODS.
Numerical Analysis Lecture 37.
Numerical Analysis Lecture 38.
Numerical solution of first-order ordinary differential equations
Numerical Computation and Optimization
MATH 2140 Numerical Methods
Numerical Analysis Lecture 36.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
Presentation transcript:

Lecture on Numerical Analysis Dr.-Ing. Michael Dumbser 17 / 12 / 2007

Ordinary Differential Equations An equation of the form is called a nonlinear ordinary differential equation (ODE) of first order. The simplest first order ODE is the equation with The exact solution of this simple ODE is obtained as follows:

Ordinary Differential Equations A simple nonlinear ordinary differential equation (ODE) of first order is given by with The exact solution of this simple nonlinear ODE can be computed in a similar way:

Numerical Methods for the Integration of ODE The simplest numerical method for the integration of first order ODEs is the so-called explicit (forward) Euler method, invented already in the 18th century by the mathematician Leonhard Euler. It corresponds to the use of a first order accurate finite difference scheme to approximate the derivative on the left hand side of the ODE and to compute the operator on the right hand side at the current state yn and time tn: Computing the function f on the right hand side at the unknown time tn+1, we obtain the so-called implicit (backward) Euler method:

Numerical Methods for the Integration of ODE A simple modification of the forward Euler scheme, which yields a second order accurate method, is based on the following approach: Integrate the ODE from time level tn to time level tn+1: The integral on the right hand side is now evaluated using a one-point Gaussian quadrature formula (the midpoint is the integration point): Unfortunately, the value of y is not known at tn+1/2, but we can approximate it making a half time-step of the forward Euler scheme. This means, that first, a so-called predictor is computed at the half time-step Dt/2: The corrector is then:

Numerical Methods for the Integration of ODE One of the most famous and mostly commonly used schemes for ODE integration is the explicit fourth-order scheme of Runge and Kutta:

Exercise 1 Write a MATLAB script ODECompare.m that integrates the following two ODE: Use the explicit (forward) Euler method, using different time steps and compare with the exact solutions. Use the modified second order Euler method (=second order Runge-Kutta scheme) with different time steps, and compare with the exact solutions. Use the fourth order Runge-Kutta scheme with various time steps. Compare with the exact solutions.

Exercise 2 Wite a MATLAB script Springs.m that integrates the linear ODE system for position and velocity for a system of N point masses, connected by springs as follows: m1 mi-1 mi mi+1 mN The ODE system for the positions of the point masses is simply: The forces acting on point mass i are Where ki are the spring stiffnesses and Li are the lengths of the springs in their undeformed state. The ODE system for the velocities of the point masses is then Use the second order Runge-Kutta scheme (modified Euler method).

Exercise 3 Wite a MATLAB script Orbit.m that integrates the linear ODE system for position and velocity for a planet, turning around a star. The ODE system for the position vector of the planet is: The gravitation force of the star, acting on the planet, is given by: The ODE system for the velocity vector of the planet is Use the second order Runge-Kutta time integration scheme (modified Euler method).