Lecture #5 (System Modelling) v2
Lecture #5 (System Modelling) v2
System Modelling
Systems
System
Experiment with
a model of the
System
Experiment with
actual System
Mathematical
Model
Physical Model
Analytical
Solution
Simulation
Frequency
Domain
Time Domain
Hybrid Domain
Model
A model is a simplified
representation or abstraction of
reality.
Reality is generally too complex to
copy exactly.
Much of the complexity is actually
irrelevant in problem solving
What is Mathematical
Model?
A set of mathematical equations that
describes the input-output behavior of a
system.
The quantitative mathematical models of
physical systems is used to design and
analyze control systems.
Most physical systems are nonlinear, thus
linearization approximations will be
discussed, which allow us to use Laplace
transform methods.
It is easier this way to obtain the inputoutput
relationship for components and subsystems
Mathematical Models
If the dynamic behaviour of a physical
system can be represented by an equation,
or set of equations, this is referred to as the
mathematical model of the system.
Such models can be obtained from physical
characterstics of the systems, i.e.
resistance for an electrical system.
Alternatively, can be determined by
experimentation, by measuring how the
system output responds to known inputs.
Mathematical Modelling
Basics
Classification of Models:
Easy to Model
Output
y(t)
y[u(t), t]
dy(t )
du(t ) d 2 y(t )
3
dt
dt
dt 2
y(t)
Model Type
Linear
Input-output
differential
equation.
State equations
Linear Time
Invariant
Transfer
Function
Nonlinear
Examine
the
assumptions.
solutions
and
the
Model Simulation
Modelling and
Simulation Process
Project Description
Advantages to Simulation
Disadvantages to
Simulation
Model building is an art as well as science.
The quality of the analysis depends on the
quality of the model and the skill of the
modeler.
Simulation results are sometimes hard to
interpret.
Simulation analysis can be time
consuming and expensive. Should not be
used when an analytical method would
provide for quicker results.
Simple Model of a
Vehicle Motor
Differential Equations
Linear diff. Equations with constant
coefficients.
First-order
Second-order
Third-order
Models of Electrical
Systems
Models of Electrical
Systems
Example #1
Find differential equation relating V1(t)
and V2(t)
Example #1 (solution)
d
y ( t ) b y ( t) k y ( t)
2
dt
dt
r( t )
1
d
C v ( t ) v ( t) d t
R
L 0
dt
v( t)
y( t)
K 1 e
1 t
r( t )
sin 1 t 1
Linear Approximations
Linear Approximations
Linear Systems - Necessary condition
Principle of Superposition
Property of Homogeneity
Taylor Series
http://www.maths.abdn.ac.uk/%7Eigc/tch/ma2001/notes/node4
6.html
g 9.8
m
s
L 100cm
0 0rad
15
16
T0 M g L sin 0
T1 M g L sin
T2 M g L cos 0 0 T0
10
T 1( )
T 2( )
10
Students are encouraged to investigate linear approximation accuracy for different values of 0
L( f ( t ) )
f ( t) e
s t
dt
= F(s)
j w
f ( t) e
s t
dt
a)
for
f1( t) 1
F1( s )
s t
dt
b)
F2( s )
f2( t)
t0
1 ( s t )
e
s
1
s
( a t )
( a t ) ( s t )
dt
1
s1
[ ( s a) t ]
F2( s )
1
sa
d f ( t)
dt
by the use of
where
( s t )
d
f ( t) e
dt
dt
u dv
( s t )
dv
u v
v du
df ( t )
du
( s t )
dt
and
f ( t)
we obtain
u dv
f ( t) e
( s t )
= -f(0+) +
dt
f ( t) e
( s t )
( s t )
dt
dt
d f ( t)
f ( t ) s e
= sF(s) - f(0+) note that the initial condition is included in the transformation
assume i(0+) = 5 A
4 i( t) 2 d i( t) e
dt
4 I( s ) 2 ( s I( s ) i( 0) )
I( s )
5
s2
( s t )
dt
i( t ) e
( s t )
4 I( s ) 2 s I( s ) 10
d t 2
( s t )
d
i( t) e
dt
dt
i( t ) 5 e
( 2 t )
4
i( t )
2
0
1
t
Suppose that
F ( s)
s z1
( s p1 ) ( s p2 )
or
F (s )
K1
s p1
K2
s p2
Evaluation of Ki in the manner just described requires the simultaneous solution of n equations.
An alternative method is to multiply both sides of the equation by (s + pi) then setting s= - pi, the
right-hand side is zero except for Ki so that
Ki
( s pi ) ( s z1)
( s p1 ) ( s p2 )
s = - pi
Time Domain
Frequency Domain
e
1. Time delay
( s T )
f ( t T) u ( t T)
1
2. Time scaling
3. Frequency
differentiation
4. Frequency shifting
5. Frequency
6. Initial-value
f ( at )
Integration
Theorem
( a t )
Theorem
F( s a)
f ( t)
Lim( f ( t ) )
F( s ) d s
f ( 0)
t -> 0
7. Final-value
d
F( s )
ds
t f ( t)
f ( t) e
F( s )
Lim( s F( s ) )
s -> infinite
Lim( f ( t ) )
Lim( s F( s ) )
t -> infinite
s -> 0
Y( s )
equation 2.21
Ms bs k
y( s )
s1
s2
s b y
o
M
s2 b s k
s 2 n n
n n 1
s 2 n
k
M
k M
n n 1
Roots
Real
Real repeated
Imaginary (conjugates)
Complex (conjugates)
s1
n j n 1
s2
n j n 1
V1( s )
V2( s )
Cs
V2( s )
V1( s )
Cs
I( s )
I( s )
Z 2( s )
1
Cs
Z 1( s )
Z 2( s )
1
Cs
Z 1( s ) Z 2( s )
R
1
Cs
d
y ( t) 4 y( t) 3 y ( t) 2 r( t)
2
dt
dt
Initial Conditions: Y( 0) 1
d
y( 0)
dt
r( t) 1
2
2
s 4s 3
s s 4s 3
3
2
( s 1)
1
2
( s 3)
( s 1)
1
3
2 R( s )
y ( t)
3 e t 1 e 3 t 1e t 1 e 3 t 2
2
3
2
3
2
3
( s 3)
Y( s )
2
3
Kf if
Tm
K1 Kf if( t ) ia( t )
Vf( s )
K1 Kf Ia If( s )
Rf Lf s If( s )
Tm( s )
TL( s ) Td ( s )
TL( s )
J s ( s ) b s ( s )
Tm( s )
rearranging equations
TL( s )
Tm( s ) Td ( s )
Tm( s )
Km If( s )
If( s )
Vf ( s )
Rf Lf s
Td ( s )
(s )
Km
Vf( s )
s ( J s b ) Lf s Rf
V 2( s )
V 1( s )
RCs
V 2( s )
V 1( s )
RCs
V 2( s )
R 2 R 1 C s 1
V 1( s )
R1
V 2( s )
R 1 C 1 s 1 R 2 C 2 s 1
V 1( s )
R 1 C 2 s
(s )
V f(s )
(s)
V a( s )
Km
s ( J s b ) L f s R f
Km
s R a L a s ( J s b ) K b K m
(s )
s s 1
Vc( s )
J
( b m)
m = slope of linearized
torque-speed curve
(normally negative)
Vo( s )
s c 1 s q 1
Vc( s )
c
R R
c q
Lc
Lq
Rc
Rq
For the unloaded case:
id 0
c q
0.05s c 0.5s
V12
Vq
V34
Vd
X( s )
s ( Ms B)
A kx
K
B
kp
kx
g
dx
g ( x P)
kp
kp
b
d
dP
flow
A = area of piston
N1 m
n m
n m
R2
R2
V1( s )
R1 R2
R2
max
V2( s )
ks 1( s ) 2( s )
V2( s )
ks error( s )
ks
Vbattery
max
Kt ( s )
Kt s ( s )
constant
V2( s )
ka
V1( s )
s 1
Ro = output resistance
Co = output capacitance
Ro Co
1s
xo( t )
Xo( s )
Xin( s )
b s k
M
M
Xin j
k
M
T( s )
q(s )
1
Ct s Q S
T
Ct
Q
S
Rt
q(s )
thermal capacitance
fluid flow rate = constant
specific heat of water
thermal resistance of insulation
rate of heat flow of heating element
Equivalent Diagram
Original Diagram
Equivalent Diagram
Equivalent Diagram
Original Diagram
Equivalent Diagram
Equivalent Diagram
Original Diagram
Equivalent Diagram
Example
2.7