Simulation of ordinary and differential-algebraic equations

Contents

  1. Introduction to simulation
  2. Simulation of ordinary differential equations, including stiff problems
  3. Simulation of differential-algebraic equations
  4. Modelica and simulation of object-oriented models

Schedule 2026

Lecture Date  Room  Slides
ODE 1 16/1, 10:15 - 12:00 L-huset   
ODE 2 16/1, 14:15 - 16:00 L-huset OH
ODE 3 23/1, 10:15 - 12:00 L-huset OH
ODE 4 23/1, 13:15 - 15:00 L-huset OH
Discussions, ODE 5/2, 13:15 - 15:00 L-huset  
DAE 1 4/2, 13:15 - 15:00 L-huset OH
DAE 2 4/2, 15:15 - 17:00 L-huset OH
DAE 3 19/2, 13:15 - 15:00 Systemet OH
DAE 4 19/2, 15:15 - 17:00 Systemet OH
Discussions, DAE 3/3, 13:15 - 16:00 Visionen, stora konferensrummet  

Examination

  • Hand in of mandatory exercises in exercises.
  • Report of a mandatory mini-project in a topic related to the course. For example, choose a simulation model, possibly related to your research project, and demonstrate the correctness of the simulation.
  • Oral examination: Explain and discuss theory and methods

Course plan – ODE –

ODE 1 - Introduction/simulation of ordinary differential equations

  • Responsible: Lars Eriksson
  • Contents
    • Basic ODE:
    • Problem formulations (some classic problems from Hairer-Norsett-Wanner), existance and uniqueness.
    • Simple one-step methods, implicit and explicit.
  • Course material

ODE 2 - Introduction/simulation of ordinary differential equations

  • Responsible: Lars Eriksson
  • Contents
    • Concepts: Convergence, consistency, 0-stability, absolute stability. Stiff decay.
    • Explicit one step methods: Runge-Kutta family.
    • Step length control, parameters for step length control.
  • Course material
    • First 4 chapters in Ascher-Petzold until page 95.

ODE 3 - Introduction/simulation of ordinary differential equations

  • Responsible: Lars Eriksson
  • Contents
    • More on implicit and multi-step methods.
    • Step length control, parameters for step length control.
    • Zero detection.
    • Start implementation of an explicit (or implicit) method with step length control.
    • Continued work on implementation and exercises in the course.
  • Course material

ODE 4 - Introduction/simulation of ordinary differential equations

  • Responsible: Lars Eriksson
  • Contents
    • Discussion about results from hand in assignments.
    • Stiff problems, A-stability, L-stability.
    • Implicit methods for stiff problems, BDF methods.
    • Implementation of implicit methods.
  • Course material

Course plan – DAE –

DAE 1 - Simulation of differential-algebraic equations

  • Responsible: Erik Frisk
  • Contents
    • Introduction to differential-algebraic equations (DAE:s)
    • Examples of DAE models
    • Existence and uniqueness of solutions to DAE:s
    • What is a DAE, compared to an ODE?
    • Index definitions for DAE:s
    • Initial conditions for DAE:s
    • Why are index-1 DAE:s easy and index>1 DAE:s difficult to simulate?
  • Course material

    Chapters 9 and 10 in Ascher/Petzold is good additional material. The paper S.L. Campbell and C.W. Gear, The index of general nonlinear DAEs, Numerische Mathematik, Vol 72, No. 2, 173-196, 1995 gives a thorough description of different index for anyone interested.

  • Exercises: 2.1-3, 2.5, 2.7, 2.10a, 2.11

DAE 2 - Simulation of differential-algebraic equations

  • Responsible: Erik Frisk
  • Contents
    • Introduction to method for semi-explicit index-1 DAE:s
      • state-space
      • epsilon-embedding + implicit Runge-Kutta
      • BDF (DASSL)
    • Pantelides algorithm for determination of consistent initial conditions
    • Some methods for index reduction
    • Problems with drift and possible solutions
      • Baumgarte stabilization
      • Projection methods
    • Some about order and convergence with solvers, stiffly accurate methods
    • ODE/DAE:er with invariants
    • The unstructured problem F(y’,y,x)=0 and overdetermined models
  • Course material
  • Exercises: 2.26, 2.14-15, 2.18, 2.22, 2.33

DAE 3 - Modelica and simulation of object-oriented models

Responsible: Erik F

DAE4 - Modelica and simulation of object-oriented models

  • Responsible: Erik F
  • Contents:
    • Pantelides algorithm
    • Finding consistent initial conditions
    • Computing structural index
    • Index reduction using dummy-derivatives
  • Course material:
  • Exercises: 2.13, 2.29, 2.35, 2.30