Professional Documents
Culture Documents
Deggendorf
Content:
1.2 Examples 7
1.2.1 Electrical System 7
1.2.2 Mechanical System 7
1.2.3 Hydraulic System 7
6 EXERCISES 29
6.1 Questions 29
In general:
1
q1 (t ) [u (t ) x(t )]
R
R resistance
q1(t) flow value
u(t) – x(t) „gradient“
Examples:
differential way: q 2 ( t ) K x (t )
t
This law is the result of balance equations for the specific type of system:
Mechanical systems:
1.2 Examples
1.2.1 Electrical System
1 Simple RC network
Potential law: i1 (t ) (u1 (t ) u 2 (t ))
R
i1(t)
1
Storage Law: u 2 (t ) i2 (t ) i2(t)
C R
u1(t) u2(t)
Balance Law: i1 (t ) i2 (t ) 0 C
Result:
Figure 1
RC u 2 (t ) u 2 (t ) u1 (t )
Result: h QT(t)
1 1
h(t ) h(t ) Q1 (t ) Q2(t)
2g A 2g
Figure 3
dX X0 2! dX
X 0
d
y Y Y0 f ( X ) x
dX X0
pL YN
QV Q0YN 1
p0 p0 pL QV(t)
The linearisation of the characteristic function of the valve at a small excursion about
a working point P0(YN0, pL0) yields a linear expression:
QV QV
QV QV QV 0 YN p L K y YN K p p L
YN p L Y
YN 0 , pL 0 N 0 , pL 0
1 1
x(t ) 2 x(t ) 2x 2
2 2
u3 Summation
Negative sign is placed at a summation input where necessary.
u1
y y (t ) u1 (t ) u 2 (t ) u3 (t )
u2
Constant
u
K
y
y (t ) K u (t )
Ki
Integration
Ki is the integration constant
t
u y
y (t ) K i u ( ) d y0
0
u3 Multiplication in general
y (t ) u1 (t ) u 2 (t ) u3 (t )
u1 y
u2
K, T
Functions which are often used in complex systems can
be designed as specific boxes.
u y
Example: PT1 system y (t ) T y (t ) K u (t )
armature circuit
LA 1
i A (t ) i A (t ) [u A (t ) e A (t )]
RA RA
Inner torque
M M (t ) K 2 i A (t )
mechanic behaviour
1
n(t ) [ M M (t ) M L (t )]
2J
t
1
n(t ) [ M M ( ) M L ( )]d n0
0
2 J
Back electromotive force
e A (t ) K1 n(t )
ML(t)
1/RA LA/RA 1/2J
K2
uA(t) n(t)
iA(t) MM(t)
eA(t)
K1
iL(t)
R
u1(t) L C uC(t)
We can calculate the behaviour of the voltage uc against u1 and the behaviour of the
current iL against u1 in time and frequency domain. Thus we get two different
system models.
Can we find a system model which describes the behaviour of more than one system
output in a compact form? The problem can be solved by a state variable model of
this network in the following chapter.
4.2.1 Definitions
What are the state equations? (from [NSN], pp. 134 ...)
The state equations are a set of n simultaneous first-order differential equations
with n variable, where the n variables to be slved are the state variables.
What are the output equations? (from [NSN], pp. 134 ...)
The output equations are a set of algebraic equations that expresses the output
variables of a system as a linear combination of the state variables and the
inputs.
A linear system with k inputs, m outputs and n state variables can be described by a
set of state equations and an output equation in vector matrix form.
x A x B u
n x1 n x n n x1 n x k k x1
y C x D u
m x1 m x n n x1 m x k k x1
In the special case of a system with a single input and a single output the state
and output equations can be written as follows. This system is also called a SISO
system.
x A xbu
T
y c xd u
The number of the state variables is determined by the order of the differential
equation describing the dynamic system.
State Equation:
1 1
1
u C RC C uC
1 RC u1
i L 0 L 0
i
L
Output Equation:
uC 1 0 uC
i 0 1 i
L L
The structure of the physical system contains two energy storing element. The
capacity can store electric energy (W = ½ C U2). The inductance can store magnetic
energy (W = ½ L I2). In many cases we can determine the number and the choice of
state variable directly from the energy storing elements in the physical system. To get
the right number of state variables we must make sure that the energy storing
elements are linear independent. In other words we can say that it does not exist
any linear combination to calculate a state variable depending from all other state
variables of a system with coefficient unequal zero.
In chapter 4.2.2 we saw that there can be close dependencies between the physical
structure of a system and the state variables. But it is also possible to calculate a
state variable model of a system only based on the behaviour of the system output
against the system input.
If given the transfer function of a system we can easily calculate a state variable
model with a simple internal structure. Since in most technical systems the feed
forward path does not exist we can define the transfer function as
X ( s) Y ( s) 1
F ( s ) F1 ( s ) F2 ( s ) N (s)
U ( s) X ( s) D( s)
X ( s) 1
F1 ( s ) U ( s) D( s) X ( s)
U ( s) D( s)
L1{U ( s )} L1{D( s ) X ( s )}
u (t ) x ( n ) (t ) an1 x ( n1) (t ) a1 x(t ) a0 x(t )
d x
( )
Using the substitution x x 1 x ( = 1 .. n-1) we can find a state
dt
representation of the differential equation:
0 1 0 0
x 0
x 1 x 0 0 1 0 1
x2 x x 0
2 u (t )
0
0 0 1
x n x ( n) x 1
a0 a1 a2 an1 n
x1
x
y (t ) b0 b1 b2 bm 0 0 2
xn
The structure of the system is shown in figure 8. This structure is also called
controllable canonical form.
bm
bm-1
b0
u(t) y(t)
xn xn-1 x1
-an-1
-an-2
-a0
Figure 8: Structure of the Controllable Canonical Form
There are two other canonical structures of state space models which are:
the observable canonical form
the diagonal form
The characterstics of the two additional canonical structures are shown in the
following figures 9 and 10.
b1
x1
b0
u(t) xn xn-1 y(t)
-an-1
-a1
-a0
x1
b1* c1
s1
xn-1
u(t) bn-1* cn-1 y(t)
sn-1
xn
bn* cn
sn
with
* 1 * 1 * *
A T A T; B T B; C C T ; D D .
This kind of transformation can be used to achieve the diagonal canonical form of the
matrix A (Jordan canonical form).
Since the state equation is a set of first order differential equations the solution yield
x(t ) (t t 0 ) x(t 0 ) e A ( t t0 ) x (t 0 ) (t t 0 )
(t) is called the transition matrix and can be defined by an infinite series
At t2 3 t
3
2
(t ) e I At A A
2! 3!
In the second step the solution of the inhomogeneous state equation can be
generated by well known mathematical methods of solving differential equation.
Applying the solution of f(t) to the general solution of the state equation yield
e
A
x(t ) e At
B u ( )d
t0
This is the particulate solution of the inhomogeneous state equation with u(t0) = 0.
t
x(t ) (t t 0 ) x(t 0 ) (t ) B u ( )d
t0
The solution of the state equation in the frequency domain is based on the Laplace
transform.
Transforming both equation to the Laplace space and solving for y yields:
T
Y ( s ) c ( s I A) 1 b U ( s )
Y ( s) 1 T
F (s) c ( s I A) adj b
U ( s ) det( s I A)
The transfer function can now be used to calculate the signal response functions in
the frequency domain.
In case of a system with multiple inputs and multiple we get k * m different transfer
functions (k = number of inputs, m = number of outputs). The transfer function can be
combined in a transfer matrix F(s).
f(t) f(kT)
fk
sampling
T 2T 3T t T 2T 3T kT
f ( kT ) f ( k ) f * (t ) f k 0 (t kT )
k 0
0 (t ) dt 1
Since we can describe a discrete time signal or a sampled discrete time function like
a continuous time signal / function it is possible to calculate the Laplace transform of
this signal / function.
f (t ) o
*
F ( s ) f k e s kT
*
k 0
We substitute
z e sT
and thus we get
*
F (s) F ( z ) f k z k
z e sT
k 0
Mapping
Re{s} Re{z}
y ( k ) a n 1 y (k 1) a1 y (k n 1) a 0 y ( k n)
bn u (k ) bn 1u (k 1) b1u (k n 1) b0 u (k n)
Applying the right shift rule (see chapter 5.2) hence we get a z transform
corresponding to the difference equation
Y ( z ) bn z n bn 1 z n 1 b1 z b0
F ( z)
U ( z) z n a n 1 z n 1 a1 z a 0
The expression z-1 in the discrete frequency domain can be interpreted as a dead
time element with dead time T (sampling time) in the time domain.
If we want to sketch the block diagram structure of the transfer function F(z) we need
a new block diagram symbol which is shown in figure 13.
u(k)
z-1
y(k)
y (k ) u (k 1)
y(k)
a0 a1 a2 an-1
The basic principle of the numerical integration of a function y = f(x) is the stepwise
approximation of the area below the function. A well known algorithm of numerical
approximation is the method of Euler (German Mathematician, 1707 – 1783). Figure
15 illustrates how the approximation of the area below a function can be done using
rectangle areas.
f(x) F(x)
F(0)
INTEGRATION
x x
1 2 3 4 0 1 2 3 4
x
F ( x) f ( ) d F ( 0)
x 0
Using the abbreviations F(kT) = y(k) and f(kT) = x(k) the method of Euler can now be
described by a difference equation.
y ( k ) y ( k 1) x( k 1) * T
Y ( z ) z 1Y ( z ) z 1TX ( z )
Y ( z )( z 1) TX ( z )
Y ( z) 1
FEuler ( z ) T
X ( z) z 1
T
“1/s” in the Laplace domain can be approximately expressed by in z domain
z 1
Thus we can use the transfer function FEuler to convert a Laplace transfer function
F(s) to the z domain.
Example
1 T
Applying the approximation we get a z transfer function
s z 1
T
F ( z)
(T T1 ) T1 z
Figure 16 shows a comparison between the step response function of the two
transfer functions F(s) and F(z) with T = 0.1 s and T1 = 1 s.
Figure 16: continuous time and discrete time step response of a PT1 system
6 Exercises
6.1 Questions
1. Sketch the block diagrams of the following systems given by three differential or
integral equations.
a) T y (t ) y (t ) 0
b) y (t ) 2 D 0 y (t ) 0 y (t ) ku (t )
2
t
1
2J 0
c) n(t ) M ( )d
2. Figure 17 shows a simple speed controller using a propeller. The driving force at
the rope role (in figure 17: Seilrolle) with radius r is Fa. The air resistance torque is
given by
M R kP 2 (k P 0, 2n)
The inertia of all rotating elements is J.
Figure 17
a) Find the differential equation for the system. The angular speed (t) is the
system output. Fa(t) is the system input.
Figure 18
m
Figure 19 no friction
b) Find a state variable model of this system using x(t) and x (t ) v(t ) as state
variables.
Figure 20
Derive the dynamic behaviour of the mechanic system related to the coordinates
x1,2 by a differential equation. The force f(t) is the system input.
Figure 21
Derive the dynamic behaviour of the mechanic system related to the coordinates
x1,2 by a differential equation. The force f(t) is the system input.
Figure 22
Derive the dynamic behaviour of the mechanic system related to the coordinates
x1,2 by a differential equation. The force f(t) is the system input.
Figure 23
Derive the dynamic behaviour of the mechanic system related to the coordinates
x, z by a differential equation. The force f(t) is the system input.
Figure 32
Figure 33
Figure 35
Qout
a) Find the differential equation describing the dynamic behaviour of the filling
level of the reservoir. Use the given values.
25. Find the state variable model of a permanent excited DC machine based on the
equations in chapter 3.2.
Use n(t) and iA(t) as state variables.
Use uA(t) and ML(t) as input variable.
n( s )
26. Calculate the transfer function F ( s ) of the permanent excited DC machine
u A ( s)
given in chapter 3.2. Use this transfer function to calculate the controllable
canonical form of a state variable model.
Figure 39
Figure 40
30. Given the following transfer functions. Find the corresponding controllable
canonical form in time domain (state equation and output equation). Sketch the
block diagram structure.
Y (s) s
a) F (s)
U ( s) s 1
T
Y ( s) K
b) F ( s) 2
U (s) s 2 D 0s 0 2
Y ( s) b1 s b0
c) F (s) 3
U ( s) s a 2 s 2 a1 s a 0
31. Find the state equation and the output equation for the observable canonical form
and the diagonal form given in figures 9 and 10, chapter 4.2.3.
32. Given the following z transfer functions. Find the corresponding difference
equations.
Y ( z ) b1 z b0
a) F1 ( z ) .
U ( z) z a0
Y ( z) 5z
b) F2 ( z ) 2
U ( z) z z 6
a)
y(t)
1/T
b)
k
u(t) y(t)
2D0
2
0
c)
1/2J
M(t) n(t)
Question 2:
a) J k p 2 Fa r
b) r kp
Fa 2
J J
r/J
Fa(t) (t)
2
kp/J x
c) d 2
Linearisation: 2 02 ( 0 ) 0 2 0
2
d 0
d)
r/J
Fa(t) (t)
2kp0/J
Question 3:
1 t
Step Response: v(t ) Fg (1 e m / d )
d
v(t)
vmax
t
T
c) 1
F (s) d
Transfer Function:
1 sm
d
Question 4:
x
Output Equation: y x 1 0
v
Question 17:
a)
m2 m 2 m3
Differential Equation: 0.044 h 1m h 0.005
s s
b)
m m
Block Diagram Structure: h 0.005 0.044 h
s s
0.005
Qin(t) h(t)
2
0.044 x
c) d
Linearisation: h h0 h (h h0 )
dh h0
1 1
h h0 H h
2 h0
1 1
H h
2 m
2 0.005
Linear Differential Equation: h s h 2m
0.044 0.044
Question 21:
0 1
mg
0
J
Question 25:
K2 1
0 0
n
2J n 2J uA
i K1 RA i 1 M
A A 0 L
L A L A L A
Question 26:
The transfer function can be derived directly from the block diagram structure.
K2
n( s ) 2J LA
F ( s)
u A ( s) R KK
s2 A s 1 2
LA 2J LA
x1 K K R
0 1
x1 0
x 1 2 A
R
A x 1 u A
2 2J L A LA 2
K L x
n(t ) 2 A 0 1
2J L A x2
Question 29:
1 1 1
u C (t ) u C (t ) i L (t ) u1 (t )
RC C RC
1
iL (t ) u C (t )
L
Question 30:
u(t) y(t)
1/T
1/T
y (t ) K x1 (t )
block diagram structure:
u(t) K
y(t)
2D0
2
0
b1
b0
u(t) y(t)
-a3
-a2
-a1
Question 31:
bm
b
a n 1 1 0 0
x1
m 1
x1
x a n 2 0 1 0 x
2 2 b u
0
a1 0 0 1 0
x n a 0 0 0 0 xn
0
0
x1
x
y 1 0 0 2
xn
diagonal form:
x1 s1 0 0 x1 b1 *
x 0 s 0 x b *
2 2 2 2 u
xn 0 0 sn xn bn *
x1
x
y c1 c2 cn 2
xn
Question 32:
a) y (k ) a0 y (k 1) b1 u (k ) b0 u (k 1)
b) y (k ) y (k 1) 6 y (k 2) 5u (k 1)
L{a1 f1 (t ) a 2 f 2 (t )} a1 L{ f1 (t )} a 2 L{ f 2 (t )}
lim f (t ) lim s F ( s )
t s 0
0<= D < 1
Step 2:
Using the properties of the Laplace Transform (linearity and calculation of the
derivative in time domain) the differential equation can be transformed to the
Laplace space.
s nY (s ) a n1s n1Y (s ) a1 sY (s ) a 0Y (s )
bn s nU (s ) bn1 s n1U (s ) b1 sU (s ) b0U (s )
This equation can be solved for Y(s) / U(s) = F(s). Thus we get the transfer
function
Y ( s ) bn s n bn 1 s n 1 .... b1 s b0
F ( s) n
U (s) s a n 1 s n 1 ... a1 s a 0
Step 3:
Now the system reaction to a specific input signal can be calculated as
follows:
Y (s) U ( s) * F (s)
y (t ) L1{Y ( s )} L1{U ( s) F ( s )}
1
Potential law: i1 (t ) (u1 (t ) u 2 (t ))
R t = t0
i1(t)
1
Storage Law: u 2 (t ) i2 (t ) i2(t)
C u1(t)
R
u2(t)
US C
Balance Law: i1 (t ) i2 (t ) 0
Result:
RC u 2 (t ) u 2 (t ) u1 (t )
The input of the system can be interpreted as a step signal which occurs at t = t0.
Thus in the Laplace domain the input signal is:
1
U 1 ( s ) L{U S 1 (t )} U S
s
Now the system output can be calculated as:
1 1 1 1
y (t ) L1 U S US L
s 1 sRC s (1 sRC )
The solution of the inverse Laplace transform can be found in the table given on
page 40.
y (t ) U S (1 e t / T ) T RC