Sunteți pe pagina 1din 9

ELEMENTOS FINITOS APLICADOS

Informe de Elementos Finitos

EJERCICIO INDIVIDUAL ESTRUCTURA

Ing. FERNANDO OLMEDO

Integrantes:
Jos vila.

9no. Nivel:
Ingeniera Mecnica

EJERCICIO 7.6
%................................................................
% MATLAB codes for Finite Element Analysis
% problem4.m
% JOS EDUARDO VILA BRITO
% clear memory
clear all
clc
% E; modulus of elasticity
% A: area of cross section
% L: length of bar
E=200000; A=10000; EA=E*A;
% generation of coordinates and connectivities
numberElements=21;
numberNodes=12;
%conectividad
elementNodes=[1 3;1 2;2 3; 2 4; 3 4; 3 5; 4 5; 4 7; 5 7; 5 6; 7 6; 6 8; 7
8; 7 9; 9 8; 8 10; 9 10; 9 11; 11 10; 10 12; 11 12];
nodeCoordinates=[ 0 0;9150 0;9150 4570;18300 0; 18300 7620; 27450 9150;
27450 0; 36600 7620; 36600 0; 45750 4570; 45750 0; 54900 0];
xx=nodeCoordinates(:,1);
yy=nodeCoordinates(:,2);
% for structure:
% displacements: displacement vector
% force : force vector
% stiffness: stiffness matrix
GDof=2*numberNodes; % GDof: total number of degrees of freedom
displacements=zeros(GDof,1);
force=zeros(GDof,1);
% applied load at node 2 , 4, 7
force(2)=-356727.27
force(4)=-445909.09
force(7)=-535090.91
% computation of the system stiffness matrix
[stiffness]=...
formStiffness2Dtruss(GDof,numberElements,elementNodes,numberNodes,nodeCoo
rdinates,xx,yy,EA);
% boundary conditions and solution
prescribedDof= [1 2 24]';
% solution
displacements=solution(GDof,prescribedDof,stiffness,force);
% drawing displacements
us=1:2:2*numberNodes-1;
vs=2:2:2*numberNodes;
figure
L=xx(2)-xx(1);
%L=node(2,1)-node(1,1);
XX=displacements(us);YY=displacements(vs);
dispNorm=max(sqrt(XX.^2+YY.^2));
scaleFact=5*dispNorm;
clf
hold on
drawingMesh(nodeCoordinates+scaleFact*[XX YY],elementNodes,'L2','k.-');
drawingMesh(nodeCoordinates,elementNodes,'L2','k.--');
% stresses at elements
stresses2Dtruss(numberElements,elementNodes,...
xx,yy,displacements,E)
% output displacements/reactions
outputDisplacementsReactions(displacements,stiffness,GDof,prescribedDof)

Corrida del Programa:

force =

1.0e+005 *

0
-3.5673
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

force =
1.0e+005 *

0
-3.5673
0
-4.4591
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

force =

1.0e+005 *

0
-3.5673
0
-4.4591
0
0
-5.3509
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

elementDof =

1 2 5 6

elementDof =

1 2 3 4

elementDof =

3 4 5 6

elementDof =

3 4 7 8

elementDof =

5 6 7 8

elementDof =

5 6 9 10

elementDof =

7 8 9 10
elementDof =

7 8 13 14

elementDof =

9 10 13 14

elementDof =

9 10 11 12

elementDof =

13 14 11 12

elementDof =

11 12 15 16

elementDof =

13 14 15 16

elementDof =

13 14 17 18

elementDof =

17 18 15 16

elementDof =

15 16 19 20

elementDof =
17 18 19 20

elementDof =

17 18 21 22

elementDof =

21 22 19 20

elementDof =

19 20 23 24

elementDof =

21 22 23 24

stresses

ans =

-83.1630
20.8904
44.5909
20.8904
-43.2622
-37.6270
19.3305
35.6961
-17.4391
-22.6050
7.4562
-22.6050
5.7876
17.8481
-1.4825
-18.8135
3.3178
14.8799
0.0000
-16.6326
14.8799
Displacements

ans =

1.0000 0
2.0000 0
3.0000 0.9557
4.0000 -20.5107
5.0000 4.9815
6.0000 -19.4918
7.0000 1.9115
8.0000 -20.6872
9.0000 3.2217
10.0000 -19.9507
11.0000 1.7654
12.0000 -17.5994
13.0000 3.5446
14.0000 -17.9405
15.0000 1.2051
16.0000 -14.5928
17.0000 4.3611
18.0000 -14.5363
19.0000 1.9820
20.0000 -9.3931
21.0000 5.0419
22.0000 -9.3931
23.0000 5.7226
24.0000 0

reactions

ans =

1.0e+005 *

0.0000 5.3509
0.0000 3.7159
0.0002 0.7432

S-ar putea să vă placă și