240 5 Numerical Solution of ODEs and DAEs
Υ =
∂
∂q
∂T
∗
∂f
f +
∂
∂t
∂T
∗
∂f
−
∂T
∗
∂q
+
∂V
∂q
+
∂D
∂f
− e
s
,
e
s
= [e
s
1
, e
s
2
, ···, e
s
N
]
T
, Γ = [Γ
1
, Γ
2
, ···, Γ
m
3
]
T
, Σ = [Σ
1
, Σ
2
, ···, Σ
m
4
]
T
.
In these equations q(t) ∈ R
N
denotes the displacement variables, f(t) ∈
R
N
denotes the corresponding flow variables, e
s
∈ R
N
denotes the known
source efforts, λ(t) ∈ R
m
1
denote the Lagrange multipliers associated with
the displacement constraints φ(q) ∈ R
m
1
, µ(t) ∈ R
m
2
denote the Lagrange
multipliers associated with the flow constraints ψ(q, f ) ∈ R
m
2
, e(t) ∈ R
m
3
denotes the regulated effort variables, and s(t) ∈ R
m
4
denotes the dynamic
variables. The kinetic coenergy is T
∗
(q, f, t), the potential energy is V (q), and
the dissipation function is D(f ). The displacement variables must satisfy the
constraints φ(q) = 0. The flow variables must satisfy the constraints ψ(q, f) =
0. The regulated efforts e must satisfy the constraints Γ (q, f, s, e, t) = 0. The
dynamic constraints satisfy the differential equation ˙s = Σ(q, f, s, e, t).
This system consists of 2N + m
1
+ m
2
+ m
3
+ m
4
differential-algebraic
equations in the variables q, f, λ, µ, e and s. It is assumed that the displace-
ment, flow and effort constraints are linearly independent. That is, φ
q
has
rank m
1
, ψ
f
has rank m
2
, and Γ
e
has rank m
3
, along the solution to the
LDAEs.
The index-3 Lagrangian DAEs (5.43) can be put in the GGL index-2 form
by introducing the multipliers ν ∈ R
m
1
and the constrains φ
q
f = 0 to get
˙q − f + φ
T
q
ν = 0,
M
˙
f + φ
T
q
λ + ψ
T
f
µ + Υ = 0,
˙s −Σ = 0,
φ = 0,
φ
q
f = 0,
ψ = 0,
Γ = 0. (5.44)
The system (5.44) can be viewed as the implicit differential equation Φ(Y,
˙
Y , t)
= 0, with state Y = [q
T
, f
T
, s
T
, e
T
, λ
T
, µ
T
, ν
T
]
T
. We are interested in finding
initial conditions Y (t
0
),
˙
Y (t
0
) such that Φ(Y (t
0
),
˙
Y (t
0
), t
0
) = 0.
This dynamic system has n−(m
1
+m
2
)+m
4
‘degrees of freedom’. Among
the N = 2n + 2m
2
+ m
2
+ m
3
+ m
4
state variables we can arbitrarily assign
n−(m
1
+m
2
) displacements, n−(m
1
+m
2
) flows, and m
4
dynamic variables
at the initial time. All the other state variables and the state derivatives must
be selected to satisfy (5.44).
A general procedure for finding consistent initial conditions of the La-
grangian DAEs is as follows. Let I ⊆ {1, 2, ···, n} denote the indexes of
the independent displacement variables (and corresponding flow variables).
Hence, the cardinality of I is n − (m
1
+ m
2
). Let Y
(0)
= [(q
(0)
)
T
, (f
(0)
)
T
,
(s
(0)
)
T
, (e
(0)
)
T
, (λ
(0)
)
T
, (µ
(0)
)
T
, (ν
(0)
)
T
]
T
, denote an estimate of the initial