Beruflich Dokumente
Kultur Dokumente
Chapter 3
Modeling in the Time Domain
Ax+ By=f Cx+Dy=g how do you solve it? Lets eliminate y ADx+BDy=fD - BCx+BDy=gB (AD-BC)x=fD-gB x= (fD-gB)/ (AD-BC) Determinant=AD-BC
Cramers rule
x f A B C D y ! g Det ! AD BC f B g D x! AD BC fD gB x! AD BC
Ax+By=f Cx+Dy=g
A f C g y! AD BC gA fC y! AD BC
Review of Matrices
1 2 5 6 6 8 3 4 7 8 ! 10 12 1 3 1 2 3 4 ! 2 4 1 x T ? 2A ! , ! ?x 1 2 y 1 2 3 1 4 7 4 5 6 ! 2 5 8 7 8 9 3 6 9
T T T
yA
Review of Matrices
1 2 2 4 ! 2 , 3 4 6 8 A B ! A ( B) x y cx cy ! c z w cz cw
y x ya! Cij ! A i1 X 1 j 2 x 2 y
Review of Matrices
1 2 5 6 1* 5 2 * 7 1* 6 2 * 8 3 4 * 7 8 ! 3 * 5 4 * 7 3 * 6 4 * 8 19 22 ! 43 50 5 6 1 2 5 *1 6 * 3 5 * 2 6 * 4 7 8 * 3 4 ! 7 *1 8 * 3 7 * 2 8 * 4 23 34 ! 31 46 A* B { B * A x 1 2 3 x 2 y 3 z 4 5 6 x 5 y 6 z y ! 4 7 8 9 x 8 y 9 z z 7
Introduction
Frequency-domain technique
rapidly providing stability and transient response information Immediate can see the effect of varying system parameters
State-space approach (modern, or time-domain approach)can be used for non-linear system with backlash, saturation and dead zones
State-space Representation
Select a particular subset of all possible system variables; state variables For an nth order system, write n simultaneous, first-order differential equations in terms of the state variables; simultaneous differential equations state equations
10
State-space Representation
Solve the simultaneous equations with the known initial conditions of all the state variables at t0 as well as the system input Algebraically combine the state variables with the systems input and find all other system variables output equations State equation +output equation state space representation
11
State-space representation x=Ax+Bu y=Cx+Du x=state vector Y=output vector x=time derivative of the state vector u=input vector A=system matrix B=input matrix C=output matrix D=feedforward matrix
12
Example
2 x 3 x ! f x z!x x z! ! z ! 2 x 3 x f ! 2 z 3x f x 1 x 0 x 0 z ! 3 2 z 1 f
13
Example II
2 3 x 4 x ! f x x z!x x y!z! z x y ! ! ! 2 3 x 4 x f x ! 2 y 3 z 4 x f 1 0 x 0 x 0 z ! 0 0 1 z 0 f y 4 3 2 y 1
14
Next Move?
2 x 3 x ! 0 x x(0) ! 1, x(0) ! 0 Solution at t ! 5 v!x x v ! ! 2 x 3 x 1 x x 0 v ! 3 2 v x y ! [1 0] v
15
(t ) 2 y y (t (t ) ! y (t ) y (t )(t (t 2 Let (t ! 0.1 1 x(0) 0 1 1 0 x ( 0) 0 v(0) ! 3 2 v(0) ! 3 2 0 ! 3 x(0.1) 1 0 1 v(0.1) ! 0 3 0.1 ! 0.3
16
t ! 0.2 1 x(0.1) 0 1 1 0.3 x(0.1) 0 v(0.1) ! 3 2 v(0.1) ! 3 2 0.3 ! 2.4 0.97 x(0.2) 1 0.3 v(0.2) ! 0.3 2.4 0.1 ! 0.24
17
18
2 x 3 x ! 0 x x(0) ! 1, x(0) ! 0 ( s 2s 3) X ( s ) ! s ( s 1) 1 X ( s) ! 2 ( s 1) 2
2
19
20
21
i(t) is state variable; but you can pick up something else; e.g. vR
22
RL network
Laplace transform L[sI(s)-i(o)]+RI(s)=V(s) For unit step v(t)=1, V(s)=1/s I(s)=1/{s(Ls+R)}+ i(o)L /(Ls+R) 1/{s(Ls+R)}=(1/L)[A/s+B/(s+R/L)] A=L/R, B=-L/R I(s)=(1/R)[1/s-1/(s+R/L)]+ i(o)/(s+R/L) i(t)=(1/R)[1-e-(R/L)t]+ i(o) e-(R/L)t
23
RL network
24
Second order system; two state variables needed; e.g. i(t), q(t) charge on the capacitor
25
RLC network
Ldi/dt+Ri+(1/c)+idt=v(t) i(t)=dq/dt, i=q Lq+Rq+(1/c)q=v(t) To make two first-order equations dq/dt=i di/dt=-(1/LC)q-R/Li+v(t)/L State equations If we know initial conditions, and input v(t), we can solve the problem
26
RLC network
Output equation vL(t)=-(1/C)q(t)-Ri(t)+v(t) [note that vL+vR+vC=v(t)] Both system equations and output equation state-space representation You can pick up other state variables, e.g. vR, vC i(t) must be continuous, i=vR/R
27
RLC network
vL=Ldi/dt=(L/R) dvR/dt As vL+vR+vC=v(t) (L/R) dvR/dt+vR+vC= v(t) dvR/dt=-(R/L) vR-(R/L) vC+(R/L)v(t) vC=(1/c) (vR/R)dt Differentiate dvC/dt=(1/RC)vR New state equations
28
State-space representation
State variables are linearly independent; no state variable can be written as a linear combination of the other state variables Summary of the RLC state-space representation
29
30
Figure 3.3 Graphic representation of state space and a state vector For RLC network; vR, vC were selected as state variables
Function of time t
31
State-space representation x=Ax+Bu y=Cx+Du x=state vector Y=output vector x=time derivative of the state vector u=input vector A=system matrix B=input matrix C=output matrix D=feedforward matrix
32
A minimum number of state variables must be selected as components of the state vector (sufficient to describe completely the state of the system State variables must be linearly independent Usually number of energy-storage elements becomes number of state variables
33
First order equation, so one statevariable may be enough; but mass must have relative position use two state-variables, v(t), x(t)
34
Output iR(t)
35
Write equation for all energy-storage elements; inductor & capacitor CdvC/dt=iC LdiL/dt=vL Select vC & iL as state variables Next, change iC & vL in terms of state variables and input v(t) iC = iL - iR = iL - vC /R vL = v(t)-vC
36
37
38
39
40
41
Figure 3.10 a. Transfer function; b. equivalent block diagram showing phase-variables. Note: y(t) = c(t)
42
24 C (s) ! 3 R( s ) s 9s 2 26s 24
x1 ! c x2 ! c x3 ! c x1 ! x2
x2 ! x3 x3 ! - 24 x1 - 26 x2 9 x3 24r y ! c ! x1
Output equation
43
x1 ! x2 ! y ! c ! x1
x2 x3
x2 ! - 24 x1 - 26 x2 9 x3 24r 1 0 x1 0 x1 0 x ! 0 0 1 x 2 0 r 2 x2 24 26 9 x3 1 x1 y ! ? 0 0A x2 1 x3
44
45
46
Figure 3.12
a. Transfer function; b. decomposed transfer function; c. equivalent block diagram. Note: y(t) = c(t)
47
1 0 x1 0 x1 0 x 0 r x ! 0 0 1 2 2 x2 24 26 9 x3 1 C ( s ) ! ( s 2 7 s 2) X 1 ( s ) y ! x3 7 x2 2 x1 x1 x y ! ?2 7 1A 2 x3
48
Figure 3.13
Walking robots, such as Hannibal shown here, can be used to explore hostile environments and rough terrain, such as that found on other planets or inside volcanoes.
49
50
Example 3.6
1 0 x1 10 x1 0 x ! 0 0 1 x2 0 u 2 x2 1 2 3 x3 0 x1 y ! ? 0 0A x2 1 x3 1 0 s 1 0 s 0 0 0 1 ( sI A) ! 0 s 0 0 0 1 ! 0 s 0 0 s 1 2 3 1 2 s 3 s 2 3s 2 s 3 1 s( s 3) s 1 s 2( s 1) s 2 1 ( sI A) ! s 3 3s 2 2s 1
51
Example 3.6
10 B!0 0 C ! ? 0 0A 1 D!0 T ( s) ! C ( sI A) 1 B D s 2 3s 2 1 s3 s ( s 3) s 1 10 s 2( s 1) s 2 0 1 ! ? 0 0 A s 3 3s 2 2s 1 0 10( s 2 3s 2) 1 1 ? 0 0A 10 ! 3 s 3s 2 2s 1 10s 10( s 2 3s 2) ! 3 s 3s 2 2s 1
52
Figure 3.14
a. Simple pendulum; b. force components of Mg; c. free-body diagram
53
Figure 3.15 Nonlinear translational mechanical system for Skill-Assessment Exercise 3.5
54
Figure 3.16
Pharmaceutical drug-level concentrations in a human
55