DAE examples
The following examples of differential algebraic equations are drawn
from the book
Peter Kunkel and Volker Mehrmann: Differential Algebraic
Equations. Analysis and numerical methods. Zürich: European Mathematical Society Publishing House. (2006).
1 Example 1: A chemical reaction
<a name="test1"></a>
A chemical reaction is controled by external cooling.
is the concentration of the reactant,
temperature,
the reaction rate per unit volume,
the initial temparature,
the initial concentration and
the initial rate.
denotes the external cooling temperature (a given function of time).
The equation reads
|
are given constants which we choose as
|
The standard initial values are
For consistency it then follows that
is obtained from the third equation using
and
.
As
we take
.
and
for
are taken from the system, and
for
is obtained by differentiating the third equation
w.r.t.
and inserting these values.
This equation has index one: differentiate the third equation and insert
the derivatives from the first two in order to obtain an explicit system.
We take the rather long time interval
.
You may change the values
.
2 Example 2
<a name="test2"></a>
The van der Pol equation
|
and its limit case for
:
You may work with smaller and smaller
and with
.
Then this equation has also index 1: differentiate the second equation and
insert
for
. We use as standard initial values
and
.
This implies
.
is chosen consistently as
.
For these values and
the equation exhibits a singularity very near to
.
We take
as final time. For
there is no such singularity, but
cusps build up for smaller and smaller values.
You may change here the initial value
and
if
or only
if
. In the latter case it follows from the
consistency conditions that
|
3 Example 3
<a name="test3"></a>
The pendulum, a typical from the constrained motion examples (like occur in
multibody motions applications):
|
Here
is the mass mounted at the tip of the pendulum,
is the position of the tip and
is the force acting along the pendulum.
is the earth acceleration.
This equation has index three.
It is rewritten in first order form using
as
|
In this form it cannot be solved using the BDF-code, since the Jacobian does not allow the
computation of
. We proceed in transforming it into index one:
Repeated differentiation of the fifth equation gives
|
The last equation gives us the required explicit representation of
.
As final semiexplicit system of index one we now use
|
For the computation of consistent initial values you can chose two parameters only:
and
. Then
|
We use
and
as standard values.
and
.
File translated from
TEX
by
TTM Unregistered,
version 4.03.
On 16 Jun 2016, 18:43.