Professional Documents
Culture Documents
Lagrange
Formulation
Bondgraph
Methodology
Modeling and Simulation
MEIE5121/MCTE4150
State-Space &
Simulation
System Models
Time Response
: Mechanical
Systems II
Linearization
Laplace
Laplace
Transform and
Transform
Transfer
Transfer
Function
Function &
& Stability
Stability
sX (s ) AX (s ) BU (s ) sI A X (s ) BU (s )
Y (s ) CX (s ) DU (s )
Y (s ) CX (s ) DU (s )
X (s ) sI A 1 BU (s )
Y (s ) CX (s ) DU (s )
X (s ) sI A 1 BU (s )
Y (s ) CX (s ) DU (s )
Y (s ) C sI A BU (s ) DU (s )
1
C sI A B D U (s )
1
C sI A B D U (s )
1
Now,
Y (s )
C sI A B D
1
G (s )
U (s )
Recall,
1
sI A adj sI A
1
sI A
1
sI A adj sI A
1
sI A
Y (s ) C adj sI - A B sI A D
G (s )
Hence, U (s ) sI A
N (s )
sI A
System
r t A t , t 0
Impulse A stability test
0, t0
r t A, t 0 A
Step transient response test
0, t0 s
r t At , t 0 A
Ramp tracking capability test
0, t0 s2
r t At 2 , t 0 2A
Parabolic faster tracking capability test
0, t0 s3
k1 k2 k3 k4
C ( s)
s s2 s4 s5
state response. 2
Transient Response
1
0
0 2 4 6 8 10 12 14 16 18 20
MCTE4150/MEIE5121 Modeling & Simulation
Time (sec)
Time Response of Dynamic Systems
• Transient response depend upon the system poles only and not on
the type of input.
K
R(s ) C(s )
Ts 1
1
R( s ) U ( s )
s
K
C( s )
sTs 1
• In order to find out the inverse Laplace of the above equation, we
need to break it into partial fraction expansion (page 867 in the
Textbook)
K KT
C( s )
s Ts 1
MCTE4150/MEIE5121 Modeling & Simulation
Step Response of 1st Order System
1 T
C( s ) K
s Ts 1
• Taking Inverse Laplace of above equation
c(t ) K u(t ) et / T
c(t ) K 1 e
• Where u(t)=1
t / T
c(t ) K 1 e1 0.632K
MCTE4150/MEIE5121 Modeling & Simulation
Step Response of 1st Order System
• If K=10 and T=1.5s then c(t ) K 1 e t / T
K*(1-exp(-t/T))
11
10
9 Step Response
2
Unit Step Input
1
0
0 1 2 3 4 5 6 7 8 9 10
Time
8 T=3s
7
T=5s
6
c(t)
5 T=7s
4
3
2
1
0
0 5 10 15
Time
8
7
6
K=5
c(t)
5
4
K=3
3
2
K=1
1
0
0 5 10 15
Time
MCTE4150/MEIE5121 Modeling & Simulation
Analysis of Simple RC Circuit
i(t)
R
vT(t) ± C v(t)
C ( s) K
U ( s) Ts 1
c(t ) K u(t ) e t / T
C ( s) 0.72 5.5
• K is simply steady state value.
U ( s) 0.13s 1 s 7.7
MCTE4150/MEIE5121 Modeling & Simulation
Modeling : A simple Experiment
Interface
Tank
0
0
Ts 1
4.5
4
H (s)
3.5
3 Qi ( s ) Ts 1
h1(Volts)
2.5
1.5
0.5
0
200 400 600 800 1000 1200 1400 1600
time(sec)
Qi ( s ) Ts 1 s Ts 1
4.5
5 / T 1 2
3.5
3
h1(Volts)
2.5
1 s 1
s( s ) s
2
1.5
1
T T
5 5
0.5 t
0
200 400 600 800 1000
time(sec)
1200 1400 1600
H ( s) h(t ) 5 5e T
s s 1
T
t
h(t ) 5 5e T
s 1
0.7 3.5
0.6 3
y(t)
0.5
y(t)
2.5
0.4
2
1
HB
0.3
1.5
s5
0.2
0.1
Step1 1
0.5
Step2
0
0 1 2 3 4 5 6
Time(sec) 0
0 1 2 3 4 5 6
5
HC
Time(sec)
1 0.2
s5
0.9 0.18
0.8 0.16
0.7
0.14
0.6
Step3 0.12
1
y(t)
HD
0.5
y(t)
0.1
s 1
0.4
0.08
0.3
400
0.06
0.2
350 0.04
0.1
0
0 1 2 3
300
4 5 6
0.02 Step4
Time(sec) 0
250 0 1 2 3 4 5 6
Step5 Time(sec)
1
y(t)
200
150
HE
Go to menti.com and enter code 711000
100
50
s 1
0
0 1
MCTE4150/MEIE5121 Modeling & Simulation
2 3 4 5 6
Time(sec)
Little Exercise
5
1
4.5
0.9
4
0.8
3.5
0.7
3
0.6
y(t)
y(t)
2.5
0.5
0.4
1 2
5
0.3
HD 1.5
HA
s 1 s 1
0.2 1
0.1 0.5
0 0
0 1 2 3 4 5 6 0 1 2 3 4 5 6
Time(sec) Time(sec)
0.2
1
0.18
0.9
0.8 0.16
0.7 0.14
0.6 0.12
y(t)
y(t)
0.5 0.1
1
0.4
5 0.08
HB
0.3
HC 0.06
s5
s5
0.2 0.04
0.1 0.02
0 0
0 1 2 3 4 5 6 0 1 2 3 4 5 6
Time(sec) Time(sec)
Interface
Tank
h1 h2
q12
qo
It can be shown that the model in this case (after linearizing) ,and feeding back the level of
water and applying proportional control is, where a and b are constants while k is manipulated
by designer, if an input is constant = 3.5 what is the output
u(t)=3.5
h2(t)=??
0
+
H2 k k1 0
2
k
k2
21
s as b
2
-
Qi s as b k
MCTE4150/MEIE5121 Modeling & Simulation
Analysis : Here is the response for different values of k
6
k=low
5
8
k=high
4
h1, and h2 (Volts)
3 6
1
3
0 2
0 50 100 150 200 250 300 350 400 450
Samples
1
0
0 50 100 150 200 250 300 350
Samples
Second-order
systems, pole plots,
and step responses
Comparing to the simplicity of a first-order system, a second order system exhibits a wide range
of responses. For example, a second order system can display characteristics much like a first-
order system or display damped or pure oscillations for its transient response. Second order
systems are very important in control systems engineering, since many control systems design
methods are based on second-order system analysis. Even if the system is of higher order, it
usually can be approximated by a second order system in order to obtain a first approximation for
preliminary design purposes with reasonable accuracy.
Step response
n 2 K1 K 2 ( s n ) K 3n 1 2
Y (s)
s ( s 2 n s n ) ( s n ) 2 n (1 2 )
2 2 2
s
1 ( s n ) n 1 2
1 1 2
( s n ) 2 n (1 2 )
2
s
Settling time ts: time required for the response curve to reach
and stay within 2% or 5% of the final value. Is a function of the
largest time constant of the control system.
system
• The peak time is the time required for
the response to reach the first peak
of the overshoot.
y (t ) tp
0
t
y (t ) tp
Mp
1
y(t p ) y()
Mp 100%
y()
0
t
Note: the maximum overshoot directly indicates
the relative stability of the system.
y (t ) tp
Mp
1 ±1%
0
t
ts
Note: t is the time it takes the
system transients to decay.
MCTE4150/MEIE5121 Modeling & Simulation
MCTE4150/MEIE5121 Modeling & Simulation
Analysis: Match responses with transfer
function
The unit step responses of four second- 16 2
G(s) G( s)
order systems are shown in the Figure s 16
2
s 3s 2
2
3
ts
n
/ 1 2
Mp e ,
tp
n 1 2
1 2
G ( s) G( s)
s 0.2 s 1
2
s 3s 2
2
4
ts
n
16
G(s)
G (s)
16 s 16
2
s 0.8s 16
2
2. Damping ratio
3. Settling time 3
ts
n
4 / 1 2
Now, ts 4 Mp e 0.05,
n
4 / 1 2
for 2% criteria t s 4 n 1 Mp e 0.69
n
Let 0.7
1
n 1.428 let n 1.5
0.7
k n 2.25
2