Development of Structural Analysis Program For Truss Structure Using Matlab
Development of Structural Analysis Program For Truss Structure Using Matlab
Abstract: This paper researches analysis of truss by problems can be handled by finite element analysis. This
MATLAB developed program. The structural analysis method is used extensively for the analysis and design of
program helps to analyze truss which gives the results of ships, aircrafts, space crafts, electric motors and heat
displacement, reaction and stresses. A MATLAB script engines. Analysis of truss structure involves computational
based on finite element technique is developed to generate deflection and solution of simultaneous equation. In order to
numerical results. The results obtained from MATLAB analyze the truss using computer programming languages
program were compared to results of other structural like MATLAB, C, C++ and FORTRAN and different soft
analysis software, STADD-pro. It enables the user to wares such as STADD-pro, e-tab, Ansys, etc. The existing
analyze the truss with less efforts and time to give accurate work on truss analysis programming limit sit to analyze for
results as the method used is Finite Element Analysis which proposed particular truss structure. The use of computer
itself is a very useful and effective method to analyze gives quick and accurate solution of trusses. Although there
structure. are many programming languages MATLAB software was
Keywords: Truss analysis, Finite element method, chosen as it has many embedded tools which simplify matrix
MATLAB, stiffness, displacement, stresses, reactions. operation encountered in the finite element method of
structural analysis. MATLAB is a tool for doing numerical
I. INTRODUCTION computations w1ith matrices and vectors. It can also display
A truss is a structure with members connected at their ends information graphically. Matlab is quiet useful in
by pin joints and subjected to load and reactions only at the computation of complex and large order matrices. This paper
joints. The truss can be classified as a plane truss and space comprises of MATLAB coding for finite Element analysis of
truss. When all the members and external load lie in the same truss.
plane the truss is a plane truss. Whereas in space truss the
members and loading use all the three coordinate system. II. OVERVIEW OF THE METHOD
This paper consists of plane truss. Over the years, the truss The procedure used in analysis of the truss in finite element
system has been increasing popular because of their light method comprises of various steps. The stepwise procedure
weight, pleasing appearance, high strength, easy fabrication can be divided as follows:
and rapid erection. Many structural truss applications are A. Select suitable field variable and the elements:
found all over the world covering stadium exhibition centers, In the above first step in FEM, two-dimensional elements
factories, airplane hangars bridges and many other. In may have a variety of shapes such as flat or curved triangles
today’s structural world truss is one of the most important and quadrilaterals. Nodes are usually placed at the element
structure to withhold enough strength to carry the loads and corners and, if needed for higher accuracy, additional nodes
ensure the stability and safety. To analyze the truss the can be placed along the element edges or even inside the
method used is Finite Element Analysis. Thefinite element element.
method (FEM) is a numerical technique for finding
approximate solutions to boundary value problems for partial B. Discretize the continua:
differential equations. It includes the use of mesh generation In this step the entire truss is divided into small elements.
techniques for dividing a complex problem into small These elements coincide with the geometry of the structure.
elements as well as the use of software program coded with For truss line elements are used.
FEM algorithm.Finite Element Analysis encompasses
methods for connecting many simple element equations over C. Find element properties:
many small sub domains, named finite elements, to After selecting element and nodal unknowns, next step in
approximate a more complex equation over a larger domain. finite element analysis is to assemble element properties for
Today this method is used not only for the analysis in solid each element which includes area (A) and elastic modulus
mechanics, but even in the analysis of fluid flow, heat (E). Find out the length and coordinates of each node and
transfer, electric and magnetic fields and many others. Civil direction cosines of each element. The stiffness matrix of
engineers use this method extensively for the analysis of each element in local coordinate system with local
beams, space frames, plates, shells, folded plates, numbering is calculated.
foundations, rock mechanics problems and seepage analysis For truss:2-D truss element. The direction cosines l and m
of fluid through porous media. Both static and dynamic are as follows,
𝑥2 − 𝑥1 𝑦2 − 𝑦1
l= , m= (1) A. Pre-Processing:
𝐿 𝐿
Pre-processing stage defines the structural analysis problem
D. Assemble Global Properties: which includes definition of geometry, physical properties of
Element properties are used to assemble global properties to the section, applied loads and nodal constraints. Processing
get system equations. The global stiffness matrix is compiled stage solves the problem defined in the pre-processing stage
with the help of all members stiffness matrix[k] and nodal using finite element method. Solution contains the unknown
external load vector matrix is assembled [q]. nodal displacements and reaction forces at the constrained
The stiffness matrix for an element is as follows, nodes.
𝑙2 𝑙𝑚 −𝑙2 −𝑙𝑚 Pre-processing
2
k=
𝐴𝐸 𝑙𝑚 𝑚 −𝑙𝑚 −𝑚2 (2) (Preparation of geometry)
𝐿 −𝑙2 −𝑙𝑚 𝑙2 𝑙𝑚
2 2
−𝑙𝑚 −𝑚 𝑙𝑚 𝑚
Structural type
E. Boundary conditions:
The boundary conditions are imposed to find the solution of
system equations which gives nodal unknown. By using
boundary conditions reduction of global stiffness matrix was
Define Nodal Data
carried.
Calculation of displacements was carried out using the
following formula, Define Sectional Properties
𝐾 𝑑 = 𝐹 (3)
Where:
F is the external loading. Define Elements
K is reduced stiffness matrix.
d is the displacement matrix.
Make the additional calculations to get the required values. Define Nodal Loads
Additional calculations of reaction and stresses are carried as
follows.
The reaction is calculated as,
Define Nodal Fixity
𝑅 = 𝐾 𝑑 − 𝑞 (4)
The stress formula:
𝑑1 Fig.2 Flowchart for preprocessing of Matlab.
𝐸 𝑑2 In first step the creation of geometry was done by selecting
𝜎 = 𝐿 −𝑙 −𝑚 𝑙 𝑚 (5) the structure as a 2D truss. Then problem geometry was
𝑑3
𝑑4 defined in terms of nodes and elements. Nodes act three fold
purposes in the analysis and those are (a) Used to define
III. MATLAB EXECUTION element connectivity, (b) apply load, (c) apply boundary
Execution MATLAB program in Finite Element Method are condition. Element length and direction cosines required for
processed as below, the construction of element stiffness matrices and
transformation matrices are calculated using the end node
START coordinates as follows,
𝐿 = (𝑥2 − 𝑥1 ) + (𝑦2 − 𝑦1 ) (6)
Example No.2:
This truss structure consists of 5 member 6 nodes which is
13.66m wide and 5m height. The modulus of elasticity of
steel is 2x105/mm2 and 1000mm2 area. The structural
configuration of proposed structure can be seen in Figure12
and Figure 13shows the analytical model of plane truss
structure.
V. CONCLUSION
This paper has discussed the analysis of plane truss by using
computer programming language MATLAB. The basic idea
of Finite element method used in this analysis to develop the
program can be applied to analyze any truss structure. The
generated program gives the displacements, reactions at each
node directly and stresses for respective member. The