You are on page 1of 28

Assignment # 1

2D TRUSS ANALYSIS

STRUCTURAL ANALYSIS 3
Group # 5
Group Members:
Muneeb Ahsan Malik : Matlab code +
comparison
M. Waqas Malik :Manual till K -Matrix
Naveed Ashraf : Matlab code
Muneeb Afzal : Manual verification
M. Waqar : manual from K matrix
onwards
Assignment Requirements:
Manual Analysis

Mat lab Analysis

Comparison of Results


Manual Analysis:
Sequence:
Notations, Node and Element Number
Table of Direction Cosines
Writing Element Stiffness matrices
Assembling Global Stiffness Matrix
Applying Compatibility and Matrix partitioning
Evaluating unknown Displacements
Finding the unknown reactions using calculated
Displacements
Calculation of Bar Forces
Notations, Node and
Element Number
Each member was specified by a number enclosed
within a square.

A number enclosed within a circle was used to
identify the nodes.

Also, the near and far ends of the member were
identified by using an arrow
Table of Direction Cosines
Writing Element Stiffness
matrices
Where
Nx and Ny are the displacements in X and Y directions respectively at the
near end and Fx, Fy at the far end.

x is the Cosine of angle and y is Sin of angle

Element Stiffness Matrix
Assembling Global Stiffness
Matrix

Once all the member stiffness matrices are formed in global
coordinates, it becomes necessary to assemble them in the
proper order so that the stiffness matrix K for the entire truss can
be found.
Applying Compatibility and
Matrix partitioning

Evaluating unknown
Displacements
Finding the unknown reactions
using calculated Displacements

Calculation of Bar Forces

Matlab Code
for ielem = 1:12
A =6;
E =29000;
L = length(ielem);
c = memberlength_x(ielem)/length(ielem);
s = memberlength_y(ielem)/length(ielem);
lemdax=c^2;
lemday=s^2;
lemdaxlemday=c*s;
Z=A*E/L;
Members Input
elem=[1 2;1 3;2 3;2 4;2 5;3 4;3 5;4 5;4 6;4 7;5 6;5 7];
memberlength_x=[15;0;15;-15;0;0;15;15;0;15;-15;0];
memberlength_y=[-15;-15;0;-15;-15;-15;-15;0;-15;-15;-
15;-15];
length=[21.21;15;15;21.21;15;15;21.21;15;15;21.21;21.21;
15];
K_=zeros(14);% CREATING A 14*14 ARRAY TO STORE K
MATRIX

Element stiffness matrix
%Element Stiffness Matrix
K_e =[ lemdax,lemdaxlemday,-lemdax,-
lemdaxlemday ; lemdaxlemday,lemday,-
lemdaxlemday,-lemday ; -lemdax,-
lemdaxlemday,lemdax,lemdaxlemday ; -
lemdaxlemday,-lemday,lemdaxlemday,lemday ];
k_ei=Z*K_e;
Forces
JointForce(1,:)=10;JointForce(2,:)=-20;
JointForce(5,:)=20;
JointForce(4,:)=-35;
JointForce(7,:)=20;
AppForce=JointForce;

AppForce(14)=[];
AppForce(13)=[];
AppForce(12)=[];
AppForce(11)=[];
AppForce(9)=[];
AppForce
Member forces
for ielem = 1:12
U_mem=zeros(4,1);
A = 1;
E = 1;
L = length(ielem);
c = memberlength_x(ielem)/length(ielem);
s = memberlength_y(ielem)/length(ielem);
Z=A*E/L;
K_mem=[-c -s c s];
Results
displacements =

0.0281
0.0022
0.0143
-0.0091
0.0139
0.0031
0.0021
0.0018
-0.0048
Joint Force =

10.0000
-20.0000
-0.0000
-35.0000
20.0000
0.0000
20.0000
-0.0000
-68.5045
-0.0000
19.5968
-1.4955
-1.0924
56.4955

Comparison
Displacements =

0.0281
0.0022
0.013
-0.0091
0.0139
0.0031
0.0021
0.0018
-0.0050
Comparison
JointForce =

10.0000
-20.0000
-0.0000
-35.0000
20.0000
0.0000
20.0000
-0.0000
-68.5045
-0.0000
19.5968
-1.4955
-1.0924
56.4955
Analysis
We saw in our results from mat lab and manual we just
faced errors relating rounding of decimals.

Decimal places error also occurred from 3 decimal place
onwards due to the rounding of manual calculations
THANK YOU!

You might also like