Numerical integration of DAE s

Similar documents
ODE - Problem ROBER. 0.04y y 2 y y y 2 y y y 2 2

6.2 Mathematical description of the problem. i = m j (y j y i )=r 3 2

Efficient numerical methods for the solution of stiff initial-value problems and differential algebraic equations

Numerical Integration of Equations of Motion

c 2004 Society for Industrial and Applied Mathematics

INRIA Rocquencourt, Le Chesnay Cedex (France) y Dept. of Mathematics, North Carolina State University, Raleigh NC USA

An Implicit Runge Kutta Solver adapted to Flexible Multibody System Simulation

Time domain analog circuit simulation

ETNA Kent State University

19.2 Mathematical description of the problem. = f(p; _p; q; _q) G(p; q) T ; (II.19.1) g(p; q) + r(t) _p _q. f(p; v. a p ; q; v q ) + G(p; q) T ; a q

Stabilität differential-algebraischer Systeme

INTEGRATION OF THE EQUATIONS OF MOTION OF MULTIBODY SYSTEMS USING ABSOLUTE NODAL COORDINATE FORMULATION

ONE-STEP 4-STAGE HERMITE-BIRKHOFF-TAYLOR DAE SOLVER OF ORDER 12

12 Chemical Akzo Nobel problem

Differential-Algebraic Equations (DAEs)

Lecture 10: Singular Perturbations and Averaging 1

The DAETS Differential-Algebraic Equation Solver

Modelling Physical Phenomena

A note on the uniform perturbation index 1

Lecture 13 - Wednesday April 29th

Technische Universität Berlin

Advanced methods for ODEs and DAEs. Lecture 9: Multistep methods/ Differential algebraic equations

Defect-based a posteriori error estimation for index-1 DAEs

Advanced methods for ODEs and DAEs

Ordinary differential equation II

Semi-implicit Krylov Deferred Correction Methods for Ordinary Differential Equations

Numerical Methods for Differential Equations

Solving Constrained Differential- Algebraic Systems Using Projections. Richard J. Hanson Fred T. Krogh August 16, mathalacarte.

Numerical Algorithms for ODEs/DAEs (Transient Analysis)

10.34: Numerical Methods Applied to Chemical Engineering. Lecture 19: Differential Algebraic Equations

CHAPTER 10: Numerical Methods for DAEs

The collocation method for ODEs: an introduction

Ordinary Differential Equations

Logistic Map, Euler & Runge-Kutta Method and Lotka-Volterra Equations

An initialization subroutine for DAEs solvers: DAEIS

Inverse Dynamics of Flexible Manipulators

Stability analysis of differential algebraic systems

Index Reduction and Discontinuity Handling using Substitute Equations

SDE Coefficients. March 4, 2008

EXISTENCE OF NEUTRAL STOCHASTIC FUNCTIONAL DIFFERENTIAL EQUATIONS WITH ABSTRACT VOLTERRA OPERATORS

EXTENSIONS OF THE HHT-α METHOD TO DIFFERENTIAL-ALGEBRAIC EQUATIONS IN MECHANICS

CHAPTER 5: Linear Multistep Methods

A family of A-stable Runge Kutta collocation methods of higher order for initial-value problems

On the stability regions of implicit linear multistep methods

A definition of stiffness for initial value problems for ODEs SciCADE 2011, University of Toronto, hosted by the Fields Institute, Toronto, Canada

Numerical Treatment of Unstructured. Differential-Algebraic Equations. with Arbitrary Index

Numerical Methods for Differential Equations

Lecture 4: Numerical solution of ordinary differential equations

Mathematical Computing


Optimal control of nonstructured nonlinear descriptor systems

369 Nigerian Research Journal of Engineering and Environmental Sciences 2(2) 2017 pp

Defect-based a-posteriori error estimation for implicit ODEs and DAEs

Geometric Numerical Integration

Second Derivative Generalized Backward Differentiation Formulae for Solving Stiff Problems

Differential Equation Types. Moritz Diehl

Polytechnic Institute of NYU MA 2132 Final Practice Answers Fall 2012

Consistency and Convergence

Research Article On the Numerical Solution of Differential-Algebraic Equations with Hessenberg Index-3

Ordinary Differential Equations I

Solving PDEs with PGI CUDA Fortran Part 4: Initial value problems for ordinary differential equations

2tdt 1 y = t2 + C y = which implies C = 1 and the solution is y = 1

Linear Systems Theory

MATH 251 Examination II April 7, 2014 FORM A. Name: Student Number: Section:

consideration, is indispensable. Due to the great number of restarts, one for each split-step time interval, it is particularly important to use integ

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point

Differential Equations

Multistage Methods I: Runge-Kutta Methods

25. Chain Rule. Now, f is a function of t only. Expand by multiplication:

Efficient corrector iteration for DAE time integration in multibody dynamics

Ordinary Differential Equation Theory

A relaxation of the strangeness index

Solving systems of ODEs with Matlab

Differential-Algebraic Equations (DAEs) Differential-algebraische Gleichungen

SPECIALIZED RUNGE-KUTTA METHODS FOR INDEX 2 DIFFERENTIAL-ALGEBRAIC EQUATIONS

3.4 The Chain Rule. F (x) = f (g(x))g (x) Alternate way of thinking about it: If y = f(u) and u = g(x) where both are differentiable functions, then

Southern Methodist University.

On The Numerical Solution of Differential-Algebraic Equations(DAES) with Index-3 by Pade Approximation

Chapter 6 Nonlinear Systems and Phenomena. Friday, November 2, 12

Four Point Gauss Quadrature Runge Kuta Method Of Order 8 For Ordinary Differential Equations

Investigation on the Most Efficient Ways to Solve the Implicit Equations for Gauss Methods in the Constant Stepsize Setting

NAG Library Chapter Introduction d02 Ordinary Differential Equations

Method of Lines. Received April 20, 2009; accepted July 9, 2009

Arbitrary order Krylov deferred correction methods for differential algebraic equations

Math 241, Exam 1 Information.

Automatic Differentiation and Implicit Differential Equations

PRECONDITIONING AND PARALLEL IMPLEMENTATION OF IMPLICIT RUNGE-KUTTA METHODS.

Modified Defect Correction Algorithms for ODEs. Part II: Stiff Initial Value Problems

Ordinary Differential Equations II

Differential Equations

Review: control, feedback, etc. Today s topic: state-space models of systems; linearization

1.2 Derivation. d p f = d p f(x(p)) = x fd p x (= f x x p ). (1) Second, g x x p + g p = 0. d p f = f x g 1. The expression f x gx

Delay Differential-Algebraic Equations

NUMERICAL SOLUTION OF ODE IVPs. Overview

Iterative solution of SPARK methods applied to DAEs

Ordinary Differential Equations I

Ordinary Differential Equations (ODEs) Background. Video 17

Blended implementation of block implicit methods for ODEs

Mathematics for chemical engineers. Numerical solution of ordinary differential equations

Specification of PSIDE

Transcription:

Numerical integration of DAE s seminar Sandra Allaart-Bruin sbruin@win.tue.nl seminar p.1

Seminar overview February 18 Arie Verhoeven Introduction to DAE s seminar p.2

Seminar overview February 18 Arie Verhoeven Introduction to DAE s March 10 Sandra Allaart-Bruin Numerical Integration of DAE s seminar p.2

Seminar overview February 18 Arie Verhoeven Introduction to DAE s March 10 Sandra Allaart-Bruin Numerical Integration of DAE s March 17 Pieter Heres DAE s in electrical circuits seminar p.2

Seminar overview February 18 Arie Verhoeven Introduction to DAE s March 10 Sandra Allaart-Bruin Numerical Integration of DAE s March 17 Pieter Heres DAE s in electrical circuits March 31 Mikhail Sizov DAE s in Multibody systems seminar p.2

Seminar overview February 18 Arie Verhoeven Introduction to DAE s March 10 Sandra Allaart-Bruin Numerical Integration of DAE s March 17 Pieter Heres DAE s in electrical circuits March 31 Mikhail Sizov DAE s in Multibody systems April 28 Michael Guenther Expert seminar p.2

Overview Test DAE seminar p.3

Overview Test DAE Trapezoidal rule seminar p.3

Overview Test DAE Trapezoidal rule Backward Differentiation Formulae seminar p.3

Overview Test DAE Trapezoidal rule Backward Differentiation Formulae Modified Extended BDF seminar p.3

Overview Test DAE Trapezoidal rule Backward Differentiation Formulae Modified Extended BDF Codes seminar p.3

Simple test-case DAE: x(t) = sin(t) x (t) + y(t) = 0 seminar p.4

Simple test-case DAE: x(t) = sin(t) x (t) + y(t) = 0 exact solution x(t) = sin(t) y(t) = cos(t) seminar p.4

Simple test-case DAE: x(t) = sin(t) x (t) + y(t) = 0 exact solution x(t) = sin(t) y(t) = cos(t) linear constant coefficients: Ax (t) + Bx(t) = g(t) [ ] ( ) [ ] ( ) ( ) 0 0 x (t) 1 0 x(t) sin(t) 1 0 y + = (t) 0 1 y(t) 0 seminar p.4

Simple test-case DAE: x(t) = sin(t) x (t) + y(t) = 0 exact solution x(t) = sin(t) y(t) = cos(t) linear constant coefficients: Ax (t) + Bx(t) = g(t) [ ] ( ) [ ] ( ) ( ) 0 0 x (t) 1 0 x(t) sin(t) 1 0 y + = (t) 0 1 y(t) 0 What is the index? seminar p.4

Differential index The differential index k of a (non)linear, sufficiently smooth DAE is the smallest k such that f(x, x, t) = 0 d dt f(x, x, t) = 0. d k dt k f(x, x, t) = 0 uniquely determines x as a continuous function of (x, t). seminar p.5

Index Differential index δ = 2 seminar p.6

Index Differential index δ = 2 Tractability index τ = 2 seminar p.6

Index Differential index δ = 2 Tractability index τ = 2 Perturbation index π = 2 seminar p.6

Index Differential index δ = 2 Tractability index τ = 2 Perturbation index π = 2 There always holds that: δ τ δ + 1 seminar p.6

Consistent Initial Values f(x, x, t) = 0 x 0 is a consistent initial value, if there exists a smooth solution that fullfills x(t 0 ) = x 0 and this solution is defined for all t. seminar p.7

Consistent Initial Values x(t) = sin(t) x (t) + y(t) = 0 x 0 is a consistent initial value, if there exists a smooth solution that fullfills x(t 0 ) = x 0 and this solution is defined for all t. seminar p.7

Consistent Initial Values x(t) = sin(t) x (t) + y(t) = 0 x 0 is a consistent initial value, if there exists a smooth solution that fullfills x(t 0 ) = x 0 and this solution is defined for all t. Algebraic constraint: x(t) = sin(t) seminar p.7

Consistent Initial Values x(t) = sin(t) x (t) + y(t) = 0 x 0 is a consistent initial value, if there exists a smooth solution that fullfills x(t 0 ) = x 0 and this solution is defined for all t. Algebraic constraint: x(t) = sin(t) Hidden algebraic constraint: y(t) = cos(t) seminar p.7

Consistent Initial Values x(t) = sin(t) x (t) + y(t) = 0 x 0 is a consistent initial value, if there exists a smooth solution that fullfills x(t 0 ) = x 0 and this solution is defined for all t. Algebraic constraint: x(t) = sin(t) Hidden algebraic constraint: y(t) = cos(t) Consistent initial values: x 0 y 0 = sin(0) = cos(0) seminar p.7

Trapezoidal rule Consider the following ODE: x (t) = f(x(t), t) The trapezoidal rule applied: x n+1 x n h = 1 2 (f(x n+1, t n+1 ) + f(x n, t n )) seminar p.8

Trapezoidal rule test DAE x(t) = sin(t) x (t) + y(t) = 0 The Trapezoidal rule applied: x n+1 + x n = sin(t n+1 ) + sin(t n ) x n+1 x n h + 1 2 (y n+1 + y n ) = 0 seminar p.9

Trapezoidal rule 1.5 Trapeziodal rule 1 x 0 = sin(0) y 0 = cos(0) 0.5 0 0.5 1 x y 1.5 seminar p.10

Trapezoidal rule 1.5 Trapezoidal rule 1 x 0 = sin(0) y 0 = cos(0) h 0.5 0 0.5 1 x y 1.5 seminar p.10

Trapezoidal rule 1500 1000 x y Trapezoidal rule x 0 = h y 0 = cos(0) 500 0 500 1000 1500 seminar p.10

Analysis Trapezoidal rule x n+1 = sin(t n+1 ) + x n sin(t n ) y n+1 = y n 2 h (x n+1 x n ) If x 0 sin(0) then x n+1 is never equal to sin(t n+1 ). seminar p.11

Backward Diff. Formula Consider the following ODE: x (t) = f(x(t), t) The Backward Differentiation Formula applied: k j=1 α j x n+j = hβ k f(x n+k, t n+k ) Remark: 1-step BDF is Euler Implicit (α 0 = 1, α 1 = 1, β 1 = 1) seminar p.12

Backward Diff. Formula test DAE x(t) = sin(t) x (t) + y(t) = 0 1-step BDF x n+1 = sin(t n+1 ) x n+1 x n h + y n+1 = 0 seminar p.13

Backward Diff. Formula 1.5 1 step BDF 1 x 0 = sin(0) y 0 = cos(0) 0.5 0 0.5 1 x y 1.5 seminar p.14

Backward Diff. Formula 1.5 1 step BDF 1 x 0 = sin(0) y 0 = cos(0) h 0.5 0 0.5 1 x y 1.5 seminar p.14

Backward Diff. Formula 1.5 1 step BDF 1 x 0 = h y 0 = cos(0) 0.5 0 0.5 1 x y 1.5 seminar p.14

analysis 1-step BDF x n+1 = sin(t n+1 ) y n+1 = x n+1 x n h seminar p.15

analysis 1-step BDF x n+1 = sin(t n+1 ) y n+1 = x n+1 x n h BDF solves the algebraic equation exact! seminar p.15

BDF convergence A k step BDF with constant stepsize, applied to a const. coeff. DAE with diff. index µ, is convergent with order p = k after (µ 1)k + 1 steps. seminar p.16

BDF convergence A k step BDF with constant stepsize, applied to a const. coeff. DAE with diff. index µ, is convergent with order p = k after (µ 1)k + 1 steps. What if we use variable stepsizes? seminar p.16

BDF BDF method perfect? seminar p.17

BDF BDF method perfect? A-stable up to order 2 (Dalhquist Barrier). seminar p.17

BDF BDF method perfect? A-stable up to order 2 (Dalhquist Barrier). A(α) stable up to order 6. seminar p.17

BDF BDF method perfect? A-stable up to order 2 (Dalhquist Barrier). A(α) stable up to order 6. other methods? seminar p.17

Modified Extended BDF Ax (t) + g(x(t), t) = 0 1st BDF step x n k x n k 1 x n 1 x n x n+1 2nd BDF step g( x n,t n ) g(x n+1,t n ) Evaluation step Final step x n (3 x same Jacobian) seminar p.18

Order reduction k-step Convergence order consistent method index-1 DAE index-2 DAE solutions BDF k k + MEBDF k+1 k + seminar p.19

Available codes code method authors DAE index IDE RADAU IRK Hairer, Wanner 3 - GELDA BDF,RK Mehrmann + MEBDFI MEBDF Abdulla, Cash 3 + DASSL BDF Petzold 1 + PSIDE IRK De Swart a.o. 3 + GAMD BVM Iavernaro, 3 + Mazzia seminar p.20

Available codes http://www-iam.mathematik.hu-berlin.de/ lamour/ code for index reduction and computing consistent initial values. seminar p.21

Available codes http://www-iam.mathematik.hu-berlin.de/ lamour/ code for index reduction and computing consistent initial values. index 2: x(t) = sin(t) x (t) + y(t) = 0 seminar p.21

Available codes http://www-iam.mathematik.hu-berlin.de/ lamour/ code for index reduction and computing consistent initial values. index 2: x(t) = sin(t) x (t) + y(t) = 0 index 1: x(t) = cos(t) x (t) + y(t) = 0 seminar p.21

Summary Trapezoidal rule is not suited for DAE s. seminar p.22

Summary Trapezoidal rule is not suited for DAE s. BDF with fixed stepsize is suited for DAE s. seminar p.22

Summary Trapezoidal rule is not suited for DAE s. BDF with fixed stepsize is suited for DAE s. Index of DAE is important for convergence results. seminar p.22

Summary Trapezoidal rule is not suited for DAE s. BDF with fixed stepsize is suited for DAE s. Index of DAE is important for convergence results. There are a lot of different codes available for DAE s with index 3. seminar p.22

References Ordinary Differential Equations in Theory and Practice, Mattheij and Molenaar Solving Ordinary Differential Equations II, Hairer and Wanner Numerical Solution of Initial-Value Problems in Differential-Algebraic Equations, Brenan, Campbell and Petzold http://pitagora.dm.uniba.it/ testset seminar p.23

Questions? seminar p.24