Finite Element Analysis of Space Truss Using MATLAB: January 2015
Finite Element Analysis of Space Truss Using MATLAB: January 2015
Finite Element Analysis of Space Truss Using MATLAB: January 2015
net/publication/283092927
CITATIONS READS
3 2,383
3 authors, including:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Sangeetha P. on 04 June 2019.
www.arpnjournals.com
ABSTRACT
One of the interesting engineering application is space truss, a three dimensional element, particularly used as roof
for industrial and commercial structure spanning large distances. Analysis of space truss can be performed by many
commercial FEA software available in the market. This paper concerns the current growth of MATLAB based program
which analyze the space truss step by step as done in Finite Element Analysis. Using MATLAB all stages of calculations
have been done to solve the space truss and verify with that of published experimental data.
3812
VOL. 10, NO. 8, MAY 2015 ISSN 1819-6608
www.arpnjournals.com
3813
VOL. 10, NO. 8, MAY 2015 ISSN 1819-6608
www.arpnjournals.com
%Space Truss Element Assemble This function assembles Function y = Space Truss Element Force (E, A, L, the tax,
the element stiffness matrix k of the space truss element the tay, the taz,u)
%SpaceTrussElementForce
with nodes i and j into the global stiffness matrix K. This This function returns the element force given the
function returns the global stiffness matrix K after the modulus of elasticity E, the cross-sectional area A, the
element stiffness matrix k is assembled. % Stiffness length L, the angles the tax, the tay, the taz (in degrees),
Matrix Construction and the element nodal displacement vector u.
x = thetax * pi/180;
k = zeros(3*G,3*G);
w = thetay * pi/180;
for i=1:E
v = thetaz * pi/180;
for j=1:3
Cx = cos(x);
for h=1:3
Cy = cos(w);
Cz = cos(v);
k(3*(l1(i)-1)+h,3*(l1(i)-1)+j) = k(3*(l1(i)-1)+h,3*(l1(i)-
y = E*A/L*[-Cx -Cy -CzCx Cy Cz]*u;
1)+j) + k_elem(h,j,i);
k(3*(l1(i)-1)+h,3*(l2(i)-1)+j) = k(3*(l1(i)-1)+h,3*(l2(i)- Function y = Space Truss Element Stress (E,L, the tax, the
1)+j) + k_elem(h,j,i); tay, the taz,u)
k(3*(l2(i)-1)+h,3*(l1(i)-1)+j) = k(3*(l2(i)-1)+h,3*(l1(i)-
%SpaceTrussElementForce This function returns the element stress given the modulus
1)+j) + k_elem(h,j,i); of elasticity E, the length L, the angles the tax, the tay, the
k(3*(l2(i)-1)+h,3*(l2(i)-1)+j) = k(3*(l2(i)-1)+h,3*(l2(i)- taz (in degrees), and the element nodal displacement
1)+j) + k_elem(h,j,i); vector u.
x = the tax * pi/180;
%Assemble Matrix Construction w = the tay * pi/180;
K = zeros(3*G,3*G); v = the taz * pi/180;
for i=1:G Cx = cos(x);
for j=1:E Cy = cos(w);
if(l1(j)==i || l2(j)==i) Cz = cos(v);
K(3*i-2,3*i-2) = (Ro(j)*Area(j)*L(j))/2 + K(3*i-2,3*i-2); y = E/L*[-Cx -Cy -CzCx Cy Cz]*u;
K(3*i-1,3*i-1) = (Ro(j)*Area(j)*L(j))/2 + K(3*i-1,3*i-1); %Plot Undeformed and Deformed shapes
K(3*i,3*i) = (Ro(j)*Area(j)*L(j))/2 + K(3*i,3*i); for i=1:E
x_bef(1,i)=x(l1(i));
%Space Truss Element Assemble This function assembles x_bef(2,i)=x(l2(i));
the element stiffness matrix k of the space truss element y_bef(1,i)=y(l1(i));
with nodes i and j into the global stiffness matrix K. This y_bef(2,i)=y(l2(i));
function returns the global stiffness matrix K after the z_bef(1,i)=z(l1(i));
element stiffness matrix k is assembled. %Stiffness Matrix z_bef(2,i)=z(l2(i));
Construction x_aft(1,i)=x(l1(i))+Q(1+3*(l1(i)-1),2);
x_aft(2,i)=x(l2(i))+Q(1+3*(l2(i)-1),2);
k = zeros(3*G,3*G); y_aft(1,i)=y(l1(i))+Q(2+3*(l1(i)-1),2);
for i=1:E y_aft(2,i)=y(l2(i))+Q(2+3*(l2(i)-1),2);
for j=1:3 z_aft(1,i)=z(l1(i))+Q(3+3*(l1(i)-1),2);
for h=1:3 z_aft(2,i)=z(l2(i))+Q(3+3*(l2(i)-1),2);
k(3*(l1(i)-1)+h,3*(l1(i)-1)+j) = k(3*(l1(i)-1)+h,3*(l1(i)- end
1)+j) + k_elem(h,j,i); x_offset=.2*(max(x)-min(x));
k(3*(l1(i)-1)+h,3*(l2(i)-1)+j) = k(3*(l1(i)-1)+h,3*(l2(i)- y_offset=.2*(max(y)-min(y));
1)+j) + k_elem(h,j,i); z_offset=.2*(max(z)-min(z));
k(3*(l2(i)-1)+h,3*(l1(i)-1)+j) = k(3*(l2(i)-1)+h,3*(l1(i)- xmin=min(x)-x_offset;
1)+j) + k_elem(h,j,i); xmax=max(x)-x_offset;
k(3*(l2(i)-1)+h,3*(l2(i)-1)+j) = k(3*(l2(i)-1)+h,3*(l2(i)- ymin=min(y)-y_offset;
1)+j) + k_elem(h,j,i); ymax=max(y)-y_offset;
%Assemble Matrix Construction zmin=min(z)-z_offset;
zmax=max(z)-z_offset;
K = zeros(3*G,3*G);
plot3(x_bef, y_bef, z_bef, 'b', x_aft, y_aft, z_aft, 'g')
for i=1:G
axisequal;
for j=1:E
axis([xmin xmax ymin ymax zmin zmax]);
if(l1(j)==i || l2(j)==i)
view([1,1,1]);
K(3*i-2,3*i-2) = (Ro(j)*Area(j)*L(j))/2 + K(3*i-2,3*i-2);
K(3*i-1,3*i-1) = (Ro(j)*Area(j)*L(j))/2 + K(3*i-1,3*i-1);
K(3*i,3*i) = (Ro(j)*Area(j)*L(j))/2 + K(3*i,3*i);
3814
VOL. 10, NO. 8, MAY 2015 ISSN 1819-6608
www.arpnjournals.com
3815
VOL. 10, NO. 8, MAY 2015 ISSN 1819-6608
www.arpnjournals.com
CONCLUSIONS
REFERENCES
3816
View publication stats