Professional Documents
Culture Documents
3PC - Inchicaqui Gonzales Daniel Enrique - 20172656F - MC516H
3PC - Inchicaqui Gonzales Daniel Enrique - 20172656F - MC516H
LIMA – PERÚ
2021
CÁLCULO POR ELEMENTOS FINITOS (MC516)
INICIO
CÁLCULO DE l Y m
𝒙𝟐 − 𝒙𝟏 𝒚𝟐 − 𝒚𝟏
𝒍= 𝒚𝒎=
𝒍𝒆 𝒍𝒆
𝒍𝒆 = √(𝒙𝟐 − 𝒙𝟏 )𝟐 + (𝒚𝟐 − 𝒚𝟏 )𝟐
CALCULO DE ESFUERZOS
𝑬𝒆
𝝈= × [−𝒍 −𝒎 𝒍 𝒎] × 𝒒
𝑳𝒆
2
CÁLCULO POR ELEMENTOS FINITOS (MC516)
IMPRESIÓN DE RESULTADOS
FIN
3
CÁLCULO POR ELEMENTOS FINITOS (MC516)
%clear memory
clc
E= 210*(10^3); %MPa
A= 3000; %mm^2
EA= E*A;
%for structure
%displacements: displacement vector
%force: force vector
%stiffness: stiffness matrix
GDof= 2*numberNodes;
U= zeros(GDof,1);
force=zeros(GDof,1);
4
CÁLCULO POR ELEMENTOS FINITOS (MC516)
%solution
displacements = solution(GDof, prescribedDof, stiffness,
force);
us= 1:2:2*numberNodes-1;
vs= 2:2:2*numberNodes;
%drawing displacements
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=2*dispNorm;
clf
hold on
drawingMesh(nodeCoordinates+scaleFact*[XX
YY],elementNodes);
drawingMesh(nodeCoordinates, elementNodes);
%output displacements/reactions
outputDisplacementsReactions(displacements,
stiffness,...
GDof, prescribedDof)
%stresses at elements
stresses2Dtruss(numberElements, elementNodes,...
xx, yy, displacements, E)
formStiffness2Dtruss.m
function[stiffness]=...
formStiffness2Dtruss(GDof, numberElements,...
elementNodes,numberNodes, nodeCoordinates,...
xx, yy, EA)
stiffness= zeros(GDof);
5
CÁLCULO POR ELEMENTOS FINITOS (MC516)
C= xa/length_element;
S= ya/length_element;
k1= EA/length_element*...
[C*C C*S -C*C -C*S; C*S S*S -C*S -S*S;
-C*C -C*S C*C C*S; -C*S -S*S C*S S*S];
stiffness(elementDof, elementDof)=...
stiffness(elementDof, elementDof)+k1;
end
stresses2Dtruss.m
solution.m
function displacements = solution(GDof,...
prescribedDof, stiffness, force)
activeDof = setdiff([1:GDof]',...
[prescribedDof]);
U = stiffness(activeDof, activeDof)\force(activeDof);
displacements = zeros(GDof,1);
displacements(activeDof) = U;
6
CÁLCULO POR ELEMENTOS FINITOS (MC516)
drawingMesh.m
function drawingMesh(nodes, elementNodes)
%plot(nodes(:,1),nodes(:,2),''')
Rang= size(elementNodes);
for i=1:Rang
pointX1=nodes(elementNodes(i,1),1);
pointY1=nodes(elementNodes(i,2),1);
pointX2=nodes(elementNodes(i,1),2);
pointY2=nodes(elementNodes(i,2),2);
plot([pointX1 pointY1], [pointX2 pointY2], 'K-O');
end
outputDisplacementsReactions.m
function outputDisplacementsReactions...
(displacements, stiffness, GDof, prescribedDof)
%output of displacements and reactions in
%tabular form
%GDof: total number of degress of freedom of
%the problem
%displacements
disp('Displacements')
%displacements = displacements1
jj= 1:GDof; format
[jj' displacements]
%reactions
F= stiffness*displacements;
reactions= F(prescribedDof);
disp('reactions')
[prescribedDof (10^-3)*reactions]
7
CÁLCULO POR ELEMENTOS FINITOS (MC516)
8
CÁLCULO POR ELEMENTOS FINITOS (MC516)
3. CONCLUSIONES
posible en Matlab.
Matlab y Ansys.
9
CÁLCULO POR ELEMENTOS FINITOS (MC516)
10
CÁLCULO POR ELEMENTOS FINITOS (MC516)
11
CÁLCULO POR ELEMENTOS FINITOS (MC516)
12
CÁLCULO POR ELEMENTOS FINITOS (MC516)
ESFUERZO
BARRA
σ (N/mm2)
1 -89.8078
2 44.9006
3 89.8078
4 -89.8012
5 -8.9808
6 94.2912
7 8.9808
8 -98.7813
9 98.7886
10 49.3906
11 -98.7886
13
CÁLCULO POR ELEMENTOS FINITOS (MC516)
14