Documente Academic
Documente Profesional
Documente Cultură
ANLISIS MATRICIAL
ALUMNO: MARCO REYES
FECHA: 2012-12-03
>> SAEP=zeros(21,1);
>> [SAEP]=Acum2(lee1,AEP,SAEP);
>> [SAEP]=Acum2(lee2,AEP,SAEP);
>> [SAEP]=Acum2(lee3,AEP,SAEP);
>> [SAEP]=Acum2(lee4,AEP,SAEP);
>> Delta=S\-SAEP(1:14); format long
>> %Desplazamiento de elementos en coordenadas globales
>> Delta(21)=0
Delta =
-0.002401504823903
0.000115151176828
-0.001693785805204
0.000500116745203
0.000000000000000
-0.000802075686179
-0.000000000000000
0.000000000000000
-0.001262680393489
-0.000000000000000
-0.000115151176828
-0.001693785805204
-0.000500116745203
0.002401504823903
0
0
0
0
0
0
0
>> [SAEP]=Acum2(lee1, AEP, SAEP);
>> [SAEP]=Acum2(lee2, AEP, SAEP);
>> [SAEP]=Acum2(lee3, AEP, SAEP);
>> [SAEP]=Acum2(lee4, AEP, SAEP);
>> Delta(21)=0
>> D1=Delta(lee1);
>> D2=Delta(lee2);
>> D3=Delta(lee3);
>> D4=Delta(lee4);
>> D5=Delta(lee5);
>> D6=Delta(lee6);
>> D7=Delta(lee7);
>> D8=Delta(lee8);
>> Dmp=[D1 D2 D3 D4 D5 D6];
>> Dt=[D7 D8];
>> d1=T1'*D1; d2=T1'*D2; d3=T1'*D3; d4=T1'*D4; d5=T5'*D5; d6=T5'*D6; d7=T7'*D7; d8=T8'*D8;
>> a1=K1*d1+aep; a2=K1*d2+aep; a3=K1*d3+aep; a4=K1*d4+aep; a5=K1*d5; a6=K1*d6;
>> a7=kt*d7; a8=kt*d8;
>> a_mp=[a1 a2 a3 a4 a5 a6]; a_t=[a7 a8];
a_mp =
Columns 1 through 4
-9.595931402294797 9.595931402294788 9.595931402294792 -9.595931402294783
14.580179742550282 9.772042547139881 14.227957452860128 9.419820257449707
-0.000000000000002 13.924925107270715 11.811591369129729 13.924925107270711
9.595931402294797 -9.595931402294788 -9.595931402294792 9.595931402294783
9.419820257449718 14.227957452860119 9.772042547139872 14.580179742550293
-13.924925107270717 -11.811591369129729 -13.924925107270711 -0.000000000000004
Columns 5 through 6
66.839640514899401 38.383725609179109
0.000000000000000 0.000000000000005
-0.000000000000001 -0.000000000000000
-66.839640514899401 -38.383725609179109
-0.000000000000000 -0.000000000000005
-0.000000000000002 -0.000000000000000
>> a_t
a_t =
-27.141392665454333 -27.141392665454347
0
0
27.141392665454333 27.141392665454347
0
0
>> diary off
SUBRRUTINA DE ENSAMBLE
function [S]=Ens(lee,K,S,ngdl)
%Programa Ensamble de la Matriz de Rigidez de un elemento en la Matriz de Rigidez del Sistema
% lee = Vector de Ensamble
% K = Matriz de Rigidez del Elemento
% S = Matriz de Rigidez del Sistema
% ngdl = Numero de grados de libertad de la estructura
ng=length(lee);
for i=1:ng
ii=lee(i);
if ii>0
if ii<=ngdl
for j=1:ng
jj=lee(j);
if jj>0
if jj<=ngdl
S(ii,jj)=S(ii,jj)+K(i,j);
end
end
end
end
end
end
end
SUBRRUTINA DE ACUMULAR ACCIONES
function [PR]=Acum2(lee,Ae,PR)
%Programa Acumular Acciones de empotramiento para ensamblar SAEP
%o Acciones Finales para comprobar el Equilibrio
% [PR]=Acum2(lee,Ae,PR)
%
ng=length(lee);
for i=1:ng
ii=lee(i);
PR(ii)=PR(ii)+Ae(i);
end
end
>> [T1]=M_TMP(90);
>> [T4]=M_TMP(36.87);
>> [T5]=M_TMP(-36.87);
>> help M_KAP
Matriz K de Elemento Armadura Plana
[K]=M_KAP(A,L,E)
A = Area de la seccin transversal
L = Logitud
E = Modulo de Elasticidad
>> [k8]=M_KAP(pi*0.2^2/4,8,Ea);
>> help M_TAP
Matriz de Transformacion
[T]=M_TAP(alfa)
Dato= alfa(angulo con respecto a x del elemento)
>> [T8]=M_TAP(0);
>> K1=T1*k1*T1'; K4=T4*k4*T4'; K5=T5*k4*T5'; K8=T8*k8*T8';
>> S=zeros(15); B=zeros(24,1);
>> %Vectores de ensamble`
>> lee1=[16 17 18 1 2 3];
>> lee2=[19 20 21 7 8 9];
>> lee3=[22 23 24 13 14 15];
>> lee4=[1 2 3 4 5 6];
>> lee5=[4 5 6 7 8 9];
>> lee6=[7 8 9 10 11 12];
>> lee7=[10 11 12 13 14 15];
0
0
0
1.712449105294841
16.155625192383496
-1.911448506486590
-0.000000000000000
31.688749615130902
0.000000000000001
0
0
0
>> diary off
MATRIZ DE RIGIDEZ
function [K]=M_KAP(A,L,E)
%Matriz K de Elemento Armadura Plana
% [K]=M_KAP(A,L,E)
% A = Area de la seccin transversal
% L = Logitud
% E = Modulo de Elasticidad
Ra=A*E/L;
K= [Ra 0 -Ra 0
0 0 0 0
-Ra 0 Ra 0
0 0 0 0];
end
MATRIZ DE TRANSFORMACIN
function [T]=M_TAP(alfa)
%Matriz de Transformacion
% [T]=M_TAP(alfa)
% Dato= alfa(angulo con respecto a x del elemento)
%
alf_r=pi*alfa/180; C=cos(alf_r); S=sin(alf_r);
T=[C -S 0 0
S C 0 0
0 0 C -S
0 0 S C];
end
MATRIZ DE RIGIDEZ
function [K]=M_KMP(A,I,L,E)
%Matriz K de Elemento Marco Plano
% [K]=M_KMP(A,I,L,E)
% A = Area
% I = Inercia
% L = Longitud
% E = Modulo de Elasticidad
k=4*E*I/L; a=2*E*I/L; b=6*E*I/L^2; t=12*E*I/L^2; Ra=A*E/L;
K= [Ra 0 0 -Ra 0 0
0 t b 0 -t b
0 b k 0 -b a
-Ra 0 0 Ra 0 0
0 -t -b 0 t -b
0 b a 0 -b k];
end
MATRIZ DE TRANSFORMACIN
function [T]=M_TMP(alfa)
%Matriz de Transformacion para el elemento Marco Plano
%
[T]=M_TMP(alfa)
%
Dato= alfa(angulo con respecto a x del elemento)
%
alf_r=pi*alfa/180; C=cos(alf_r); S=sin(alf_r);
T=[C -S 0 0 0 0
S C 0 0 0 0
0 0 1 0 0 0
0 0 0 C -S 0
0 0 0 S C 0
0 0 0 0 0 1];
End
SUBRRUTINA DE ENSAMBLE
function [S]=Ens(lee,K,S,ngdl)
%Programa Ensamble de la Matriz de Rigidez de un elemento en la Matriz de Rigidez del Sistema
% lee = Vector de Ensamble
% K = Matriz de Rigidez del Elemento