Matlab Codes For FEM Problems
Matlab Codes For FEM Problems
Reg.No: 20MMF0004_______________________
Name : Abid
Yusuf____________________________
Slot : L3-4
COMPONENT MARKS
3 Viva 15
40
Total
A tapered bar is of circular cross section and is of length “L”. It has a larger diameter of 80
mm and a smaller diameter of 40 mm. The 80 mm diameter side is fixed and a tensile load of “P” is
applied axially at the 40 mm side. The Youngs modulus of the material is “E”. Find
P = 10 * (X+1) in kN =50kN
E = 200 GPa
My CODE
for a = 1:N
for k= 1:N
KK(a,k)=K(a+1,k+1);
end
end
P=zeros(N,1);
P(N,1)=P(N,1)+Load
U=KK\P
Solutions:
1: Element Stiffness Matrix for two elements
K=
1.0e+06 *
3.0788 -3.0788 0
0 -1.5708 1.5708
2: Output:
2 0.0481
20 0.0497
200 0.0497
2000 0.0497
20000 0.0497
Our Finite Element analysis of this bar has returned an exactly the same solution upto four decimal
(quite accurate) places at 20 elements itself, our study up until 20,000 elements just strengthens our finding.