Documente Academic
Documente Profesional
Documente Cultură
METODA TRAPEZELOR
1. Scopul lucrrii
Lucrarea prezint o metod numeric de rezolvare prin aproximare a
ecuaiilor de stare (pentru sistemul intrare stare ieire) i anume metoda
trapezelor.
2. Aspecte teoretice
Dei instalat lent, tendina de a exprima dinamica sistemelor automate
liniare n spaiul strilor s-a dovedit a fi inevitabil, ajungndu-se n prezent ca
modelul ISO (intrare stare ieire) s fie foarte rspndit n automatic.
Schema unui astfel de sistem ISO liniar este prezentat n figura 3.1 i este
caracterizat de ecuaiile (3.1).
B(t)
x(t)
x(t)
C(t)
y(t)
A(t)
D(t)
u(t)
Fig. 3.1. Structura unui sistem liniar descris prin ecuaii de stare
x (t ) = A(t ) x (t ) + B (t ) u (t )
y (t ) = C (t ) x (t ) + D (t ) u(t )
(3.1)
x (t ) = (t , t0 ) x (t0 ) + (t , t0 ) (t0 , ) B( ) u( ) d
t0
t0
(3.2)
unde: x (t0 ) este starea iniial a sistemului de ecuaii difereniale de ordin unu;
(t) - matricea fundamental, cu urmtoarele proprieti principale:
(t 0 , t 0 ) = I
(t , t0 ) = A(t ) (t , t 0 ) ,
t > t0
(t 0 , t0 ) = A(t 0 )
(3.3)
(t , t0 ) = x (t ) x (t 0 )
(t1 , t 0 ) = 1 (t0 , t1 )
(t 2 , t1 ) (t1 , t 0 ) = (t 2 , t0 )
y = x = f ( x) x = I N = f ( x) dx
yn
n 1
I N = Ik =
k =0
f ( x ) dx
(3.4)
(3.5)
k =0 x ( k )
y=f(x)
y0
x
0 x0=a
xn=b
i (b + B )
2
(3.6)
h
( y k +1 + y k ) = x k +1 x k
2
(3.7)
h
x k +1 = x k + x k +1 + x k
2
(3.8)
(3.9)
h
x k +1 = x k + ( A x k +1 + B uk +1 + A x k + B uk )
2
h
h
h
I A x k +1 = I + A x k + B (uk +1 + uk )
2
2
2
(3.10)
h
h
h h
x k +1 = I A I + A x k + I A B (uk +1 + uk )
2
2
2 2
(3.11)
U = I A ;
2
Z = U I + A ;
2
(3.12)
rezult soluia:
h
x k +1 = Z x k + U B (uk +1 + u k )
2
(3.13)
Cazul II
- dac:
1
U = I A ;
2
Z = I + A ;
2
(3.14)
rezult soluia:
h
x k +1 = U Z x k + U B (u k +1 + uk )
2
(3.15)
x(t ) = f ( x(t ), u (t ), t )
(3.16)
27
h
[ f (xi , u i ) + f (xi +1 , u i +1 )] ,
2
i = 1, 2, 3,..., v
(3.17)
3. Desfurarea lucrrii
Se cere realizarea unui program care s refac fidel traiectoriile strilor
sistemului liniar invariant n timp, definit prin modelul matematic:
y+ 3 y+ 2 y = u
(3.18)
(3.19)
Pasul V
- se traseaz graficele i se interpreteaz rezultatele.
Pentru problema dat se obin matricele de sistem:
1
0
0
; B = ; C = (1 0); D = 0.
A =
2 3
1
28
Pentru h =
1
= 0,125 i x(t0)=[0;0], se obin necunoscutele U, Z din
8
0,1045 0,8366
0,9869 0,1045
Z I =
0,2091 0,6732
0,9934 0,0522
U II =
0,1045 0,8366
1,0000 0,0625
Z II =
0,1250 0,8125
0,1045
0,1736
0,2164
0,2401
0,2502
y1 = 0,0065; y 2 = 0,0239; y 3 = 0,0482; y 4 = 0,0768; y 5 = 0,1075
29
s+2
;
s + 4s + 6
c2. H 2 (s ) =
s
;
s s+4
c3.
1
1 0
0
A = 3 2 0 B = 1 C = (0 1 0) D = (0) ;
1
1
2 1