Documente Academic
Documente Profesional
Documente Cultură
12
(n)
= f ( t , x , x , K, x
unde
'
( n 1)
xi' (t ) = xi +1 (t ), i = 1,2,K, n 1
) '
x n (t ) = f (t , x1 (t ),K, x n (t ))
x1 (t ) = x (t ), x 2 (t ) = x ' (t ),K, x n (t ) = x ( n 1) (t ) .
(12.1)
(12.2)
(12.3)
h2
2
f
f
+ f
+ ...
x tn , xn
t
(12.4)
x n +1 = x n + wi k i
(12.5)
i =1
unde :
k i = h f ( i ,i )
i = tn + i h
i 1
=
+
x
ij k j
i
n
j
1
=
(12.6)
k 3 = h f (t n + 3 h, x n + 31 k1 + 32 k 2 )
...............................................................
(12.7)
(12.8)
90
(12.9)
cu
k1 = h f (t n , x n )
k 2 = h f (t n + 2 h, x n + 21 k1 )
(12.10)
sau
x n +1 = x n + w1 h f (t n , x n ) + w2 h f (t n + 2 h, x n + 21 k1 )
(12.11)
x n +1 = x n + (w1 + w2 ) h f (t n , x n ) + h 2 w2 2 + w2 21
t
x tn , xn
(12.12)
w2 2 = 1 2 fr soluie unic
w = 1 2
2 21
(12.13)
w1 = w2 = 1 2 ; 2 = 21 = 1
(12.14)
(12.15)
Runge-Kutta, p=4
Reprezint metoda cea mai important i urmnd raionamentul de la
metoda precedent se obine un sistem de 10 ecuaii cu 13 necunoscute, care nu
are soluie unic. Cea mai utilizat form a metodelor Runge-Kutta este:
1
x n +1 = x n + (k1 + 2 k 2 + 2 k 3 + k 4 ) , n = 1,2,...
6
(12.6)
k1 = h f (t n , x n )
k = h f (t + h 2 , x + k 2 )
2
n
n
1
(
=
+
+
k
h
f
t
h
2
,
x
k
n
n
2 2)
3
k 4 = h f (t n + h, x n + k 3 )
(12.7)
91
3. Desfurarea lucrrii
3.1. Determinarea modelelor IO i ISO ale motorului de curent continuu
Schema motorului de curent continuu (Mcc) cu excitaie independent
este dat n figura 12.1, n care:
Ua este tensiunea de alimentare a rotorului;
Ia - curentul n circuitul rotoric;
Ra, La - parametrii circuitului rotoric;
e - tensiunea electromotoare.
U a = Ra ia + La d t + e
e = K e
d
C m = K m ia = J
+ Cr + B
dt
unde: =
(12.8)
d
este viteza unghiular;
dt
U a (s ) K e (s ) = Ra I a (s ) + sLa I a (s )
(12.9)
K m I a (s ) = sJ(s ) + B(s )
n care: (s ) = s (s )
(12.10)
Km
( s )
=
U a ( s ) K e K m + ( Ra + sLa )( B + sJ )
(12.11)
y (t ) = C x (t ) + D u (t )
(12.12)
d
= ; x 3 = ia
dt
(12.13)
x 1 (t ) = x 2 (t )
Km
1
B
x3 (t ) C r x 2 (t )
x 2 (t ) =
J
J
J
Ke
Ra
1
x 3 (t ) = L U a (t ) L x 2 (t ) L x 3 (t )
a
a
a
(12.14)
i forma matriceal:
x
1 0
x 2 = 0
x 3 0
1
B
J
Ke
La
0
0 x1
Km 1
x 2 + C r + 0 U a
J J
1
Ra x 3 0
La
La
93
(12.15)
x1
y = C x = [1 0 0] x 2 = .
x 3
(12.16)
(12.17)
x1 (t ) = x 2 (t )
(12.18)
clc;clear;
%initializarea variabilelor (vezi help ode45)
t0=0;tf=6;x0=[.25 0 0];
% Determinarea starilor
[t,xn]=ode45('motorcc',t0,tf,x0);
x1=xn(:,1);
x2=xn(:,2);
x3=xn(:,3);
% Afiarea starilor
subplot(211),plot(t,x1);grid;title('Traiectoriile
starilor');ylabel('pozitia');
subplot(223),plot(t,x2);grid;ylabel('viteza');
subplot(224),plot(t,x3);grid;ylabel('curent');
(12.19)
95
(12.20)
96