Vous êtes sur la page 1sur 6

(Ochoa Ochoa R-7b-P(2).

pdf

Modo 1 Tnatural:0.2346 Modo 2 TNatural=0.1774


T3=0.12723

T4=0.10081

clc
clear all
xaxis=[0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.4 1 1 1 1 1];
yaxis=[0 1 1 1 1 0.85 0.85 0.85 0.85 0.85 0.85 0.85 0.85 0.85 0.85 0.85
0.85 0.85 0.85 0.85 0.85];
zaxis=[0];
Nodes=nodgen(yaxis,xaxis,zaxis);
xbays=[0 5 12 17 17.4 22.4];
yfloors=[4 (4+0.85+0.85+0.85+0.85)
(4+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85)
(4+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85)
(4+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+0.85+
0.85+0.85)];
zbays=[];
Nodes = NodesErase(Nodes,xbays,yfloors,zbays);
Nodes=[Nodes;[Nodes(end,1)+1 -1 -1 0]]; % nodo referencial
Types={1 'beam'};
[ Elements,nelec,neleb ] = creteEle2D(Nodes, xaxis,yaxis,xbays,yfloors);

Nodos=round(Nodes,2)
xi=0.03;
%Masas

%c1=1 c2=2 v1=3 v2=4 v3=5


h1=0.6; b1=0.6;
h2=0.5; b2=0.5;
h3=0.2209; b3=0.2209;
h4=0.232; b4=0.232;
h5=0.265; b5=0.265;
A1=36*10^(-2);
A2=25*10^(-2);
A3=4.88*10^(-2);
A4=5.37*10^(-2);
A5=7.03*10^(-2);
md=5000; % [kg/m]
ma=(md/(A1))+7850;% [kg/m3]
md1=4000; % [kg/m]
ma1=(md1/A2)+7850;% [kg/m3]
md2=3000; % [kg/m]
ma2=(md2/(A3))+7850;% [kg/m3]
md3=2500; % [kg/m]
ma3=(md3/(A4))+7850;% [kg/m3]
md4=2000; % [kg/m]
ma4=(md4/(A5))+7850;% [kg/m3]

% Datos de las secciones


% [m2] [m4] [m] [m] [m] [m]
% Sections=[SecID A ky kz Ixx Iyy Izz yt yb zt
zb]
Sections= [ 1 36*10^-2 Inf Inf 0 0 108 h1/2 h1/2
b1/2 b1/2;
2 25*10^-2 Inf Inf 0 0 52 h2/2 h2/2
b2/2 b2/2;
3 4.88*10^-2 0.255 Inf 0 0 14.2 h3/2 h3/2
b3/2 b3/2;
4 5.37*10^-2 0.259 Inf 0 0 16.0 h4/2 h4/2
b4/2 b4/2;
5 7.03*10^-2 0.259 Inf 0 0 22.6 h5/2 h5/2
b5/2 b5/2];
% [Kg/m2] [kg/m3]
% Materials=[MatID E nu rho];
Materials= [ 1 3.28e9 0.2 2400; % Hormigon Armado
2 3.28e9 0.2 2400;% Hormigon Armado
3 21e9 0.3 ma;
4 21e9 0.3 ma1;
5 21e9 0.3 ma2;
6 21e9 0.3 ma3;
7 21e9 0.3 ma4];
% c=[ clasecolumna seccion material]
COLUMNA=[1 1 1;
2 2 2];
%v=[ claseviga seccion material]
VIGA=[1 3 3;
2 3 4;
3 4 5;
4 4 6
5 5 7];
for i=1:20
Elements(i,3)=COLUMNA(1,2);
Elements(i,4)=COLUMNA(1,3);
end
for i=21:40
Elements(i,3)=COLUMNA(2,2);
Elements(i,4)=COLUMNA(2,3);
end
for i=41:60
Elements(i,3)=COLUMNA(2,2);
Elements(i,4)=COLUMNA(2,3);
end
for i=61:80
Elements(i,3)=COLUMNA(1,2);
Elements(i,4)=COLUMNA(1,3);
end
for i=81:100
Elements(i,3)=COLUMNA(2,2);
Elements(i,4)=COLUMNA(2,3);
end

for i=101:120
Elements(i,3)=COLUMNA(2,2);
Elements(i,4)=COLUMNA(2,3);
end
for i=121:143
Elements(i,3)=VIGA(1,2);
Elements(i,4)=VIGA(1,3);
end
for i=144:166
Elements(i,3)=VIGA(2,2);
Elements(i,4)=VIGA(2,3);
end
for i=167:189
Elements(i,3)=VIGA(3,2);
Elements(i,4)=VIGA(3,3);
end
for i=190:212
Elements(i,3)=VIGA(3,2);
Elements(i,4)=VIGA(3,3);
end
for i=213:235
Elements(i,3)=VIGA(4,2);
Elements(i,4)=VIGA(4,3);
end
be=[138,230,184]
Elements(be,:)=[]
Nodos=round(Nodes,2)
figure;
plotnodes(Nodes)
hold on
plotelem(Nodes,Elements,Types)
hold off

% Degrees of freedom
% Assemble a column matrix containing all DOFs at which stiffness is
% present in the model
DOF=getdof(Elements,Types);
% Remove all DOFs equal to zero from the vector
% - 2D analysis select only UX,UY,ROTZ
% - clamp node 1
% - hinge at node 5
seldof=[0.03; 0.04; 0.05; 1.02; 2.00;3.00;4.02;5.00;6.00];
DOF=removedof(DOF,seldof);

% Assembly of stiffness matrix K


[K,M] = asmkm(Nodes,Elements,Types,Sections,Materials,DOF);

% Eigenvalue problem
nMode=4;
[phi,omega]= eigfem(K,M,nMode);
omega
figure;
plotdisp(Nodes,Elements,Types,DOF,phi(:,1),'DispMax','on')
figure;
plotdisp(Nodes,Elements,Types,DOF,phi(:,2),'DispMax','on')
figure;
plotdisp(Nodes,Elements,Types,DOF,phi(:,3),'DispMax','on')
figure;
plotdisp(Nodes,Elements,Types,DOF,phi(:,4),'DispMax','on')

% Animate eigenmodes
figure;
animdisp(Nodes,Elements,Types,DOF,phi(:,1))
title('Eigenmode 1')
figure;
animdisp(Nodes,Elements,Types,DOF,phi(:,2))
title('Eigenmode 2')
figure;
animdisp(Nodes,Elements,Types,DOF,phi(:,3))
title('Eigenmode 3')
figure;
animdisp(Nodes,Elements,Types,DOF,phi(:,4))
title('Eigenmode 4')
T1=0.2346;
T2=0.1774;
% Carga Peso Propio

DLoads=accel([0 9.81 0],Elements,Types,Sections,Materials);


P=elemloads(DLoads,Nodes,Elements,Types,DOF);
x1=K\P; %deformacion peso propio
y1=zeros(length(x1),1);% Velocidad inicial
%carga
seldof=[201.00];
gds1=selectdof(DOF,seldof);
p=sum(gds1,1).';
E=phi.'*M*p;
t=(0:0.01:25)
P=10*exp(0.1*t)-2*t.*sin(4*t)./exp(0.1*t);
P_=[];
for i=1:length(x1)
if p(i)==1
u0=x1(i);
break
end
end

[D,~,~,t]=newmark(1,2*xi*omega(1),(omega(1))^2,0.01,P,u0,0,0,[1/2 1/6]);
U1=E(1)*phi(:,1)*D;
figure;
animdisp(Nodes,Elements,Types,DOF,U1);

Vous aimerez peut-être aussi