Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
TEMA:
RESOLUCION DE CIRCUITO DE 6 MALLAS POR METODO DE GAUSS -SEIVEL
2016-II
APLICACIN DEL METODO DE GAUSS-SEIVEL A LA RED DE 6 MALLAS
Ejercicio
Resolver el siguiente circuito (6mallas) por el mtodo gauss-seivel en Matlab
R1 R6
2 6
V1 R4 R9
15V 5 3
R2 R7 R11
10 2 4
V2
10V R5 R10 R12
3 1 7
R3 R8
5 4
SOLUCION
1.-Planteamos seis ecuaciones una por cada malla
17i1 -10i2 -5i3 0i4 0i5 0i6 = 15
-10i1 18i2 0i3 -3i4 0i5 0i6 = 10
-5i1 0i2 16i3 -2i4 0i5 -3i6 = 0
0i1 -3i2 -2i3 10i4 -1i5 0i6 = 0
0i1 0i2 0i3 -1i4 12i5 -4i6 = 0
0i1 0i2 -3i3 0i4 -4i5 7i6 = 0
2.-Elaboramos el cdigo en Matlab.
clear
A=[17 -10 -5 0 0 0;-10 18 0 -3 0 0;-5 0 16 -2 0 -3;0 -3 -2 10 -1 0; 0 0 0 -1 12
-4 ; 0 0 -3 0 -4 7]
b=[15 10 0 0 0 0]
X0=zeros(1,6);
X=X0;K=0;Norma=1;
fprintf(' k x(1) x(2) x(3) x(4) x(5) x(6) Norma \n')
while Norma > 0.001
K=K+1;
fprintf(' %2d',K)
for i=1:6
suma=0;
for j=1:6
if i~=j
suma=suma+A(i,j)*X(j);
end
end
X(i)=(b(i)-suma)/A(i,i);
fprintf('%10.4f',X(i))
end
Norma=norm(X0-X);
fprintf('%10.4f\n',Norma)
X0=X;
if K>15
disp('No se alcanzo la convergencia')
break
end
end
17 -10 -5 0 0 0
-10 18 0 -3 0 0
-5 0 16 -2 0 -3
0 -3 -2 10 -1 0
0 0 0 -1 12 -4
0 0 -3 0 -4 7
b=
15 10 0 0 0 0