Professional Documents
Culture Documents
Abstract
In this paper the adoption of a novel high accuracy numerical integration method is
presented for a practical mechanical engineering application. It is based on the di-
rect use of the Taylor series. The main idea behind it is a dynamic automatic order
setting, i.e. using as many Taylor series terms for computing as needed to achieve
the required accuracy. Previous results have already proved that this numerical
solver is both very accurate and fast. In this paper the performance is validated for
a real engineering assembly. The chosen experiment setup is a multi-torsional os-
cillator chain which reproduces typical dynamic behavior of industrial mechanical
engineering problems. Its rotatory dynamics are described by linear differential
equations. For the test series the system is operated in a closed-loop configuration.
An analytic solution of the linear differential equations of the closed-loop system
for the output variable is obtained with the mathematical software tool Maple and
validated by comparison to measurements at the experiment. The performance of
the Modern Taylor Series Method is demonstrated by comparing its results to sim-
ulation results from conventional fixed-step numerical integration methods from
the software tool Matlab/Simulink. Furthermore, the improvement in numerical
accuracy as well as stability is illustrated.
Keywords: Simulation, Taylor series, Numerical integration, Matlab/Simulink.
where
v̇ = − sin t
u = sin t
Fig. 1 Multi-torsion chain
v [p] = −u[p−2] (p ≥ 2)
u[p−1] = v [p−2] (p ≥ 2) (8)
3.2 Modeling
Similar constructions can be created for all elementary The system’s dynamical behavior is modeled using a
functions, such as exp, sin, cos, tan, coth, ln, sinh, . . . . mathematical-physical approach consisting of the elec-
The right-hand side of equations that belong to the tech- trical and mechanical subsystems.
nical initial problems can be decomposed in a sequence Servo drive
of simple operations: addition, subtraction, multiplica- The servo drive is illustrated in Fig. 2. The goal is to
tion, division and combination of them. These rules can model the torque T , subject to the terminal voltage U
be applied recursively so that recursive formulas for the and the speed φ̇1 .
derivatives of a function described by combinations of
these elementary functions can be obtained.
Jm
More detailed information about the MTSM can be
Rm Tm
found in [3]. The MTSM has been implemented in
U Um φ̇1 T
TKSL software [5], which is used for simulation results
in this paper.
Some articles that are focused on the MTSM were pub- im ωm
lished last year. Paper [6] describes a new modern nu- J
merical method based on the Taylor series method and
shows how to evaluate the high accuracy and speed of Fig. 2 Servo drive of the multi-torsion chain
the corresponding computations. Article [7] deals with
the simulation system TKSL that has been created for
the numerical solution of first order differential equa- Using Kirchhoff’s laws and the law of conservation of
tions using the MTSM. angular momentum, one obtains the relation
φ̇1 = a (13)
U − Km kg φ̇1 φ̇2 = b (14)
J1 φ̈1 = kg Km −T (9)
Rm φ̇3 = c (15)
1
ȧ = [ks1 (φ2 − φ1 ) + λ1 (b − a) −
J1
between the speed φ̇1 , the terminal voltage U and the Km 2 2
kg Km kg
drive torque T , with kg being the gear transmission ra- − a] − [k1 φ1 + k2 φ2 +
Rm J1 Rm
tio, Km the gyrator constant of the motor and J1 =
Jm kg2 + J the combined moment of inertia of the motor +k3 φ3 + k4 a + k5 b +
and the gear transmission. +k6 c − Kw w] (16)
ks1 ks2
Multi-torsion chain ḃ = [φ1 − φ2 ] + [φ3 − φ2 ] +
J2 J2
The two torsional modules each consist of an oscillator
and a rubber cuff which serves as connection to the next λ1 λ2
[a − b] + [c − b]. (17)
module, respectively to the servo drive. Fig. 3 shows J2 J2
the two torsional modules schematically. The mass mo- ks2 λ2
ments of inertia of the two oscillators are denominated ċ = [φ2 − φ3 ] + [b − c]. (18)
J3 J3
J2 and J3 , the torsional stiffnesses of the rubber cuffs
ks1 and ks2 , and the torsional damping resistances λ1 Note that the ki and Kw in Eq. (16) are the con-
and λ2 . Using the law of conservation of angular mo- troller parameters of the closed-loop setup given in Sec-
tion 5.1. Therefore, Eqs. (13) - (18) already character-
φ2 , φ̇2
ize the closed-loop dynamics.
φ3 , φ̇3
φ1 , φ̇1
ks1 , λ1 ks2 , λ2 5 Setup for Comparison
The goal of this paper is to compare results from the
T
MTSM and conventional numerical integration meth-
ods from Matlab/Simulink. The variable which is used
J2 J3 for comparison is the angle φ3 of the torsional chain
(see Fig. 3). For this purpose an analytical solution for
Fig. 3 Torsional modules a rectangular input signal U (see Section 5.2) is ob-
tained by the mathematical software tool Maple. This
solution is validated by comparison to measurements of
mentum for the two torsional modules as well as rela- the real system described in Section 3. The validation is
tion (9), one obtains conducted in Section 5.2. The analytical solution from
Maple is used for the comparison of the simulation re-
sults from the MTSM and Matlab solvers. The compu-
1
φ̈1 = [ks1 (φ2 − φ1 ) + λ1 (φ̇2 − φ̇1 ) + tation error is calculated as difference between the an-
J1 alytical solution from Maple and the numerical results
2 2
Km kg Km kg from the MTSM and Matlab solvers, respectively.
+U − φ̇1 ] (10)
Rm Rm 5.1 Controller
ks1 ks2
φ̈2 = [φ1 − φ2 ] + [φ3 − φ2 ] + The system is controlled in closed-loop by a state vector
J2 J2
feedback controller whose parameters are computed by
λ1 λ2 pole placement. The general structure of such a closed-
+ [φ̇1 − φ̇2 ] + [φ̇3 − φ̇2 ] (11)
J2 J2 loop control system with the reference input w and the
ks2 λ2 output y is depicted in Fig. 5.1.
φ̈3 = [φ2 − φ3 ] + [φ̇2 − φ̇3 ]. (12)
J3 J3 For more information about control design see
[13],[14].
fT
k'* u
E state-feedback
x0
w u ẋ R x y Fig. 6 Simulink model
Kw b (·)dt cT
A plant
kT
controller The analytical solution y ∗ from Maple and the simula-
tion results ysim from Matlab/Simulink (ODE1, ODE3,
Fig. 4 State vector feedback control structure ODE4) and the MTSM (ODE6) respectively are shown
in Fig. 7.
w
measurement on the real system was 0.001 s and for the 5
y∗
ODE1
4
analytical solution in Maple it was 0.005 s. In Fig. 5 3
ODE3
ODE4
the magenta line is the measured signal from the real 2
ODE6
w, y ∗ , ysim (deg)
system (ym ) and the green one is the analytical output 1
drawn in black. -1
-2
-3
-4
w
5 y∗ -5
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
4
ym time(s)
3
Fig. 7 Simulation results
2
w, y ∗ , ym (deg)
From these results it can be seen that the output calcu- 0.2
e(deg)
the real system very well. It is therefore used for the -0.2
comparison of the numerical integration methods.
-0.4
2.5
x 10
ODE3
Tab. 1 Absolute error of numerical methods for differ-
2
ODE6 ent frequencies of input signal w
1.5 f Solver error - absolute
1 [Hz] ODE1 ODE3 ODE4 ODE6
0.5
0.25 0.0239 8.6097e-5 0.0033 3.4532e-6
e(deg)
0
0.5 0.0431 0.0067 1.5218e-4 3.3982e-6
-0.5
0.75 0.0713 0.0056 0.0117 3.3137e-6
-1
1 0.0910 3.1738e-4 0.0150 3.2607e-6
-1.5
-2
-2.5
Tab. 2 Relative error in percent of numerical methods
0 1 2 3 4 5
time(s)
for different frequencies of input signal w
f Solver error - relative
Fig. 9 Error between analytical and numerical solutions [Hz] ODE1 ODE3 ODE4 ODE6
for ODE3 and ODE6 solvers 0.25 1.91 0.12 0.41 1.5787e-4
0.5 3.12 0.12 0.81 1.5916e-4
-6
5
x 10 0.75 4.12 0.63 1.19 1.6093e-4
ODE6
4 1 6.15 0.14 1.8 1.6241e-4
3
2
the step size is increased the results will show unsta-
1
ble behavior once a critical step size has been reached.
e(deg)
8
Fig. 10 Error between analytical and numerical solution w
for ODE6 solver 6
ODE3
ODE6
n
1X ∗
ēabs = |y − ysim,i | (20) 0
n i=0 i
-2