Beruflich Dokumente
Kultur Dokumente
Facultad de Ingeniera
Departamento de Ingeniera Civil
Tarea N 2
Anlisis Estructural Avanzado
Alumnos:
Tania Cisterna
Benjamn Ledesma
Profesor(es):
Patricio Cendoya
Mauricio Inostroza
Fecha:
04 de Octubre 2013
Introduccin y Objetivos
Ejercicio I
Resultados:
Problema I
1
2
3
4
5
6
Deformada
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Ejercicio 2
Deformada
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Anexos
Cdigo General resolviendo problema I
%---------------Tarea II Marcos Planos 2D----------------%
%------------Tania Cisterna Benjamn Ledesma---------------%
close all;
clear all;
clc
echo off
%INGRESO DE DATOS DE COORDENADAS Y PROPIEDADES DE LAS SECCIONES
%-----------------------------------------------------------------------%Coordenadas por nodos
%
#Nodo X
Y
coord=[ 1
0
0
2
12
0
3
0
6
4
12
6
5
0
12
6
12
12
];
%Conecciones
%
#Barra #nodo
conec=[1
1
2
2
3
3
4
4
5
3
6
5
#nodo
3
4
5
6
4
6
];
%Restricciones
%
#NN #Rx #Ry #RM
Rest=[1
1
1
1
2
1
1
1
];
%Propiedades de rea y E.
A=[1 0.093
2 0.093
3 0.093
4 0.093
5 0.14
6 0.14];
E=[1 30*10^6
2 30*10^6
3 30*10^6
4 30*10^6
5 30*10^6
6 30*10^6];
I=[1 720*10^-6
2 720*10^-6
3 720*10^-6
4 720*10^-6
5 2430*10^-6
6 2430*10^-6];
%Fuerzas externas aplicadas en nudos directamente
%
#NN #Fx #Fy #M
FN1=[3
60 0
0
5
30 0
0
];
%Fuerzas inducidas en nudos producto de cargas en miembros
%NOTA: Si direccin no corresponde a eje local de miembro analizado,
%separar en dos cargas que apunten en ejes locales.
%A=w*l/2 C=w*l/2 M=w*l^2/12. (positivo si actua en direccin negativa de
%ejes locales)
%Cargas externas aplicadas sobre miembros en direccion vertical u
%horizontal correspondiente a eje de elemento.(descomponer en caso
contrario)
%Y POSITIVO EN DIRECCION HACIA ABAJO
%
#NB #Qx #Qy
FM1=[5
0 12
6
0
12];
NN=size(coord,1); %NUMERO DE NODOS
NB=size(conec,1); %NUMERO DE BARRAS
Edof = [coord(:,1) (1:3:3*NN-2)' (2:3:3*NN-1)' (3:3:3*NN)'];%MATRIZ CON
NUMERO DE GRADO DE LIBERTAD ASOCIADO A CADA NODO EN ORDEN X-Y
VC=zeros(NB,6); %Matriz que mezcla Edof con coord
for i=1:NB
VC(i,1:3)=Edof(conec(i,2),2:4);
VC(i,4:6)=Edof(conec(i,3),2:4);
end
GDLR=[];%VECTOR VACIO QUE SE LLENA CON NUMERO DE GRADO DE LIBERTA
RESTRINGIDO
for i=1:size(Rest,1)
for j=1:3
if Rest(i,j+1)==1
GDLR=[GDLR Edof(Rest(i),j+1)];
end
end
end
GDLNR=1:3*NN;%GENERA VECTOR CON TODOS LOS GDL EN ORDEN
GDLNR(GDLR)=[];%ELIMINA LOS GDLR
%-------------------------------------------------------------------------------------------------------------------------%GENERACION MATRIZ DE RIGIDEZ GLOBAL Y RESOLUCION DE ECUACIONES
VA=[1,0];%DEFINE UN VECTOR DESDE ORIGEN EN DIRECCION HORIZONTAL
K=zeros(3*NN);
k3=zeros(3*NN);%MATRIZ AUXILIAR PARA PASAR DE k a K
KL=zeros(6,6,NB);
T=zeros(6,6,NB);
for i=1:NB
ymin=min(coord(:,3)); ymax=max(coord(:,3));
%distancia de margen para la estructura
margen=max([ymax-ymin,xmax-xmin]);
%coordenadas a plotear de la estructura
X=[coord(conec(:,2),2)';coord(conec(:,3),2)'];
Y=[coord(conec(:,2),3)';coord(conec(:,3),3)'];
X2=[CD(conec(:,2),1)';CD(conec(:,3),1)'];
Y2=[CD(conec(:,2),2)';CD(conec(:,3),2)'];
x=plot(X,Y,'b -',X2,Y2,'r --');
axis([xmin-margen/6 xmax+margen/6 ymin-margen/6 ymax+margen/6])