Professional Documents
Culture Documents
clear
E = [ 2e5 2e5 2e5 2e5 8e5 2e5 2e5 2e5 2e5 ] ; % ( N / mm2 )
A = [ 150 200 250 200 250 200 100 100 120 ] ; % ( mm2 )
L = [3000 3000 5000 4000 5000 4000 4000 5000 3000 ] ; % (mm)
theta = [ 0 0 53.13 90 126.87 90 0 36.87 90 ] ; % (grados)
EAL = E.*A./L ;
disp(EAL)
1.0e+04 *
Ke1 = EAL ( 1 ) * [ 1 -1 ; -1 1 ] ;
Ke2 = EAL ( 2 ) * [ 1 -1 ; -1 1 ] ;
Ke3 = EAL ( 3 ) * [ 1 -1 ; -1 1 ] ;
Ke4 = EAL ( 4 ) * [ 1 -1 ; -1 1 ] ;
Ke5 = EAL ( 5 ) * [ 1 -1 ; -1 1 ] ;
Ke6 = EAL ( 6 ) * [ 1 -1 ; -1 1 ] ;
Ke7 = EAL ( 7 ) * [ 1 -1 ; -1 1 ] ;
Ke8 = EAL ( 8 ) * [ 1 -1 ; -1 1 ] ;
Ke9 = EAL ( 8 ) * [ 1 -1 ; -1 1 ] ;
Multiplicación de matrices
K1=[T_cel(theta(1))]'*Ke1*[T_cel(theta(1))]
K1 = 4×4
10000 0 -10000 0
0 0 0 0
-10000 0 10000 0
0 0 0 0
disp(K1)
10000 0 -10000 0
0 0 0 0
-10000 0 10000 0
0 0 0 0
K2=[T_cel(theta(2))]'*Ke2*[T_cel(theta(2))]
K2 = 4×4
104 ×
1.3333 0 -1.3333 0
0 0 0 0
-1.3333 0 1.3333 0
1
0 0 0 0
disp(K2)
1.0e+04 *
1.3333 0 -1.3333 0
0 0 0 0
-1.3333 0 1.3333 0
0 0 0 0
K3=[T_cel(theta(3))]'*Ke3*[T_cel(theta(3))]
K3 = 4×4
103 ×
3.6000 4.8000 -3.6000 -4.8000
4.8000 6.4000 -4.8000 -6.4000
-3.6000 -4.8000 3.6000 4.8000
-4.8000 -6.4000 4.8000 6.4000
disp(K3)
1.0e+03 *
K4=[T_cel(theta(4))]'*Ke4*[T_cel(theta(4))]
K4 = 4×4
0 0 0 0
0 10000 0 -10000
0 0 0 0
0 -10000 0 10000
disp(K4)
0 0 0 0
0 10000 0 -10000
0 0 0 0
0 -10000 0 10000
K5=[T_cel(theta(5))]'*Ke5*[T_cel(theta(5))]
K5 = 4×4
104 ×
1.4400 -1.9200 -1.4400 1.9200
-1.9200 2.5600 1.9200 -2.5600
-1.4400 1.9200 1.4400 -1.9200
1.9200 -2.5600 -1.9200 2.5600
disp(K5)
1.0e+04 *
2
1.4400 -1.9200 -1.4400 1.9200
-1.9200 2.5600 1.9200 -2.5600
-1.4400 1.9200 1.4400 -1.9200
1.9200 -2.5600 -1.9200 2.5600
K6=[T_cel(theta(6))]'*Ke6*[T_cel(theta(6))]
K6 = 4×4
0 0 0 0
0 10000 0 -10000
0 0 0 0
0 -10000 0 10000
disp(K6)
0 0 0 0
0 10000 0 -10000
0 0 0 0
0 -10000 0 10000
K7=[T_cel(theta(7))]'*Ke7*[T_cel(theta(7))]
K7 = 4×4
5000 0 -5000 0
0 0 0 0
-5000 0 5000 0
0 0 0 0
disp(K7)
5000 0 -5000 0
0 0 0 0
-5000 0 5000 0
0 0 0 0
K8=[T_cel(theta(8))]'*Ke8*[T_cel(theta(8))]
K8 = 4×4
103 ×
2.5600 1.9200 -2.5600 -1.9200
1.9200 1.4400 -1.9200 -1.4400
-2.5600 -1.9200 2.5600 1.9200
-1.9200 -1.4400 1.9200 1.4400
disp(K8)
1.0e+03 *
K9=[T_cel(theta(9))]'*Ke9*[T_cel(theta(9))]
K9 = 4×4
3
0 0 0 0
0 4000 0 -4000
0 0 0 0
0 -4000 0 4000
disp(K9)
0 0 0 0
0 4000 0 -4000
0 0 0 0
0 -4000 0 4000
K=zeros(12,12);
%Fila 1
K(1:2,1:2)=K1(1:2,1:2)+K3(1:2,1:2);
K(1:2,3:4)=K1(1:2,3:4);
K(1:2,5:6)=K(1:2,5:6);
K(1:2,7:8)=K3(1:2,3:4);
K(1:2,9:10)=K(1:2,9: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