MATLAB Code For Structural Analysis of 2-D Structures Subjected To Static and Self-Weight Loading Conditions
MATLAB Code For Structural Analysis of 2-D Structures Subjected To Static and Self-Weight Loading Conditions
net/publication/319179248
MATLAB Code for Structural Analysis of 2-D Structures Subjected to Static and
Self-Weight Loading Conditions
CITATIONS READS
2 1,240
1 author:
Naman Jain
G. B. Pant University of Agriculture and Technology, Pantnagar
22 PUBLICATIONS 10 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Naman Jain on 19 August 2017.
Abstract: In present investigation MATLAB code for structural functions is to use a reference element, which is a square of side 2
analysis of 2-dimension linear elastic isotropic structures (units) as represented in Figure 1.
subjected to static and self-weight loading conditions is been
presented. In this paper implementation of MATLAB code on
two structures i.e. Cantilever beam and Bolkow Blohm Beam is
done to show the application of code. The meshing of the 2-
dimension structure is done with quadrilateral 4-node element, for
analysis of self-weight loading condition the weight of an element
is equally transferred on each node in downward direction and
results obtained through MATLAB code is been compared with
ANSYS software.
Keywords— Finite element method; self-weight; MATLAB; 4-
node element
I. INTRODUCTION
Figure 1: Geometrical transformation of 4-node element
The finite element method (Hutton 2004; Chandrupatla and (Khennane 2013)
Belegunda 2004; Khennane 2013) represent is one of the most
significant achievements in the field of computational methods in To define the geometrical transformation, we will assume that the
the last century. Historically, it has its roots in the analysis of coordinates (x, y) of an arbitrary point of the parent element are
weight-critical framed aerospace structures. These framed the unknown functions defined over the domain represented by
structures were treated as an assemblage of one-dimensional the reference element in its local coordinate system (ξ, η). Notice
members, for which the exact solutions to the differential that both the variables x and y belong to the linear class of
equations for each member were well known. These solutions functions since they are continuous and their first derivatives are
were cast in the form of a matrix relationship between the forces constant equal to 1. Therefore, we start by constructing a general
and displacements at the ends of the member. Hence, the method approximation for x in terms of ξ and η.
was initially termed matrix analysis of structures. Later, it was
extended to include the analysis of continuum structures. Since x = α1 + α2ξ + α3η + α4ξη (1)
continuum structures have complex geometries, they had to be
α1
subdivided into simple components or “elements” interconnected
α2
at nodes. It was at this stage in the development of the method 𝑥 = [1 𝜉 𝜂 𝜉𝜂] α (2)
3
that the term “finite element” appeared. However, unlike framed α4
structures, closed form solutions to the differential equations
governing the behavior of continuum elements were not Then, we will transform the general approximation, equation (2),
available. Energy principles such as the theorem of virtual work to a nodal approximation by using the nodal values x1, x2, x3, and
or the principle of minimum potential energy, which were well x4 respectively at nodes 1, 2, 3, and 4. Notice also that the couple
known, combined with a piece-wise polynomial interpolation of (ξ, η) takes on the values of (−1, −1), (1, −1), (1, 1), and (−1, 1)
the unknown displacement, were used to establish the matrix respectively at nodes 1, 2, 3, and 4. It follows
relationship between the forces and the interpolated x1 = α1 − α2 − α3 + α4
displacements at the nodes numerically. In the late 1960s, when x2 = α1 + α2 − α3 − α4
the method was recognized as being equivalent to a minimization x3 = α1 + α2 + α3 + α4
process, it was reformulated in the form of weighted residuals and
variational calculus and expanded to the simulation of x4 = α1 − α2 + α3 − α4
nonstructural problems in fluids, thermomechanics and
which, when rewritten in a matrix form, yields
electromagnetics.
𝑥1 1 −1 −1 1 α1
II. LINEAR QUADRILATERAL 4-NODE ELEMENT 𝑥2 α2
1 1 −1 −1
In the quadrilateral family of elements, except for the square or 𝑥3 = 1 1 1 1 α3 (3)
the rectangle, it is impossible to construct the shape functions 𝑥4 1 −1 −1 −1 α4
directly in terms of x and y. The only way to construct these or in a more compact form as
Where nelx and nely are number of elements in the horizontal and FEM(32,20,0,0,11)
vertical directions, respectively. CANTILEVER and MBB is used 3. For structure analysis of MBB beam under static loading
for analysis of cantilever beam and Messerschmitt Bolkow condition as shown in Figure 6 (b) input
Blohm beam respectively. GRAVITY is used when structure is
analyzed under self weight. Other variables as well as boundary FEM(60,20,0,1,0)
conditions are defined in the MATLAB code itself and can be 4. For structure analysis of MBB beam under self-weight loading
edited if needed. The Compete MATLAB code for static and self- condition as shown in Figure 7 (b) input
weight loading conditions are described in appendix. The
description of MATLAB code (cantilever beam under static FEM(60,20,0,0,12)
loading meshing by 4-node elements) written is as follow:
F
60 mm
20 mm
20 mm
(a) (b)
Figure 3 Geometry and Boundary Conditions (a) cantilever beam (b) MBB beam
Table 1: Maximum deformation in x and y directions under point load
CANTILEVER BEAM MBB BEAM
ANSYS MATLAB ANSYS MATLAB
CANTILEVER BEAM CANTILEVER BEAM MBB BEAM MBB BEAM
UX 11.208 mm UX 30.545 mm UX 30.545 mm UX 30.545 mm
UY 27.471 mm UY 125.88 mm UY 125.88 mm UY 125.88 mm
MATERIAL PROPERTIES E =1 ν =0.3
Figure 4: Deformation of catiliver beam under point load (a) ANSYS (b) MATLAB
Figure 5: Deformation of MBB beam under point load (a) ANSYS (b) MATLAB
Table 1: Maximum deformation in x and y directions self-weight load
CANTILEVER BEAM MBB BEAM
ANSYS MATLAB ANSYS MATLAB
CANTILEVER BEAM CANTILEVER BEAM MBB BEAM MBB BEAM
UX 16450 UX 16450 UX 2.5849×105 UX 2.5849×105
UY 54401 UY 54401 UY 9.4256×105 UY 9.4256×105
MATERIAL PROPERTIES ρ =1 g =10 E =1 ν =0.3
Figure 6: Deformation of cantiliver beam under self-weight load (a) ANSYS (b) MATLAB
Figure 7: Deformation of MBB beam under self-weight load (a) ANSYS (b) MATLAB