Matrix Structural Analysis and The Finite Element Methods Using Scilab and Octave
Matrix Structural Analysis and The Finite Element Methods Using Scilab and Octave
@seismicisolation
Matrix Structural Analysis and
the Finite Element Methods
Using Scilab and Octave
This book covers code development for structural analysis and includes topics from
finite element methods such as modeling and analysis of continuum structures. It
explains the concepts showing derivation of necessary equations, relationships, and
steps in solving structural analysis problems. It contains worked examples, problem
sets, and ample Scilab and Octave codes to teach structural analysis techniques using
these softwares.
Features:
• Enables readers to distinguish between the flexibility and the stiffness meth-
ods of structural analysis.
• Clarifies the procedures in the direct stiffness methods as applied to discrete
structures and use of these for the analysis of 2D and 3D structures.
• Presents treatment of Finite Element Methods as a logical extension of the
Direct Stiffness Method.
• Provides sufficient solved examples and didactic problems (with solutions)
focusing on the analysis of statically indeterminate structures.
• Treats discrete and continuum structural analysis using similar matrix anal-
ysis procedures.
Focused on problem solving through programming, this book guides senior under-
graduate and graduate students in structural and civil engineering.
@seismicisolation
@seismicisolation
@seismicisolation
@seismicisolation
Matrix Structural Analysis
and the
Finite Element Methods
Using Scilab and
Octave
A Problem-Solving Approach
Bedilu Habte
@seismicisolation
@seismicisolation
Designed cover image: Bedilu Habte
Reasonable efforts have been made to publish reliable data and information, but the author and publisher
cannot assume responsibility for the validity of all materials or the consequences of their use. The
authors and publishers have attempted to trace the copyright holders of all material reproduced in this
publication and apologize to copyright holders if permission to publish in this form has not been
obtained. If any copyright material has not been acknowledged please write and let us know so we may
rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced,
transmitted, or utilized in any form by any electronic, mechanical, or other means, now known or
hereafter invented, including photocopying, microfilming, and recording, or in any information storage
or retrieval system, without written permission from the publishers.
For permission to photocopy or use material electronically from this work, access www.copyright.com or
contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923,
978-750-8400. For works that are not available on CCC please contact
[email protected]
Trademark notice: Product or corporate names may be trademarks or registered trademarks and are used
only for identification and explanation without intent to infringe.
ISBN: 9781032359175 (hbk)
ISBN: 9781032359182 (pbk)
ISBN: 9781003329350 (ebk)
DOI: 10.1201/9781003329350
Typeset in Times
by Newgen Publishing UK
@seismicisolation
@seismicisolation
Dedication
@seismicisolation
@seismicisolation
@seismicisolation
@seismicisolation
Contents
Preface.......................................................................................................................xi
Acknowledgments.................................................................................................... xv
List of Figures ........................................................................................................xvii
List of Tables...........................................................................................................xxi
@seismicisolation
@seismicisolation vii
viii Contents
2.1.2 Examples................................................................. 38
2.2 The Basic Stiffness Method.................................................. 59
2.2.1 Solution Steps ......................................................... 60
2.2.2 Examples................................................................. 61
2.3 Problems ............................................................................... 77
@seismicisolation
@seismicisolation
Contents ix
@seismicisolation
@seismicisolation
x Contents
Index...................................................................................................................... 483
@seismicisolation
@seismicisolation
Preface
The two topics Matrix Structural Analysis (MSA) and Finite Element Methods
(FEM) in Structural Analysis are usually offered as courses to senior undergrad-
uate or post graduate students in the civil, structural and mechanical engineering
programs. The Direct Stiffness Method (DSM), a major topic in MSA, deals with
structures composed of discrete elements, while the basis for the FEM in Structural
Analysis is, on the other hand, creating a mesh (discretization) of the given contin-
uum structure and then applying the procedures of the DSM on the resulting dis-
cretized structure. In this sense, the FEM in Structural Analysis is an extension of
the DSM, and that is the reason why this book has been written to integrate the fields
of MSA and FEM in a unified manner.
My journey around MSA and FEM started in the late 1980s during my MSc
courses and thesis work entitled “A Computer Program for the Elastic Analysis of
Plane Structures” [16] written in the FORTRAN programming language. Through
my experience and the many years of teaching these courses, I observed that it is
easy to understand the concepts in matrix methods. Still, using these concepts in
practically solving structural analysis problem becomes challenging. The main chal-
lenge is the difficulty in trying to track the steps and perform the essential matrix
operations to formulate and solve structural analysis problems manually (on paper).
Access to computing facilities has been increasing from time to time, and a typi-
cal college student nowadays owns a laptop or has access to a personal computer at
home or the college. Besides, there are appropriate software that assist in perform-
ing routine and complex matrix operations like matrix multiplication and inversion.
The second reason for writing this book is to overcome those difficulties associated
with formulating and solving structural analysis problems through programming or
coding on a suitable platform step by step and interactively.
The book aims to provide concise reading materials explaining the concepts and
showing the derivation of necessary equations, relationships and steps in solving
structural analysis problems. It also contains worked examples, problem sets and am-
ple Scilab and Octave code to teach structural analysis techniques using MSA/FEM.
Scilab and Octave are free and open-source software for scientific computation and
visualization. In addition to being free and open-source, they offer excellent plat-
forms for practicing computer-aided structural analysis tasks. Since the syntax for
Octave is identical to Matlab, the Octave program codes in this book can be exe-
cuted in Matlab directly without any modification.
There are several structural analysis software packages, but generally, they are
not appropriate to use in teaching MSA/FEM courses, at least in the initial phase.
The reason is the most of them focus primarily on problem definition (geometry, ma-
terial property and boundary condition) and the final step of colorfully displaying the
analysis results (displacements and stresses) performing all the other steps internally.
Such softwares are only recommended for use in the classroom to model complex
@seismicisolation
@seismicisolation xi
xii Preface
situations once the students have experienced the problem-solving skills discussed
in this book.
The book contains two sections and eight chapters. Section I comprises Chapters
1–5 focusing on the MSA, while Section II covers Chapters 6–8 discussing the FEM.
Chapter 1 gives a general introduction to structural classification, definition of flex-
ibility and stiffness coefficients and matrices, a description and a tutorial about the
Scilab and Octave platforms and also programming using these softwares. The basic
flexibility and stiffness methods are discussed in Chapter 2. Chapter 3 explains the
formalization of the flexibility and stiffness methods. Here, the structure property
is derived from the properties of its elements by using appropriate transformation
matrices from elements to the structure. The concept of partitioning the structure
equations to solve for the main unknowns and then back substitution to solve for the
element (internal) results using the main unknowns is also explained. Chapter 4 fo-
cuses on the DSM applied to prismatic structures. Starting with spring arrangements,
the chapter discusses how the DSM is used for 1D bar elements, beams, plane trusses,
plane frames, grid structures, space trusses and space frames. Special cases that cre-
ate difficulty in the straightforward application of the DSM are treated in Chapter
5, such as different element types within a structure, non-prismatic members and
inclined roller supports.
An introduction to the FEM is provided in Chapter 6. After a brief overview of
the method, the basic relationship for the derivation of the element stiffness matrix
in general is provided in Section 6.5. The chapter also covers some parts of one-
dimensional FEM analysis, as most of this has already been covered under the DSM
in Chapters 4 and 5 for ”naturally” discretized structures. The finite element analy-
sis of two-dimensional structures and three-dimensional structures are discussed in
Chapters 7 and 8, respectively. This edition of the book does not cover finite ele-
ment analysis of plate bending, shell structures and non-linear analysis. As a quick
reference, units conversion table (FPS to SI) is provided for some of the most com-
monly encountered units in Appendix. Formulae for simple and common cases of
“Beam Deflection” as well as “Fixed-End Actions” for some common loading are
also provided in Appendix.
This book differs from other similar literature in that it guides the readers to be
able to write their program code to solve structural analysis problems throughout the
book. Instead of depending on an existing black-box type software where users have
to prepare the problem data in a specified format and then submit it to the program
for the solution, users have full control of preparing and using their code, thereby
building the confidence needed for further application of the programming skills.
The features of this book that make it distinct from other similar works are that it:
• Uses both the international (SI) and imperial (FPS) system of units
• Focuses on the analysis of statically indeterminate structures
• Clarifies static and kinematic classification of structures
• Distinguishes between the flexibility and the stiffness methods of structural
analysis
@seismicisolation
@seismicisolation
Preface xiii
• Describes the procedure to use the basic and formalized approaches to both
the flexibility and the stiffness methods
• Clearly outlines the procedure for the DSM to analyze any type of prismatic
structure
• Treats discrete and continuum structures using the identical matrix meth-
ods, showing that the FEM for structural analysis is an extension of the
MSA
• Depends only on free and open-source software Scilab and Octave, and
provides worked examples that are supported by program codes prepared
in either one of these software
• Provides sufficient didactic problem sets at the end of each chapter
Focused on problem solving through programming, the book guides the reader
from first principles to advanced algorithms. By following the path recommended in
this book, students will acquire a very important programming skill that will serve as
a research toolkit during their studies and workplaces after graduation. The student
or practicing engineer will build the confidence and be able to better understand and
assess the performance of other structural analysis software packages.
@seismicisolation
@seismicisolation
@seismicisolation
@seismicisolation
Acknowledgments
My first thanks goes to Dr. Gagandeep Singh, Senior Publisher at CRC Press, for
the initiation, organization and continuous follow up of this project. Thanks to the
team of CRC Press for all the support and providing frequent essential information
for the project; specially to Mr. Shashi Kumar of CRC for the technical support and
guidance offered in using the LaTeX book template.
I would like to thank some of my friends and relatives for trying to proofread the
first draft of this work.
I thank my family, especially my wife Mekdes and my children Hirut and
Yonatan for giving me the time and space I needed during the preparation of this
book.
Finally, thank God for letting me start and for blessing me with the strength to
finish this work.
@seismicisolation
@seismicisolation xv
@seismicisolation
@seismicisolation
Figures
1.1 Classification of Prismatic Structures............................................................... 4
1.2 Primary Unknowns in the Flexibility and the Stiffness Methods ................... 11
1.3 Flexibility Coefficients of a Simple Beam...................................................... 11
1.4 The Stiffness Coefficients ............................................................................... 12
1.5 The Scilab Software Environment .................................................................. 16
1.6 The Octave Software Environment................................................................. 19
1.7 Problems Set 1 ................................................................................................ 31
2.1 Beam and Truss with Respective Primary Structures..................................... 36
2.2 Alternative Primary Structures ....................................................................... 37
2.3 Propped Cantilever Beam ............................................................................... 39
2.4 A Plane Truss with first Degree Statically Indeterminacy.............................. 40
2.5 Two-Span Beam with Primary Structure ........................................................ 43
2.6 Displacements DL and Flexibility Coefficients.............................................. 44
2.7 Reactions of the Two-Span Beam for w = 35 kN/m....................................... 45
2.8 Alternative Primary Structure for the Two-Span Beam.................................. 46
2.9 Displacements on Primary Structure DL and fi j ............................................. 47
2.10 (a) A Plane Frame and Loading and (b) A Particular Primary
Structure.......................................................................................................... 50
2.11 A Grid Structure ............................................................................................. 54
2.12 Analysis Results of the Grid Structure. .......................................................... 58
2.13 Basic Structure of a Beam and a Truss ........................................................... 60
2.14 Propped cantilever beam................................................................................. 62
2.15 Solution of a Propped Cantilever Beam ......................................................... 63
2.16 Basic Structure under Unit Displacements ..................................................... 64
2.17 Basic Stiffness Method for a Two-Span Beam ............................................... 68
2.18 Reactions of the Two-Span Beam Using Equivalent Nodal Load. ................. 70
2.19 Basic Structure for a Plane Frame. ................................................................. 72
2.20 Basic Structure for a Grid Structure. .............................................................. 75
2.21 Problems Set 2 ................................................................................................ 78
3.1 A Truss Member Subjected to Action am . ...................................................... 82
3.2 A Beam Member with Transverse and Rotational DOFs. .............................. 83
3.3 A Plane Frame Member with Three DOFs..................................................... 83
3.4 A Grid Member with Its Three DOFs............................................................. 84
3.5 The Six Possible DOFs of a Space Frame Member........................................ 85
3.6 Action Transformation Matrix, BMS . .............................................................. 88
3.7 (a) Plane truss and (b) Primary Structure with All Parameters Labeled......... 89
3.8 Analysis Result of the Plane Truss. ................................................................ 95
3.9 Statically Indeterminate Beam........................................................................ 96
3.10 Primary Structure of the Beam ....................................................................... 97
3.11 Analysis Result of the Beam......................................................................... 101
@seismicisolation
@seismicisolation xvii
xviii List of Figures
@seismicisolation
@seismicisolation
List of Figures xix
4.14 Beam: (a) Beam and Loading and (b) All Nodal Displacement
Components. ................................................................................................. 222
4.15 Final Member End Actions, Am s. ................................................................. 226
4.16 Plane Truss (a) Plane Truss and Loading and (b) Nodes, Elements and
Global DOFs................................................................................................. 232
4.17 (a) Plane frame and Loading and (b) Nodes, Elements and Global DOFs... 240
4.18 (a) Grid Structure Having three-Members and (b) Its Nodes, Members
and Global DOFs. ......................................................................................... 250
4.19 (a) A Four Members Space Truss and (b) Nodes, Members and Global
DOFs............................................................................................................. 259
4.20 (a) A Single-Storey One-Bay Rectangular Space Frame and
(b) Members and Global DOFs of the Space Frame .................................... 269
5.1 A Plane Frame Structure with Mixed Element Types. ................................. 285
5.2 Beam on Elastic Foundation ......................................................................... 286
5.3 Beam on Elastic Foundation with Tension Force at Ends. ........................... 286
5.4 Non-prismatic elements ................................................................................ 287
5.5 A Plane Frame with Inclined Roller Support. .............................................. 289
5.6 Inclined Roller Support with Rotated Global Coordinate System................ 289
5.7 Inclined Roller Support Substituted by an Axially Rigid Member............... 290
5.8 Inclined Roller Support with Local and Global Coordinates. ...................... 290
5.9 Beam Having a Moment Discontinuity at Distance a from Node-1............. 292
5.10 Half of a Symmetric/Anti-Symmetric Frame Considered for Analysis. ...... 293
5.11 A Structure with Different Element Types. .................................................. 293
5.12 Problems Set 5 .............................................................................................. 315
6.1 Typical Finite Elements in Structural Analysis. ........................................... 320
6.2 A Circle with Diameter = 1 unit to Approximate π .................................... 321
6.3 A 3D Stressed Element................................................................................. 325
6.4 Deformed Shape of the Stress Block. ........................................................... 326
6.5 Linear Interpolation. ..................................................................................... 328
6.6 Idealization of a Plane Truss......................................................................... 331
6.7 Nodes and Elements of the Plane Truss........................................................ 331
6.8 Linear Interpolation of a Plane Truss. .......................................................... 332
6.9 Assembling Element Stiffness into Structure One. ...................................... 332
6.10 A Plot of the vertical Displacement of the Truss.......................................... 333
6.11 A 1D Bar Element ........................................................................................ 335
6.12 Quadratic Bar Element. ................................................................................ 338
6.13 (a) Tapered Bar Under Axial Load P, (b) Two Linear Elements and
(c) Single Quadratic Element........................................................................ 339
6.14 Plot of Exact and FEM Displacement Solutions. ......................................... 342
6.15 Stress Plot for the Three Cases. .................................................................... 343
6.16 Beam Element............................................................................................... 351
6.17 Shape Functions of a Beam Element. ........................................................... 352
6.18 Problems Set 6 .............................................................................................. 358
7.1 Plate Structure............................................................................................... 362
7.2 2D Plate Structure: (a) Meshed Plate (b) Typical Triangular Element......... 362
@seismicisolation
@seismicisolation
xx List of Figures
@seismicisolation
@seismicisolation
Tables
1.1 Structural Classification.................................................................................... 6
1.2 Common Operators in Scilab/Octave ............................................................. 23
2.1 Virtual Work Principle .................................................................................... 41
2.2 Virtual Work Parameters for the Plane Frame ................................................ 50
2.3 Virtual Work Parameters for the Grid Structure ............................................. 55
2.4 Member Forces Due to Unit Displacements................................................... 65
2.5 Fixed-End-Actions Plus Actions Due to Nodal Displacements ..................... 70
3.1 Action Transformation Matrix for the 6 Bars Truss ....................................... 91
3.2 Fixed-End-Actions on the Beam .................................................................... 97
3.3 Action Transformation Matrix for the Beam.................................................. 98
3.4 Unassembled Structure Flexibility Matrix for the Plane Frame ................... 106
3.5 Action Transformation Matrix for the Plane Frame ..................................... 107
3.6 Fixed-End-Actions on the Members of the Grid Structure .......................... 114
3.7 Action Transformation Matrix for the Grid Structure .................................. 116
3.8 Action Transformation (BMS ) Matrix for the Space Frame Structure .......... 127
3.9 Displacement Transformation Matrix for the 6 Bars Truss .......................... 146
3.10 Displacement Transformation Matrix for the Beam..................................... 155
3.11 Displacement Transformation Matrix for the Plane Frame .......................... 164
3.12 Fixed-End-Actions on the Members of the Grid Structure .......................... 170
3.13 Unassembled Stiffness Matrix of the Three-Members Grid......................... 172
3.14 Displacement Transformation Matrix for the Grid Structure ....................... 173
3.15 Compatibility Matrix for the Space Frame Structure ................................... 185
4.1 Total Fixed-End-Actions on the Beam ......................................................... 223
4.2 Global DOFs of the Truss, Connectivity Matrix .......................................... 233
4.3 Total Fixed-End-Actions on the Plane Frame............................................... 245
4.4 Final Member-End-Actions ......................................................................... 247
4.5 Fixed-End-Actions on the Members of the Grid Structure .......................... 254
4.6 Final Member-End-Actions ......................................................................... 256
4.7 Global DOFs of the Truss, Connectivity Matrix .......................................... 260
4.8 Global DOFs of the Space Frame, Connectivity Matrix .............................. 270
4.9 Transformation Angles (in Degrees) of the Space Frame ............................ 271
5.1 Global DOFs of the Frame, Connectivity Matrix ......................................... 285
6.1 Approximating π from Inscribed Regular Polygons .................................... 321
7.1 Nodal Stresses of the Two-LSTs Plate ......................................................... 399
7.2 Gauss Quadrature Nodes and Weights.......................................................... 420
7.3 Numerical Integration Using Gauss Quadrature in 1D................................. 421
7.4 Numerical Integration Using Gauss Quadrature in 2D................................. 423
@seismicisolation
@seismicisolation xxi
@seismicisolation
@seismicisolation
Section I
@seismicisolation
@seismicisolation
@seismicisolation
@seismicisolation
1 Introduction
At the end of this chapter, the reader will be able to:
1.1.2 BEAM
Both shear force and bending moment are assumed to exist in each element of a
beam. Figure 1.1(b) shows a beam and the internal forces of a beam element. The
joints of a beam have two possible displacement components – transverse displace-
ment, which is translation normal to the beam axis and rotation about the normal to
the plane of the beam.
DOI:10.1201/9781003329350-2@seismicisolation
@seismicisolation 3
4 Matrix Structural Analysis and the Finite Element Methods
FIGURE 1.1 Classification of Prismatic Structures: (a) Plane Truss, (b) Beam,
(c) Plane Frame, (d) Grid Structure, (e) Space Truss and (f) Space Frame.
@seismicisolation
@seismicisolation
Introduction 5
1.1.4 GRID
Like a plane frame structure, a grid is also a structure made up of members rigidly
connected at the joints. All members of a grid structure lie in the same plane, however
it is subjected to transverse loading that causes the grid to experience an out-of-
plane bending. Internally, the members are assumed to be subjected to a shear force,
a torsion and a bending moment, as shown in Figure 1.1(d). The joints of a grid
structure have three possible displacement components (translation along the global
z (normal to the plane of the grid), rotation about x and y axes where x–y is the plane
of the grid).
@seismicisolation
@seismicisolation
6 Matrix Structural Analysis and the Finite Element Methods
TABLE 1.1
Structural Classification
MSA Static Kinematic Reactions/Displacements
Completely Indeterminate Determinate All joints are completely restrained,
restrained no nodal movements are allowed.
Over- Indeterminate Indeterminate More than sufficient displacement
restrained components are restrained, some
nodal movements are allowed.
Sufficiently Determinate Indeterminate Minimum number of reaction
restrained forces are provided to maintain
structural stability and equilibrium.
Under- Unstable Unstable Not enough reactions are provided,
restrained structure becomes unstable.
Unrestrained Unstable Unstable All joints are completely free, struc-
ture is unstable.
Example 1.1 Determine the static and kinematic indeterminacies of each of the
structures shown in Figure 1.1.
SOLUTION
The truss in (a):
The number of members, m = 11
The number of external (support) reaction forces, r = 5
The number of joints, j = 6
Static classification
The total available joint equilibrium equations is 2 × j = 12, to be compared with
the total unknown actions, which is m + r = 16. Since the unknown forces are more
that the available equilibrium equations by 16 − 12 = 4, the plane truss is statically
indeterminate to the 4th degree.
@seismicisolation
@seismicisolation
Introduction 7
Kinematic classification
Unless restrained, every joint of a plane truss has two degrees of freedom (i.e., a
joint can move both in the X- and Y-axis). Total possible DOFs of the plane truss are
2 × j = 12, of which five are restrained (at the roller and two pin supports). Hence,
the given plane truss is kinematically indeterminate to the 12 − 5 = 7th degree.
Static classification
The total available joint equilibrium equations (i.e., ∑ Fx = 0, ∑ Fy = 0, ∑ M = 0)
equals 3 × j = 9; to be compared with the total unknown actions (a beam member
can carry axial, shear and moment), which equals 3 ×m + r = 10. Since the unknown
forces are more that the available equilibrium equations by 10 − 9 = 1, the beam is
statically indeterminate to the 1st degree.
Kinematic classification
Assuming the axial movements are ignored, joints in a beam structure have two de-
grees of freedom (i.e., transverse displacement and rotation). Total possible DOFs of
the beam are 2 × j = 6; of which three are restrained (at the two rollers and the pin
supports). Hence, the given beam is kinematically indeterminate to the 6 − 3 = 3rd
degree.
Note: If axial displacement has to be considered, the kinematic indeterminacy be-
comes 3 + 2 = 5th degree, i.e., adding the two horizontal movements of the roller
supports.
Static classification
The total available joint equilibrium equations (∑ Fx = 0, ∑ Fy = 0, ∑ M = 0) equals
3 × 9 = 27; to be compared with the total unknown actions (a plane frame member
can carry an axial-force, a shear-force and a bending moment), which equals 3×m+
r = 39. Since the unknown forces are more that the available equilibrium equations
by 39 − 27 = 12, the plane frame is statically indeterminate to the 12th degree.
Kinematic classification
The joints in a plane frame structure have three degrees of freedom (i.e., two linear
displacement in the X- and Y-direction and rotation). Total possible DOFs of the
plane frame are 3 × j = 27; of which nine are restrained (at the fixed supports).
Hence, the given plane frame is kinematically indeterminate to the 27 − 9 = 18th
degree. @seismicisolation
@seismicisolation
8 Matrix Structural Analysis and the Finite Element Methods
Static classification
The total available joint equilibrium equations (sum of forces about Z = 0 and sum
of moments about both X- and Y-axis = 0) equals 3 × 9 = 27, to be compared with the
total unknown actions (a grid member can carry three forces: shear forces, a torque
and a bending moments), which equals 3 × m + r = 36 + 6 = 42. Since the unknown
forces are more that the available equilibrium equations by 42 − 27 = 15; hence, the
grid is statically indeterminate to the 15th degree.
Alternatively, the static classification of a grid structure can also be performed
similar to a space frame. The total available joint equilibrium equations (three
forces- and three moments-equilibrium about X-, Y- and Z-axis, respectively) equals
6 × 9 = 54, to be compared with the total unknown actions (a grid member can carry
six forces: three forces and three moments), which equals 6 × m + r = 90. Since the
unknown forces are more that the available equilibrium equations by 90 − 54 = 36;
hence the grid is statically indeterminate to the 36th degree.
Kinematic classification
The joints in a grid structure have three degrees of freedom (neglecting the in-plane
displacement and the rotation about the normal to the plane of the grid). Total pos-
sible DOFs of the grid are 3 × j = 27; of which six are restrained (transverse dis-
placements at the pin supports). Hence, the given plane frame is kinematically inde-
terminate to the 27 − 6 = 21st degree.
If all possible displacements were to be considered, the kinematic indeterminacy
becomes 6 × j − 6 × 3 = 54 − 18 = 36th degree.
Static classification
The total available joint equilibrium equations equals 3 × j = 27, to be compared
with the total unknown actions (a grid member can carry six forces: three forces and
three moments), which equals m+r = 28. Since the unknown forces are more that the
available equilibrium equations by 28 − 27 = 1; hence, the space truss is statically
indeterminate to the 1st degree.
Kinematic classification
The joints in a space truss structure have three degrees of freedom. Total possible
DOFs of the space truss are 3 × j = 27; of which twelve are restrained (at the pin
@seismicisolation
@seismicisolation
Introduction 9
Static classification
The total available joint equilibrium equations (three forces- and three moments-
equilibrium about X-, Y- and Z-axis, respectively) equals 6 × j = 72, to be compared
with the total unknown actions (a grid member can carry six forces: three forces and
three moments), which equals 6 × m + r = 120. Since the unknown forces are more
that the available equilibrium equations by 120 − 72 = 48; hence, the space frame
is statically indeterminate to the 48th degree.
Kinematic classification
The joints in a grid structure have six degrees of freedom. Total possible DOFs of the
space frame are 6 × j = 72; of which 24 are restrained (all six displacements at the
fixed supports). Hence, the given space frame is kinematically indeterminate to the
74 − 24 = 50th degree.
deflection equation, and the virtual work method using additional readings from rel-
evant sources such as [27, 28, 47, 49, 51].
@seismicisolation
@seismicisolation
Introduction 11
FIGURE 1.2 Primary Unknowns in the Flexibility and the Stiffness Methods:
(a) The given structure, (b) The vertical reaction force at B is taken as the pri-
mary unknown in the flexibility method and (c) The rotation of the beam at B is the
primary unknown in the stiffness method.
FIGURE 1.3 Flexibility Coefficients: (a) The given structure, (b) The three DOFs
considered, (c) Unit action along DOF-1, (d) Unit action along DOF-2 and (e) Unit
action along DOF-3. @seismicisolation
@seismicisolation
12 Matrix Structural Analysis and the Finite Element Methods
SOLUTION
Using the various displacement computation methods, one can determine the dis-
placements due to unit loads. The deflection formulae provided in Appendix could
alternatively be used to determine the various deflections. In this example, the vir-
tual work method is used to compute the flexibility coefficients, as follows.
Z
mi m j dx
fi j =
L EI
The bending moment equations due to the various unit actions are provided in
the following equation.
The flexibility coefficients f11 and f23 ( f32 ) are computed as follows.
Z
m1 · m1 dx
f11 =
L EI
Z 1.5
(−2x/3)2 dx Z 3 (x/3 − 1.5)2 dx Z 4.5 (x/3 − 1.5)2 dx
= + +
0 EI 1.5 EI 3 EI
81
=
4EI
m2 · m3 dx
Z
f23 = f32 =
L EI
Z 1.5
(−x/3) ∗ (x/4.5)dx Z 3 (−x/3) ∗ (x/4.5)dx
= +
0 EI 1.5 EI
Z 4.5
(2x/3 − 3) ∗ (x/4.5)dx
+
3 EI
27
=−
4EI
And the complete 3 × 3 flexibility matrix of the given beam is as follows.
f11 f12 f13 324 243 −108
1
f f22 f23 = 243 324 −108
F =
21 16EI
f31 f32 f33 −108 −108 72
Example 1.3 Determine the 3 × 3 stiffness matrix of the continuous beam in Fig-
ure 1.4(a) if each of the three spans are of 1.5 length units and they have a constant
EI.
SOLUTION
To cause only a unit rotation at one end of a fixed beam with span L and constant EI,
bending moments of ( 4EI 2EI
L ) and ( L ) are required at its near and far ends, respec-
@seismicisolation
@seismicisolation
Introduction 15
Accordingly, the stiffness coefficients S21 (S12 ) and s22 are computed by setting
θ2 = 1 as follows.
2EI 4EI
S21 = S12 = =
1.5 3
4EI 4EI 16EI
S22 = + =
1.5 1.5 3
Thus the complete 3 × 3 stiffness matrix of the given beam is shown below.
s11 s12 s13 8 4 0
EI
s s22 s23 = 4 16 4
S=
21 3
s31 s32 s33 0 4 8
@seismicisolation
@seismicisolation
16 Matrix Structural Analysis and the Finite Element Methods
@seismicisolation
@seismicisolation
Introduction 17
// Special vectors
a = [-1.5:4] // generates [-1.5,0.5,1.5,2.5,3.5];
// Column (":") is a range operator
// [x:y] = [x, x+1, ..., x+n]; where n = int(y - x)
@seismicisolation
@seismicisolation
18 Matrix Structural Analysis and the Finite Element Methods
// Special matrices
cero = zeros(3,2) // a 3 by 2 matrix of all zeros
wan = ones(2,3) // a 2 by 3 matrix of all ones
ai = eye(4,3) // a 4 by 3 identity matrix;
// ai(i,i) = 1, else 0
v = [1 2 -1]
dia = diag(v) // a square diagonal matrix,
// the matrix dia has its diagonal elements = v, all others = 0
R = rand(3,3) // matrix of random elements in (0,1)
sym = R*inv(R) // Identity matrix expected
v = clean(sym) // discard very small values to zero
// Solution of simultaneous equations
b = [-1; 2.4; 3]
// To solve for A*x = b, use
sola = inv(A)*b // solution using the inverse function
solb = A \ b // or using \ (backslash) operator
@seismicisolation
@seismicisolation
Introduction 19
@seismicisolation
@seismicisolation
20 Matrix Structural Analysis and the Finite Element Methods
@seismicisolation
@seismicisolation
Introduction 21
% Special vectors
a = [-1.5:4] % generates [-1.5,0.5,1.5,2.5,3.5];
% Column (":") is a range operator
% [x:y] = [x, x+1, ..., x+n]; where n = int(y - x)
@seismicisolation
@seismicisolation
22 Matrix Structural Analysis and the Finite Element Methods
% Special matrices
cero = zeros(3,2) % a 3 by 2 matrix of all zeros
wan = ones(2,3) % a 2 by 3 matrix of all ones
ai = eye(4,3) % a 4 by 3 identity matrix;
% ai(i,i) = 1, else 0
v = [1 2 -1]
dia = diag(v) % a square diagonal matrix,
% the matrix dia has diagonal elements = v, all others = 0
R = rand(3,3) % matrix of random elements in (0,1)
id = R*inv(R) % Identity matrix expected
v = num2str (id, "%5.1f") % convert small values to zero
@seismicisolation
@seismicisolation
Introduction 23
TABLE 1.2
Common Operators in Scilab/Octave
Symbol Rank
Bracket () 1st
Transpose and exponent ' ∧ ** .∧ .** 2nd
Unary plus/minus, not + - ~ 3rd
Multiplication, division * / \ .* ./ 4th
Addition, subtract + - 5th
Relational < <= == >= > ~= 6th
Logical (and/or) || && 7th
Assignment = 8th
1.6.2 VARIABLES
A variable is a character or set of characters (like A, var1, A_Somewhat_Very_Long_
Variable_Name, etc.) used as an identifier (name) intended to hold some value in
a given computational code. Variables can be assigned any type of value (numeri-
cal, string, boolean, array or matrix, etc.). In both Scilab and Octave environments,
a variable is assumed to be a matrix before it is assigned a specific value. In creating
variable names (variables), it is necessary to follow the rules listed below:
@seismicisolation
@seismicisolation
24 Matrix Structural Analysis and the Finite Element Methods
value they are assigned in a given program statement. When defining a vector/matrix,
all the individual elements need to be of or convertible to the same data type.
• A = [1 2.354 sqrt(3)] is acceptable
• B1 = [1 %T] in Scilab, B2 = [1 true] in Octave is acceptable
• C = ["Name:", "Habte"; "from:", 'AAiT'; 'year:', "2023"] is
acceptable; single or double quote is used for string constants
• D1 = ["T and", %F] (Scilab) and D2 = ["2^2= ", 2^2] do not
work
Note that the boolean constants are (%T / %F) in Scilab and (true / false)
in Octave. As it could be seen by executing the assignment statements B1 and B2
above, true is internally converted to a numerical value of 1; false to 0.
@seismicisolation
@seismicisolation
Introduction 25
a) if EXPR2
STATEMENT(S)-1
else
STATEMENT(S)-2
end
while EXPR
STATEMENT(S)
end
Here is a brief example that adds positive integers up to 10. The final result,
which is displayed as the output of the sum is 55.
sum2ten = 0; i = 0;
while i <= 10
sum2ten = sum2ten + i;
i = i + 1;
end
disp(sum2ten)
@seismicisolation
@seismicisolation
26 Matrix Structural Analysis and the Finite Element Methods
The code below shows the for loop in action to add the numbers up to 10, which
gives the same result as shown earlier in the case of the while statement.
sum2ten = 0;
for i = 1:10
sum2ten = sum2ten + i;
end
disp(sum2ten)
@seismicisolation
@seismicisolation
Introduction 27
Scilab Octave
AE = 1; L = 2; AE = 1; L = 2;
EI = 1; EI = 1;
elmt = 'BEAM'; elmt = 'TRUSS';
select elmt switch elmt
case 'TRUSS' case 'TRUSS'
f = L/AE; f = L/AE;
case 'BEAM' case 'BEAM'
f = [L^3/3 L^2/2 f = [L^3/3 L^2/2
L^2/2 L]/EI; L^2/2 L]/EI;
else otherwise
disp("Unknown type!") disp("Unknown type!")
end end
@seismicisolation
@seismicisolation
28 Matrix Structural Analysis and the Finite Element Methods
3 L = sqrt((X(2)-X(1))^2 + (Y(2)-Y(1))^2);
4 c = (X(2)-X(1))/L;
5 s = (Y(2)-Y(1))/L;
6 end
7 -- a comment in Scilab
8 // Coordinates of the two points p1 and p2
9 -- a comment in Octave
10 %% Coordinates of the two points p1 and p2
11 point1 = [2,5]; point2 = [5,9];
12
The function is defined in lines 1–6. Comments are provided in lines 7–10; use
the appropriate one for your platform. The two points are defined in line 11 and the
function is called with the two points as parameters in line 13. The three results are
saved in the vector of variables Length, Cos and Sin for further usage.
@seismicisolation
@seismicisolation
Introduction 29
Scilab Octave
ks = 20; ks = 20;
k = ks *[1 -1; -1 1]; k = ks *[1 -1; -1 1];
write ( ' k1 . txt ' ,k ); dlmwrite ( ' k1 . txt ' ,k );
k1 = read ( ' k1 . txt ' ,2 ,2); k1 = dlmread ( ' k1 . txt ' );
1.7 PROBLEMS
1.1 For the truss shown in Figure 1.1(a), determine the static and kinematic inde-
terminacy if (a) (any) three of the diagonal members are removed and (b) the pin
support on the right is removed.
1.2 For the beam shown in Figure 1.1(b), determine the static and kinematic indeter-
minacy if (a) a hinge is introduced just to the left of the middle support, (b) the roller
support on the right is changed to a fixed support and (c) there are two overhanging
segments on both sides.
1.3 For the plane frame shown in Figure 1.1(c), determine the static and kinematic
indeterminacy if (a) hinges are introduced at all the middle (1st level) joints, (b)
hinges are introduced at all the top level joints, (c) all the fixed supports are pin
supports.
1.4 For the grid structure shown in Figure 1.1(d), determine the static and kinematic
indeterminacy if (a) all the pin supports are fixed, (b) a hinge is introduced at the
central node o.
1.5 Define flexibility coefficient fi j . What is the flexibility matrix of a given structure
and what are its characteristics?
1.6 Define stiffness coefficient si j . What is the stiffness matrix of a given structure
and what are its characteristics?
1.7 If a plane truss has 7 nodes, 8 members as well as 5 (properly arranged) support
reactions, determine its static and kinematic indeterminacy.
1.8 If a beam has 7 nodes, 6 members, 5 support reactions and also two condition
equations, determine its static and kinematic indeterminacy.
1.9 If a plane frame has 7 nodes, 8 members as well as 9 (properly arranged) support
reactions, determine its static and kinematic indeterminacy.
1.10 For the frame in Problem 1.9, determine the static and kinematic indeterminacy
if there are 3 more condition equations.
1.11 If a grid structure has 5 nodes, 6 members, 7 (properly arranged) support re-
actions and 2 condition equations, determine its static and kinematic indeterminacy.
@seismicisolation
@seismicisolation
30 Matrix Structural Analysis and the Finite Element Methods
1.16 Given a linear elastic continuous beam, consider the two arbitrary points N
and M such that if a downward force of 10 F applied at N causes point M to displace
an amount of 0.02 D upwards (take F and D as units of measurement for force and
displacement, respectively):
• the flexibility coefficient of the beam fMN equals ,
• the flexibility coefficient of the beam fNM equals ,
• the stiffness coefficient of the beam sMN equals ,
• the flexibility coefficient of the beam fNN equals ,
• an upward force of 5 F applied at M would cause a displacement of
at N.
@seismicisolation
@seismicisolation
Introduction 31
FIGURE 1.7 Problems Set 1: (a, b) Spring Systems; (c, d) Bar Elements; (e) Can-
tilever Beam; (f) Cantilever Beam with Variable Moment of Inertia; (g) Fixed-
Continuous Beam; (h) Fixed Beam; (i) Two Bars Plane Truss; (j) Three Bars Plane
Truss; (k) Two Members Cantilever Plane Frame; (l) Two Members Fixed-Supported
Plane Frame; (m) Two Members Cantilever Grid Structure; (n) Two Members Fixed
Grid Structure.
@seismicisolation
@seismicisolation
32 Matrix Structural Analysis and the Finite Element Methods
1.23 For the beam shown in Figure 1.7(g), compute the 2 × 2 stiffness matrix along
the given DOFs.
1.24 For the beam shown in Figure 1.7(h), compute the 2 × 2 stiffness matrix along
the given DOFs.
1.25 For the beam shown in Figure 1.7(i), compute the 2 × 2 flexibility matrix along
the given DOFs. What is the corresponding stiffness matrix?
1.26 For the beam shown in Figure 1.7(j), compute the 2 × 2 stiffness matrix along
the given DOFs.
1.27 For the plane frame shown in Figure 1.7(k), compute the 3 × 3 flexibility matrix
along the given DOFs.
1.28 For the plane frame shown in Figure 1.7(l), compute the 3 × 3 stiffness matrix
along the given DOFs.
1.29 For the grid structure shown in Figure 1.7(m), compute the 3 × 3 flexibility
matrix along the given DOFs. Take Ix = Iy = I.
1.30 For the grid structure shown in Figure 1.7(n), compute the 3×3 stiffness matrix
along the given DOFs. Take Ix = Iy = I.
Answer the following problems only in reference to programming using Scil-
ab/Octave.
1.31 Which of the following are legal variable names?
m24 first&second last iJ 3D _XYZ sin Sin A_or_B A+B but
1.32 Given:
A = [1 0 2;2 1 -3]; B = [3 0 7;5 1 2]; C = [ 1 1 -1]; D = 1:4
Before running any of the given matrix operations, determine the size of the result
of the following code; if operation is not legal, say undefined.
A.*B; A*A’; B.*C; A+4; [A;B]; A+[C;C]; A*C’; C*B; D.∧2; B-C
@seismicisolation
@seismicisolation
Introduction 33
i = 10
while (i > 2)
disp(i)
if (i < 5)
break
end
i = i - 1
end
1.40 Write a program statement to compute each of the following: (a) cosine of 45
degrees, (b) natural logarithm of 12, (c) 5 raised to the power of square root of 3, (d)
inverse tangent (arc tan) of 0.8 and (e) the length of the line joining two points (x1,
y1, z1) and (x2, y2, z2) in space.
1.41 What is the output of each of the following statements executed sequentially?
a) 5D-2, b) 2e3, c) I = -1:3:10, d) A=2/3*9/2; B=A*A/A*A
e) C=sind(30)+1/2; D=1-C, f) E=A+B*C-D g) X = 1; atan(X)
h) r = linspace(2,6,9); [m,i] = max(r)
@seismicisolation
@seismicisolation
34 Matrix Structural Analysis and the Finite Element Methods
1.46 Assume three points P1 at (x1, y1, z1), P2 at (x2, y2, z2) and P3 at (x3,
y3, z3) are given in a global coordinate system X −Y − Z. Consider another (local)
−−→
coordinate system x̂ − ŷ − ẑ having the same origin but with x̂ directed along P1 P2
and point P3 is on the ŷ − ẑ plane. Write a Scilab/Octave program to compute and
print out all the direction cosines cos(θJi ) in which J is any one of the global axis (X,
Y or Z), i is the local axis (x̂, ŷ or ẑ) and θJi is the angle from the global axis J and to
the local axis i, as provided in the matrix below. Hint: Refer to vector algebra.
cos(θX x̂ ) cos(θY x̂ ) cos(θZ x̂ )
cos(θX ŷ ) cos(θY ŷ ) cos(θZ ŷ )
@seismicisolation
@seismicisolation
2 The Basic Methods
After studying the chapter, the reader will be able to:
• Identify the redundant actions and create a primary structure from a given
indeterminate structure
• Write the compatibility equations and use the basic flexibility method to
analyze different indeterminate structures
• Identify the nodal displacements and create a basic structure from a given
indeterminate structure
• Write the equilibrium equations and use the basic stiffness method to ana-
lyze different indeterminate structures
• Prepare the necessary Scilab or Octave software code to perform the calcu-
lations using the basic methods
DOI:10.1201/9781003329350-3@seismicisolation
@seismicisolation 35
36 Matrix Structural Analysis and the Finite Element Methods
FIGURE 2.1 (a) A Beam, (b) Its Primary Structure Removing Two Redundant Ac-
tions, (c) A Truss and (d) Its Primary Structure Removing One Internal Redundant
Action.
The truss in Figure 2.1(c) is statically indeterminate to the first degree. Notice
that the indeterminacy, in this case, is internal; i.e., there’s one more member than
the number of members, which would be required for the structure’s stability of the
truss. Cutting the top-chord member (T12 ), as shown in the figure, for example, would
render the truss stable and statically determinate.
Alternatively, Figure 2.2 shows some other possible forms of primary structures
for the structures shown in Figure 2.1. Accordingly, the choice of the redundant
action to be removed is usually immaterial. One can remove any of the redundant
actions as long as the resulting structure is stable and determinate. It is only a mat-
ter of preference as well as the ease with which analysis in the subsequent stages is
performed, such as in determining the specific flexibility coefficients. However, it is
very important to investigate the resulting structure for stability. For example, remov-
ing the horizontal reaction force at the fixed support together with any of the other
reaction forces in Figure 2.1(a) would be inappropriate. Similarly, removing one of
the horizontal reaction forces at the supports in Figure 2.1(c) leads to instability.
@seismicisolation
@seismicisolation
The Basic Methods 37
FIGURE 2.2 (a)–(c) Alternative Primary Structures for the Beam and (d)–(f) Alter-
native Primary Structures for the Truss in Figure 2.1.
@seismicisolation
@seismicisolation
38 Matrix Structural Analysis and the Finite Element Methods
Once the redundant actions are determined, the structure becomes determinate
and all other unknowns can be easily computed.
Step 5: Write and solve the compatibility equation by equating the total displace-
ments to their actual value so that these become compatible with the given structure
(usually [D] = 0). It is now possible to solve for the unknown redundant actions
which are given by:
2.1.2 EXAMPLES
Example 2.1 Analyze the propped cantilever beam shown in Figure 2.3(a) using
the basic flexibility method. Consider the vertical reaction at the roller support as
redundant.
SOLUTION
Step 1: The given structure is statically indeterminate to the first degree. Hence, a
primary structure is created by removing one reaction component (like the upward
vertical reaction RA , as shown in Figure 2.3(b)).
Step 2: The multiple integration, moment-area, conjugate beam or virtual work
methods (available in other basic structural analysis books like [27, 28, 47, 51]) can
be used to obtain the (upward) vertical displacement on the primary structure due to
the given uniformly distributed load w. This becomes:
w × L4
DL = −
8EI
@seismicisolation
@seismicisolation
The Basic Methods 39
FIGURE 2.3 Propped Cantilever Beam: (a) the beam and loading and (b) the pri-
mary structure.
L3
fAA =
3EI
Steps 4 and 5: The superposition and compatibility equations for the upward
(vertical) displacement of A on the structure are written and the redundant action,
RA , is solved as shown below. Note that the structure stiffness matrix is just a 1 × 1
matrix containing fAA . This is because the structure is statically indeterminate to the
first degree.
DA = DL + F × Aq
w × L3 L3
0=− + × RA
24EI 3EI
3w
RA = 8 ANS.
Once the redundant action is found, the remaining reactions can be computed
using equilibrium equations. Displacement elsewhere can also be determined as a
determinate structure just found by superposing the displacement from the given
loading and the redundant action.
@seismicisolation
@seismicisolation
40 Matrix Structural Analysis and the Finite Element Methods
The corresponding Scilab code showing the complete solution steps is given in
the listing below. The specific values of w = 5.5 k/ft, L = 12ft and EI = 1 are used in
the computer code.
Scilab/Octave Code
// Example 2.1 - Propped cantilever beam
// Basic Flexibility Method
// Common units used for analysis: Force in kips, Length in ft
// Given parameters & constants:
w = 5.5; L = 12; EI = 1; // kips/ft; ft; kips-ft^2
// DL - displacement due to the given loading
DL = -w*L^4/(8*EI) // ft
// f - flexibility coefficient
f = L^3/(3*EI) // ft/kip
// Aq - the redundant action
Aq = -DL/f // kips
// END: ........... Example 2.1
Example 2.2 Analyze the truss shown in Figure 2.4 using the basic flexibility
method. The relative values of the cross-sectional area of each member is shown in
the figure, and it is assumed that the modulus of elasticity E is equal for all members.
FIGURE 2.4 (a) A Plane Truss with first Degree Statically Indeterminacy and (b)
Primary Structure of the Truss.
SOLUTION
Step 1: The truss is statically indeterminate to the first degree; its primary structure
can be created by cutting any one of the members, such as members 2–4, as shown
in Figure 2.4(a).
@seismicisolation
@seismicisolation
The Basic Methods 41
TABLE 2.1
Virtual Work Principle
Member AE L P q qPL/(AE) q2 L/(AE)
√ √ √ √
1–4 4AE/ 3 2L/ 3 P −1/ 3 −PL/(2 3AE) L/(6AE)
2–4 AE L 0 1 0 L/(AE)
√ √ √ √
3–4 2AE/ 3 2L/ 3 −P −1/ 3 PL/( 3AE) L/(3AE)
√
∑ PL/(2 3AE) 3L/(2AE)
Step 2: The virtual-work (unit-load) method (refer to [27, 28, 47, 51]) is used to
determine the relative displacement of the two cut ends. The computation of the gap
or overlap at the cut section due to the applied load P as well as the truss flexibility
are computed using Equations (2.5) and (2.6), respectively. Table 2.1 organizes the
various components in the work equations.
!
PL √
1 × DL = ∑ q = PL/( 3AE) (2.5)
AE
Equation (2.5) sets the external work of the virtual load with the actual displace-
ment of the truss at the cut (redundant, 1 × DL ) to be equal to the sum of the internal
PL
work of the virtual member force (q) with the actual member deformation ( AE ).
Step 3: Similarly, the flexibility coefficient f , i.e., the relative displacement of the
cut ends due to a unit value of the redundant action itself is obtained using the virtual
work method as shown in Equation (2.6).
!
qL
1× f = ∑q = 3L/(2AE) (2.6)
AE
Steps 4 and 5: The superposition and compatibility equation for the cut member
is written and solved to obtain the redundant member force T, which is given by
Equation (2.7).
D = DL + f × T
√ (2.7)
0 = PL/(2 3AE) + 3L/(2AE) × T
@seismicisolation
@seismicisolation
42 Matrix Structural Analysis and the Finite Element Methods
√
3P
⇒ T =− 9 ANS.
Having determined the redundant member force in 2–4, the other member forces
can be easily computed using equilibrium equations.
The corresponding Octave code showing the complete solution steps is given in
the listing below. This code uses the following specific numerical values for the pa-
rameters: P = 100 kN, L = 4 m, E = 200 GPa, A = 200 mm2
Scilab/Octave Code
1 % Example 2.2 - Plane truss with three bars
2 % Basic Flexibility Method
3
13 % Flexibility coefficient
14 f = 3*L/(2*A*E) % m/kN
15
16 % Redundant Action
17 Aq = -DL/f % kN tension
18
Example 2.3 Analyze the two–span beam shown in Figure 2.5(a) using the basic
flexibility method. Assume the modulus of elasticity E and the moment of inertia I
are the same for both members.
@seismicisolation
@seismicisolation
The Basic Methods 43
FIGURE 2.5 (a) A Cantilever Beam Propped on Two Rollers and (b) Primary Struc-
ture of the Two-Span Beam.
As shown in Figure 2.2, there are different alternatives to create a primary struc-
ture for this beam (for an indeterminate structure in general). The following two
alternative primary structures will be used to solve this example.
SOLUTION 1
Step 1: The beam is statically indeterminate to the second degree; its primary struc-
ture can be created by removing any two of the reactions. The roller supports at nodes
2 and 3 are considered to create the primary structure, as shown in Figure 2.5(b).
Step 2: The vertical displacement on the primary structure due to the given uni-
formly distributed load w can be determined by double integration of the M/EI equa-
tion, as shown in Equation (2.8).
− 17wl 4 − 2wl 4
DL1 = and DL2 = (2.9)
24EI EI
@seismicisolation
@seismicisolation
44 Matrix Structural Analysis and the Finite Element Methods
Step 3: The flexibility coefficients along DOF-1 and DOF-2 on the primary struc-
ture due to unit values of Aq1 and Aq2 are provided in Equation (2.10).
l3 5l 3
f11 = , f12 =
3EI 6EI
(2.10)
5l 3 8l 3
f21 = , f22 =
6EI 3EI
And the structure flexibility matrix of the beam becomes the 2×2 matrix given
below:
3
5l 3
l
3EI 6EI
F =
5l 3 8l 3
6EI 3EI
Step 4: The superposition equations for the total displacements along DOF-1
and DOF-2 is thus given Equations (2.11).
! !
− 17wl 4 l3 5l 3
D1 = DL1 + f11 Aq1 + f12 Aq2 = + Aq1 + Aq2
24EI 3EI 6EI
! ! (2.11)
− 2wl 4 5l 3 8l 3
D2 = DL2 + f21 Aq1 + f22 Aq2 = + Aq1 + Aq2
EI 6EI 3EI
Step 5: Since the displacement at the roller supports must be zero, the compat-
ibility equation is obtained by setting both D1 and D2 in Step 3 above to zero. The
@seismicisolation
@seismicisolation
The Basic Methods 45
redundant actions Aq1 and Aq2 are then obtained by solving the resulting matrix
equation as follows:
D = DL + F × Aq
3
− 17wl 4 5l 3
l
0 24EI 3EI Aq
6EI 1
⇒ = + ×
− 2wl 4 5l 3 8l 3
0 Aq2
EI 6EI 3EI
#−1
−17wl
" # " " # " #
Aq1 8 20 8wl/7
=− × = ANS.
Aq2 20 64 −48wl 11wl/28
Having determined the redundant actions Aq1 and Aq2 , the other reaction com-
ponents can be easily computed using equilibrium equation.
The corresponding Scilab code showing the complete solution steps is given in
the listing below. The numerical values w = 35 kN/m, L = 4 m, E = 30 GPa, and I =
600 mm4 are used in this code.
Scilab/Octave Code
1 // Example 2.3-1 - Two-span beam (Solution 1)
2 // Basic Flexibility Method
3
@seismicisolation
@seismicisolation
46 Matrix Structural Analysis and the Finite Element Methods
SOLUTION 2
Step 1: The primary structure can alternatively be created by changing the fixed
support to a pin support and also introducing a hinge at the central roller support
(releasing the moments in both cases), as shown in Figure 2.8.
Step 2: The essential displacement components (rotations) needed for the basic
flexibility method are shown in Figure 2.9. Accordingly, the rotation (+ve if CCW)
along Aq1 and the angular change (opening) along Aq2 on the primary structure due
to the given uniformly distributed load w are computed as in Equation (2.12).
@seismicisolation
@seismicisolation
The Basic Methods 47
− wl 3 wl 3
DL1 = and DL2 = (2.12)
24EI 12EI
Step 3: The flexibility coefficients (rotations) along DOF-1 and DOF-2 on the
primary structure due to unit values of Aq1 and Aq2 are computed to be as provided
in Equation (2.13).
l −l
f11 = f12 =
3EI 6EI
(2.13)
−l 2l
f21 = f22 =
6EI 3EI
@seismicisolation
@seismicisolation
48 Matrix Structural Analysis and the Finite Element Methods
! !
− wl 3 l −l
D1 = DL1 + f11 Aq1 + f12 Aq2 = + Aq1 + Aq2
24EI 3EI 6EI
! ! (2.14)
wl 3 −l 2l
D2 = DL2 + f21 Aq1 + f22 Aq2 = + Aq1 + Aq2
12EI 6EI 3EI
D = DL + F × Aq
− wl 3
l −l
0 24EI 3EI Aq
6EI
1
⇒ = + ×
wl 3 − l 2l
0 Aq2
12EI 6EI 3EI
#−1
−4 −wl 3 wl 2 /14
" # " " # " #
Aq1 8
=− × = ANS.
Aq2 −4 16 2wl 3 −3wl 2 /28
Once the redundant actions Aq1 and Aq2 are known, the other reaction compo-
nents can be easily computed using equilibrium equation. For the specific value of
w = 35 kN/m and L = 4 m, the corresponding analysis results are as shown in Fig-
ure 2.7.
The corresponding Octave code showing the complete solution steps is given in
the listing below. The same numerical values for the parameters are used in this code
as in SOLUTION-1 above.
@seismicisolation
@seismicisolation
The Basic Methods 49
Scilab/Octave Code
1 % Example 2.3-2 - Two-span beam (Solution 2)
2 % Basic Flexibility Method
3
4 clear all;clc;
5 % Common units used for analysis: Force in kN, Length in m
6
NOTE: The above two alternative solutions show that the particular primary
structure used in analyzing a given indeterminate structure is irrelevant and the final
solution does not depend on the choice of the primary structure. However, a specific
primary structure might ease the determination of the necessary parameters, like
[DL ] and [F], required for the solution in the flexibility method.
Example 2.4 Analyze the plane frame shown in Figure 2.10 using the basic flexibil-
ity method. Use the following parameters for the members: A1 = 12 in2 , A2 = 10 in2 ,
I1 = 400 in4 , I2 = 500 in4 and E = 30,000 ksi for both members. Let P1 = 40 kips,
P2 = 25 kips and M = 75 k f t.
@seismicisolation
@seismicisolation
50 Matrix Structural Analysis and the Finite Element Methods
FIGURE 2.10 (a) A Plane Frame and Loading and (b) A Particular Primary
Structure.
SOLUTION
Step 1: The plane frame is statically indeterminate to the third degree; its primary
structure can be created by removing any combination of three of the reactions
and/or internal forces. The fixed support at node 1 is considered to create the primary
structure as shown in Figure 2.10(b).
Step 2: The three displacements on the primary structure along with the removed
redundant actions due to the given loads can be determined by using the virtual
work method, generally written in the form of Equation (2.15). Table 2.2 is used to
organize the various components in the work equations.
Z
qPL mMdx
1 × DL = ∑ +∑ (2.15)
EA EI
Thus, the displacements DL1 , DL2 and DL3 along the three DOFs due to the given
loading are obtained as given in Equation (2.16).
TABLE 2.2
Virtual Work Parameters for the Plane Frame
Member x q1 q2 q3 P m1 m2 m3 M
1–2 0–20 0 −1 0 0 −x 0 −1 0
2–3 0–30 −1 0 0 P1 0 x −1 P2*x + M
qi is the axial force and mi is the bending moment due to unit value of Aqi .
@seismicisolation
@seismicisolation
The Basic Methods 51
! !
q1 PL Z
m1 Mdx
DL1 = ∑ +∑ = −31.072
EA EI
! !
q2 PL Z
m2 Mdx
DL2 = ∑ +∑ = 29.808 (2.16)
EA EI
! !
q3 PL Z
m3 Mdx
DL3 = ∑ +∑ = −0.1296
EA EI
Step 3: The flexibility coefficients along the DOFs on the primary structure due
to unit values of the redundant actions are computed and given in Equations (2.17)–
(2.19).
Due to Aq1 = 1
! !
q1 2 L Z
m1 2 dx
f11 = ∑ +∑ = 1.7671
EA EI
! !
q1 q2 L Z
m1 m2 dx (2.17)
f21 = ∑ +∑ = −1.0368
EA EI
! !
q1 q3 L Z
m1 m3 dx
f31 = ∑ +∑ = 8.16e − 3
EA EI
Due to Aq2 = 1
! !
q1 q2 L Z
m1 m2 dx
f12 = ∑ +∑ = −1.0368
EA EI
! !
q2 2 L Z
m2 2 dx (2.18)
f22 = ∑ +∑ = 1.0375
EA EI
! !
q2 q3 L Z
m2 m3 dx
f32 = ∑ +∑ = −4.32e − 3
EA EI
@seismicisolation
@seismicisolation
52 Matrix Structural Analysis and the Finite Element Methods
Due to Aq3 = 1
! !
q1 q3 L Z
m1 m3 dx
f13 = ∑ +∑ = 8.16e − 3
EA EI
! !
q2 q3 L Z
m2 m3 dx (2.19)
f23 = ∑ +∑ = −4.32e − 3
EA EI
! !
q3 2 L Z
m3 2 dx
f33 = ∑ +∑ = 4.4e − 05
EA EI
⇒ D = DL + F × Aq
The structure flexibility matrix is therefore given by:
1.7671 −1.0368 8.16e − 3
F = −1.0368 1.0375 −4.32e − 3
8.16e − 3 −4.32e − 3 4.40e − 5
Step 4: The superposition equations for the total displacements along the three
DOFs is thus given Equation (2.20).
Step 5: Since the net displacement at node 1 has to be zero, the compatibility
equation is obtained by setting both D1 , D2 and D3 in Step 3 above to zero. The
redundant actions Aq1 , Aq2 and Aq3 are then obtained by solving the resulting matrix
equation as follows:
−1
Aq1 1.7671 −1.0368 8.16e − 3 −31.056
Aq2 = − −1.0368 1.0375 −4.32e − 3 × 29.808
Aq3 8.16e − 3 −4.32e − 3 4.40e − 5 −0.1296
@seismicisolation
@seismicisolation
The Basic Methods 53
Aq1 2.80 k
Aq2 = −26.78 k ANS.
Aq3 −203.50 k − f t
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 // Example 2.4 - Plane frame with two members
2 // Basic Flexibility Method
3
@seismicisolation
@seismicisolation
54 Matrix Structural Analysis and the Finite Element Methods
Example 2.5 Analyze the grid structure shown in Figure 2.11(a) using the basic
flexibility method. Both members have circular hollow sections with outer diameter
of 12.8 in and thickness of 1/4 in. Use E = 10,500 ksi and ν = 0.3. Use P = 12.5
kips, L1 = 16 ft and L2 = 10 ft.
SOLUTION
Step 1: The grid is statically indeterminate to the third degree; its primary struc-
ture can be created by removing any combination of three reactions and/or internal
FIGURE 2.11 (a) A Grid Structure and (b) Selected Primary Structure.
@seismicisolation
@seismicisolation
The Basic Methods 55
forces. Here, the fixed support at node 2 is released to create the primary structure,
as shown in Figure 2.11(b).
Some of the cross-sectional and material characteristics needed for the virtual
work computations are determined as follows.
Area(A) = π(Ro 2 − Ri 2 )
π
I1 = I2 = I = (Ro 4 − Ri 4 )
4
π
J1 = J2 = J = (Ro 4 − Ri 4 )
2
E
G=
2(1 + ν)
Step 2: The three displacements on the primary structure along the removed
redundant actions due to the given loads can be determined using the virtual work
method. For a grid structure, this equation is written in the form of Equation (2.21).
Table 2.3 is used to organize the various components in the work equations.
Z
tT L mMdx
1 × DL = ∑ +∑ (2.21)
GJ EI
Thus, the displacements DL1 , DL2 and DL3 along the three DOFs due to the given
loading are obtained as given in Equation (2.22).
TABLE 2.3
Virtual Work Parameters for the Grid Structure
Member x t1 t2 t3 T m1 m2 m3 M
1–2 0 to L1 0 1 0 0 L1 − x 0 1 0
1–3 0 to L2 L1 0 −1 0 x −1 0 P*x
(ti is the torsion and mi is the bending moment due to unit value of Aqi .)
@seismicisolation
@seismicisolation
56 Matrix Structural Analysis and the Finite Element Methods
! !
t1 T L Z
m1 Mdx
DL1 = ∑ +∑ = −3.5322
GJ EI
! !
t2 T L Z
m2 Mdx
DL2 = ∑ +∑ = 0.0442 (2.22)
GJ EI
! !
t3 T L Z
m3 Mdx
DL3 = ∑ +∑ = 0
GJ EI
Step 3: The flexibility coefficients along the DOFs on the primary structure due
to unit values of the redundant actions are computed and given in Equations (2.23)–
(2.25).
Due to Aq1 = 1
! !
t1 2 L Z
m1 2 dx
f11 = ∑ +∑ = 4.2612
GJ EI
! !
t1 t2 L Z
m1 m2 dx (2.23)
f21 = ∑ +∑ = −0.0035
GJ EI
! !
t1 t3 L Z
m1 m3 dx
f31 = ∑ +∑ = −0.0237
GJ EI
Due to Aq2 = 1
! !
t1t2 L Z
m1 m2 dx
f12 = ∑ +∑ = −0.0035
GJ EI
! !
t2 2 L Z
m2 2 dx (2.24)
f22 = ∑ +∑ = 0.0002
GJ EI
! !
t2 t3 L Z
m2 m3 dx
f32 = ∑ +∑ = 0
GJ EI
@seismicisolation
@seismicisolation
The Basic Methods 57
Due to Aq3 = 1
! !
t1t3 L Z
m1 m3 dx
f13 = ∑ +∑ = −0.0237
GJ EI
! !
t2 t3 L Z
m2 m3 dx (2.25)
f23 = ∑ +∑ = 0
GJ EI
! !
t3 2 L Z
m3 2 dx
f33 = ∑ +∑ = 0.0002
GJ EI
Step 4: The superposition equations for the total displacements along the three
DOFs are thus given Equations (2.26).
⇒ D = DL + F × Aq
Step 5: Since the net displacement at node 1 has to be zero, the compatibility
equation is obtained by setting both D1 , D2 and D3 in Step 3 above to zero. The
redundant actions Aq1 , Aq2 and Aq3 are then obtained by solving the resulting matrix
equation as follows:
−1
Aq1 4.2612 −0.0035 −0.0237 −3.5322
Aq2 = − −0.0035 0.0002 0 × 0.0442
Aq3 −0.0237 0 0.0002 0
Aq1 2.99 k
Aq2 = −185.17 k − in ANS.
Aq3 416.37 k − in
@seismicisolation
@seismicisolation
58 Matrix Structural Analysis and the Finite Element Methods
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 % Example 2.5 - Two-members grid structure
2 % Basic Flexibility Method
3
@seismicisolation
@seismicisolation
The Basic Methods 59
Definition 2.2 (Basic Structure) A basic structure is a fully restrained structure ob-
tained from the given structure by providing additional (unknown) actions to prevent
all possible displacements.
The DOFs in a given structure are clearly known and unique. Thus, the cor-
responding quantity and type of actions required to fully restrain the structure are
clearly known at the outset. Some basic structures are provided as an example in
Figure 2.13. In a basic structure, the number of actions required to fully restrain the
given structure is always equal to the number of its kinematic indeterminacy. The
propped cantilever beam in Figure 2.13(a) is kinematically indeterminate to the sec-
ond degree – the rotations at B and C. Hence, two moments (MB and MC ) need to be
provided to make it fully restrained, as shown in Figure 2.13(b).
The truss in Figure 2.13(c) is kinematically indeterminate to the fifth degree,
horizontal and vertical displacements at nodes 1 and 2, as well as horizontal dis-
placement at node 4. Figure 2.13(d) shows the basic structure of the truss with all its
displacements restrained.
@seismicisolation
@seismicisolation
60 Matrix Structural Analysis and the Finite Element Methods
FIGURE 2.13 (a) A 2-Span Beam having Rotational DOFs at B and C, (b) The
Basic Structure Restraining the two DOFs, (c) A Truss with 5 DOFs and (d) The
corresponding Basic Structure Fully Restrained by the Additional Support reactions
at Joints 1, 2 and 4.
Contrary to the flexibility method, where alternative primary structures are pos-
sible, there’s a single basic structure in the stiffness method with no alternative.
Step 1: Identify the degrees of freedom (DOFs or DJ s) of the structure; the ac-
tions provided on the structure along these DOFs need to be assembled as AJ s.
NOTE: If the structure is subjected to any member loads, these need to be con-
verted into work equivalent nodal actions known as equivalent nodal loads (EqNL).
To get the equivalent nodal loads, the fixed-end-actions (FEA) are computed and ap-
plied to the structure in the opposite direction, i.e., EqNL = −FEA. These are then
algebraically added to any other concentrated nodal actions to form the total nodal
load vector AJ s. The structural analysis will be performed using this total structure
nodal load vector.
@seismicisolation
@seismicisolation
The Basic Methods 61
Step 5: Solve for the unknown nodal displacements (DJ s), which is given by:
2.2.2 EXAMPLES
Example 2.6 Analyze the propped cantilever beam shown in Figure 2.14(a) using
the basic stiffness method.
SOLUTION
Step 1: The given structure is kinematically indeterminate to the first degree; the
DOF (DJ ) is the counter clockwise rotation at the roller support (conventionally
counterclockwise rotation/moment are assumed positive). The corresponding action
AJ would be the given moment −M.
@seismicisolation
@seismicisolation
62 Matrix Structural Analysis and the Finite Element Methods
FIGURE 2.14 Propped cantilever (a) Beam and loading and (b) The basic structure.
Steps 4 and 5: The equilibrium equation along the DOF of the structure is writ-
ten, and the unknown displacement DJ is solved, as shown below.
AJ = S × DJ
ML
DJ = − ANS
4EI
Once the redundant action is found, the remaining reactions can be computed us-
ing static equilibrium equations. The complete solution is depicted in Figure 2.15(a).
If M = W L2 /12, the corresponding displacement and reactions are obtained as
shown in Figure 2.15b.
The corresponding Octave code showing the complete solution steps is given
below, with the following numerical values for the parameters: w = 5.5 k/ft, L = 12
ft and EI = 1.
@seismicisolation
@seismicisolation
The Basic Methods 63
FIGURE 2.15 The displacement DJ and the reaction forces (a) Due to applied mo-
ment M and (b) Due to M = W L2 /12.
Scilab/Octave Code
1 % Example 2.6 - Propped cantilever beam
2 % Basic Stiffness Method
3
9 % stiffness sAA
10 sAA = 4*EI/L % kips-ft/rad
11
12 % AJ
13 AJ = -w*L^2/12 % kips-ft
14
15 % DJ
16 DJ = AJ/sAA % rad, divide by actual EI
17
18 % Moment reaction @ B
19 M = -w*L^2/12 + 2*EI/L*DJ % kips-ft
20
Example 2.7 Analyze the truss shown in Figure 2.4 using the basic stiffness method.
The relative values of the cross-sectional area of each member are shown in the figure
and assume a constant modulus of elasticity E for all members.
@seismicisolation
@seismicisolation
64 Matrix Structural Analysis and the Finite Element Methods
SOLUTION
Step 1: The truss is kinematically indeterminate to the second degree, horizontal
(DJ1 ) and vertical
(D J2 ) displacements at node 4. The corresponding action AJ is
0
given by AJ = .
−P
The member forces of the given truss, for each case of unit displacement, are
shown in Table 2.4. For DJ1 = 1, equilibrium equations in the x and y directions are
used to obtain s11 and s21 , respectively as follows.
FIGURE 2.16 Basic Structure under Unit Displacements: (a) Truss under DJ1 = 1
(b) Forces due to DJ1 = 1 (c) Truss under DJ2 = 1 and (d) Forces due to DJ2 = 1.
@seismicisolation
@seismicisolation
The Basic Methods 65
TABLE 2.4
Member Forces Due to Unit Displacements
Member EA/L δ1 from DJ1 Am1 = δ AE/L δ2 from DJ2 Am2 = δ AE/L
√ √
1–4 2AE/L 3/2 3AE/L −1/2 −AE/L
2–4 AE/L 1 AE/L 0 0
√ √
3–4 AE/L 3/2 3AE/(2L) 1/2 AE/(2L)
√ √ √ √
∑ Fx = 0] ⇒ s11 − ( 3/2)( 3AE/L) − AE/L − ( 3/2)( 3AE/(2L)) = 0
⇒ s11 = 13AE/(4L)
√ √
∑ Fy = 0] ⇒ s21 + (1/2)( 3AE/L) − (1/2)( 3AE/(2L)) = 0
√
⇒ s21 = − 3AE/(4L)
Similarly for DJ2 = 1, the stiffness coefficients s12 and s22 are obtained as follows.
√ √
∑ Fx = 0] ⇒ s12 − ( 3/2)(−AE/L) − ( 3/2)(AE/(2L)) = 0
√
⇒ s12 = − 3AE/(4L)
⇒ s22 = 3AE/(4L)
AJ = S × DJ
" #" √ # " #
0 AE 13 − 3 DJ1
= √ ×
−P 4L − 3 3 DJ2
@seismicisolation
@seismicisolation
66 Matrix Structural Analysis and the Finite Element Methods
Step 5: The equilibrium equation is then solved to obtain the structure displace-
ments as shown below.
DJ = S−1 × AJ
" # "√ #
DJ1 − PL 3
= ANS
DJ2 9AE 13
With the DJ s now known, the member forces can be computed by scaling up and
combining the values in Table 2.4 as shown below.
√ √
3AE − 3PL − AE − 13PL 10P
Am14 = × + × =
L 9AE L 9AE 9
√ √
AE − 3PL − 13PL − 3P
Am24 = × + 0× =
L 9AE 9AE 9
√ √
3AE − 3PL AE − 13PL − 8P
Am34 = × + × =
2L 9AE 2L 9AE 9
This result is in agreement with the earlier solution of Example 2.2 that was
solved using the basic flexibility method.
The corresponding Octave code showing the complete solution steps is given be-
low with numerical values of P = 100 kN, L = 4 m, E = 200 GPa and A = 2000 mm2 .
Scilab/Octave Code
1 // Example 2.7 - Plane truss with two bars
2 // Basic Stiffness Method
3
@seismicisolation
@seismicisolation
The Basic Methods 67
42 // Member forces
43 Am = T*Dj/1000
44 // END: ........... Example 2.7
Example 2.8 Analyze the two-span beam shown in Figure 2.17a using the basic
stiffness method. Assume the modulus of elasticity E and the moment of inertia I are
constant for both members.
SOLUTION
Step 1: The beam is kinematically indeterminate to the second degree, and the ro-
tations at the two roller supports are the DOFs (conventionally, counterclockwise
@seismicisolation
@seismicisolation
68 Matrix Structural Analysis and the Finite Element Methods
Step 2: The basic structure is created by restraining the rotational DOFs at nodes
2 and 3 (DJ1 and DJ2 ), as shown in Figure 2.17b.
Step 3: The stiffness coefficients along DOF-1 and DOF-2 on the basic struc-
ture required to cause unit values for DJ1 and DJ2 , respectively, are provided in the
equation below.
FIGURE 2.17 (a) Two-span beam under uniformly distributed load, (b) Correspond-
ing basic structure, (c) Negative of the fixed-end-actions as equivalent nodal loads
and (d) Net nodal load for the beam analysis (AJ ).
@seismicisolation
@seismicisolation
The Basic Methods 69
8EI 2EI
s11 = , s12 =
L L
2EI 4EI
s21 = , s22 =
L L
" #
EI 8 2L
S=
L 2 4
− wL3
" # " #−1 0
DJ1 EI 8 2
168EI
= × 2 =
wL3 ANS
L 2 wL
DJ2 4
12 42EI
Once the displacement DJ1 and DJ2 are determined, the complete analysis result
is obtained by superimposing the fixed-end-actions (AmF ) and the member actions
corresponding to the computed nodal displacements (DJ s), as shown in Table 2.5 and
2
Figure 2.18. Finally, the support reactions of the beam are obtained to be M1 = wL
21 ,
R1 = 13wL 8wL 11wL
28 , R2 = 7 , R3 = 28 . This result is identical with the solution obtained
in Example 2.3.
The corresponding Octave code showing the complete solution steps is given
below using numerical values of w = 35 kN/m, L = 4 m, E = 30 GPa and I = 600e6
mm4 .
@seismicisolation
@seismicisolation
70 Matrix Structural Analysis and the Finite Element Methods
TABLE 2.5
Fixed-End-Actions Plus Actions Due to Nodal Displacements
Joint MF M DJ Total M VF V DJ Total V
FIGURE 2.18 Reactions of the Two-Span Beam Using Equivalent Nodal Load.
Scilab/Octave Code
@seismicisolation
@seismicisolation
The Basic Methods 71
@seismicisolation
@seismicisolation
72 Matrix Structural Analysis and the Finite Element Methods
50 R3 = Am2(3)
51
Example 2.9 Analyze the plane frame shown in Figure 2.10 using the basic stiffness
method. Use the following parameters for the members: A1 = 12 in2 , A2 = 10 in2 , I1
= 400 in4 , I2 = 500 in4 and E = 30,000 ksi for both members. Let P1 = 40 kips, P2
= 25 kips and M = 75 k f t.
SOLUTION
Step 1: The plane frame is kinematically indeterminate to the third degree, the hori-
zontal, vertical as well as rotational displacements (DJs) at node 2; see Figure 2.19.
The Nodal load is given by the expression below.
P1 40
AJ = P2 = 25
M 900
Step 2: The basic structure is created by restraining the three DOFs at node 2
(DJ1 , DJ2 and DJ3 ), as shown in Figure 2.19.
Step 3: The stiffness coefficients along the DOF-s on the basic structure required
to cause unit values for DJ1 , DJ2 and DJ3 , respectively, are provided in the equation
below.
@seismicisolation
@seismicisolation
The Basic Methods 73
Once the displacement DJ1 , DJ2 and DJ3 are determined, the complete analysis
result is obtained by computing the member actions corresponding to the computed
nodal displacements (DJ s). The support reactions of the given plane frame equal the
member forces at nodes 1 and 3.
The corresponding Octave code showing the complete solution steps is given in
the listing below.
@seismicisolation
@seismicisolation
74 Matrix Structural Analysis and the Finite Element Methods
Scilab/Octave Code
1 // Example 2.9 - Plane frame with two members
2 // Basic Stiffness Method
3
36 H3 = -DJ(1)*E*A(2)/L(2)
37 V3 = -DJ(2)*12*E*I(2)/L(2)^3 - DJ(3)*6*E*I(2)/L(2)^2
38 M3 = DJ(2)*6*E*I(2)/L(2)^2 + DJ(3)*2*E*I(2)/L(2)
39
@seismicisolation
@seismicisolation
The Basic Methods 75
Example 2.10 Analyze the grid structure shown in Figure 2.11 using the basic stiff-
ness method. Both members have circular hollow sections with outer diameter of
320 mm and thickness of 5 mm. Use E = 70 GPa and ν = 0.3.
SOLUTION
Step 1: The grid structure is kinematically indeterminate to the third degree, the
vertical as well as two rotations about x- and y-axis (DJs) at node 1; see Figure 2.20.
The corresponding nodal load vector AJ is given as shown below.
−100
AJ = 0
0
Step 2: The basic structure is created by restraining the three DOFs at node 2
(DJ1 , DJ2 and DJ3 ), as shown in Figure 2.20.
Step 3: The stiffness coefficients along the DOF-s on the basic structure required
to cause unit values for DJ1 , DJ2 and DJ3 , respectively, are provided in the equation
below.
@seismicisolation
@seismicisolation
76 Matrix Structural Analysis and the Finite Element Methods
843.75 0. 1250.
⇒ S = 0. 1503.858 694.444
1250. 694.444 366666.67
Step 4: The equilibrium equation (AJ = S × DJ ) along the DOFs is written in
matrix form as follows.
−100 843.75 0. 1250. DJ1
0 = 0. 1503.858 694.444 × DJ2
0 1250. 694.444 366666.67 DJ3
Step 5: The displacements at node 2 (DJ1 , DJ2 and DJ3 ) are obtained by solving
the matrix equation as follows:
DJ1 0.0440372
DJ2 = 0.0155734 ANS
DJ3 0.0022749
Once the displacement DJ1 , DJ2 and DJ3 are determined, the complete analysis
result is obtained by computing the member actions corresponding to the computed
nodal displacements (DJ s), shown earlier in Figure 2.12.
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 % Example 2.10 - Two-members grid structure
2 % Basic Stiffness Method
3
@seismicisolation
@seismicisolation
The Basic Methods 77
8 I = pi/4*(160^4-155^4)*1e-12; % m^4
9 J = pi/2*(160^4-155^4)*1e-12; % m^4
10 E = 70e6; nu = 0.3; % kPa; Poisson's ratio
11 G = E/(2*(1+nu)); % kPa, Shear modulus
12 P = -100; % kN
13 L1 = 5; L2 = 3; % m
14 EI = E*I; GJ = G*J;
15
41 V3 = -DJ(1)*12*EI/L2^3 - DJ(2)*6*EI/L2^2
42 T3 = -DJ(3)*GJ/L2
43 M3 = DJ(1)*6*EI/L2^2 + DJ(2)*2*EI/L2
44 % END: ........... Example 2.10
2.3 PROBLEMS
2.1 Analyze the spring system shown in Figure 2.21(a) using the basic flexibility
method if k1 = 115 lb/in, k2 = 55 lb/in, k3 = 140 lb/in and k4 = 85 lb/in (SI: k1 = 20
N/mm, k2 = 10 N/mm, k3 = 25 N/mm and k4 = 15 N/mm).
@seismicisolation
@seismicisolation
78 Matrix Structural Analysis and the Finite Element Methods
2.2 Analyze the two-bar structure shown in Figure 2.21(b) using the basic flexibility
method and consider the right support as the redundant action. Take L = 2 m, A =
1300 mm2 , P = 500 N and E = 110 GPa (FPS: L = 6 ft, A = 2 in2 , P = 110 lb, E =
16e3 ksi).
2.3 Analyze the two-bar structure shown in Figure 2.21(c) using the basic flexibility
method considering the right support as the redundant action. Use a = 20 in, A =
0.5 in2 , P = 90 lb and E = 11,000 ksi (SI: a = 50 cm, A = 320 mm2 , P = 400 N and
E = 70 GPa).
@seismicisolation
@seismicisolation
The Basic Methods 79
2.4 Analyze the two-bar structure shown in Figure 2.21(d) using the basic flexibility
method. Use a = 20 in, A = 0.5 in2 , P = 90 lb, E = 11,000 ksi and the gap on the
right equals 0.02 in (SI: a = 50 cm, A = 320 mm2 and P = 400 N, E = 70 GPa and
the gap on the right equals 0.5 mm).
2.5 Analyze the two-span beam shown in Figure 2.21(e) using the basic flexibility
method considering the reactions at the two roller supports as the redundant actions.
Use L = 3 m, E = 207 GPa, I = 120e6 mm4 , M1 = 80 kN m and M2 = −50 kN-m
(FPS: L = 10 ft, E = 30,000 ksi, I = 290 in4 , M1 = 60 kip-ft and M2 = −36 kip-ft).
2.6 Analyze the two-span beams shown in Figure 2.21(f) using basic flexibility by
considering the reactions at the left fixed supports as redundant actions. Use a = 2m,
E = 30,000 ksi, I = 120 in4 , P = 25 kips and M = 20 kip-ft (SI: a = 2 m, E = 210
GPa, I = 50e6 mm4 , P = 120 kN and M = 30 kN m).
2.7 Analyze the plane truss shown in Figure 2.21(g) using the basic flexibility method
by taking the force in member 1–4 as the redundant action. Use L = 1.5 m, A1 = A2
= A3 = 16,000 mm2 , α = 30o , β = 60o , E = 110 GPa, P1 = 80 kN and P2 = 100 kN
(FPS: L = 5 ft, A1 = A2 = A3 = 25 in2 , α = 30o , β = 60o , E = 16,000 ksi, P1 = 18
kips and P2 = 20 kips).
2.8 Analyze the plane truss shown in Figure 2.21(h) using the basic flexibility
method. Use L = 6 ft, A = 10 in2 , E = 16,000 ksi, P1 = 16 kips, P2 = 12 kips,
P3 = 28 kips and α = 45o (SI: L = 2 m, A = 6000 mm2 , E = 110 GPa, P1 = 75 kN,
P2 = 55 kN, P3 = 125 kN and α = 45o ).
2.9 Analyze the plane frame shown in Figure 2.21(i) using the basic flexibility
method by taking the reactions at the pin support as the redundant actions. Use
L = 3 m, A1 = A2 = 20,000 mm2 , I = 150e6 mm4 , E = 120 GPa, P1 = 35 kN, P2
= 40 kN and M = 50 kN m (FPS: L = 10 ft, A1 = A2 = 30 in2 , I = 150e6 in4 , E =
17,500 ksi, P1 = 8 kips, P2 = 12 kips and M = 35 kip-ft).
2.10 Analyze the grid structure shown in Figure 2.21(j) using the basic flexibility
method. The two members 1–2 and 3–4 are rigidly connected at 2; with the cross-
sections of the members being hollow circular sections having an outer diameter Do
and a thickness t. Take L = 6 ft, Do = 6.5 in, t = 0.15 in, P = 25 kips, Mx = 40 kip-ft
and E = 30,000 ksi (SI: L = 2 m, Do = 160 mm, t = 4 mm, P = 100 kN, Mx = 55
kN m and E = 200 GPa).
2.11 Analyze the spring system in Problem 2.1 using the basic stiffness method.
2.12 Analyze the two-bar structure in Problem 2.2 using the basic stiffness method.
2.13 Analyze the two-bar structure in Problem 2.3 using the basic stiffness method.
2.14 Analyze the two-bar structure in Problem 2.4 using the basic stiffness method.
2.15 Analyze the two-span beam in Problem 2.5 using the basic stiffness method.
@seismicisolation
@seismicisolation
80 Matrix Structural Analysis and the Finite Element Methods
2.16 Analyze the two-span beam in Problem 2.6 using the basic stiffness method.
2.17 Analyze the plane truss in Problem 2.7 using the basic stiffness method.
2.18 Analyze the plane truss in Problem 2.8 using the basic stiffness method.
2.19 Analyze the plane frame in Problem 2.9 using the basic stiffness method.
2.20 Analyze the grid structure in Problem 2.10 using the basic stiffness method.
@seismicisolation
@seismicisolation
3 The Formalized Methods
After studying the chapter, readers will be able to:
• Create a primary structure from a given indeterminate structure releasing
the redundant actions
• Create a basic structure from a given indeterminate structure restraining the
DOFs of the structure
• Determine the action transformation matrix of a given primary structure
• Determine the displacement transformation matrix of a given basic struc-
ture
• Establish the structure flexibility and structure stiffness matrices and then
analyze an indeterminate structure using both methods
• Use Scilab or Octave software to perform the computations using formal-
ized flexibility and stiffness methods
dm = [ fm ] × am (3.1)
DOI:10.1201/9781003329350-4@seismicisolation
@seismicisolation 81
82 Matrix Structural Analysis and the Finite Element Methods
Truss Member
A (plane or space) truss member has a single DOF along its longitudinal axis, i.e.,
the axial deformation at node-2, as shown in Figure 3.1. The flexibility (the axial de-
formation due to a unit axial force) of a truss member having constant axial rigidity
EA is given by Equation (3.2). In the formalized method, a member is always con-
sidered statically determinate. This is achieved by restraining one end (node-1) and
releasing the other (node-2).
L
fm = (3.2)
EA
Beam Member
A beam member has two DOFs – transverse displacement and rotation at the free
end, as shown in Figure 3.2. The flexibility matrix of a beam member with constant
flexural rigidity EI is given by the 2 × 2 matrix shown in Equation (3.3). This is
determined by assigning unit values to the actions am1 and am2 , one at a time, and
computing the corresponding transverse displacement and rotational along the two
DOFs. This means the unknown member actions (am ) and/or displacements (dm )
occur at node-2.
3
L2
L
3EI 2EI
fm = (3.3)
L2 L
2EI EI
@seismicisolation
@seismicisolation
The Formalized Methods 83
that a plane frame member combines the effects of a truss- and a beam-member,
which are treated above.
L
0 0
EA
L3 L2
fm = 0 (3.4)
3EI 2EI
L2 L
0
2EI EI
@seismicisolation
@seismicisolation
84 Matrix Structural Analysis and the Finite Element Methods
Grid Member
A grid structure is a framed structure lying in a plane but subjected to transverse
actions perpendicular to the plane of the structure. Each grid member has three DOFs
– transverse displacements, twisting and rotation at the free end, as shown in Figure
3.4. The double-headed arrow along DOF-2 represents the rotation about the member
axis, i.e., the twisting of the member. The flexibility of a grid member with constant
flexural rigidity EI and the rigidity against twist GJ 1 is given by the 3 × 3 matrix
shown in Equation (3.5).
3
L L2
0
3EI 2EI
L
fm = 0 (3.5)
0
GJ
L2 L
0
2EI EI
1 G is the shear modulus of elasticity and J is the polar moment of inertia of the cross-section; hence
@seismicisolation
@seismicisolation
The Formalized Methods 85
L
EA 0 0 0 0 0
L3 L2
0 0 0 0
3EIz 2EIz
L3 L2
0 0 0 − 0
3EIy 2EIy
fm = (3.6)
L
0 0 0 0 0
GJ
L2 L
0 0 − 0 0
2EIy EIy
L2
L
0 0 0 0
2EIz EIz
@seismicisolation
@seismicisolation
86 Matrix Structural Analysis and the Finite Element Methods
Thus, the corresponding flexibility matrix of the structure Fm in this case is termed
as the unassembled structure flexibility matrix and the equation is the unassembled
structure flexibility equation.
dm1 fm1 0 ... 0 am1
dm 0
2 = f m2 ... 0 am
× 2
... ... (3.7)
... ... ... ...
dmn 0 0 ... fmn amn
The unassembled structure flexibility equation is written in a compact form as
shown in Equation (3.8).
Dm = Fm × Am (3.8)
@seismicisolation
@seismicisolation
The Formalized Methods 87
According to the principle of complementary virtual work [14, 49], the exter-
nal complementary virtual work δW ∗ of the primary structure, i.e., the virtual work
caused by the external virtual actions δ AS undergoing through the actual displace-
ments Ds is equal to the internal complementary virtual work δU ∗ , i.e., the virtual
work caused by the virtual member actions δ AM undergoing through the actual mem-
ber displacements DM .
δW ∗ = δU ∗
δ As T × Ds = δ AM T × DM
= (BMS × δ As )T × (FM × AM )
= δ As T × BMS T × FM × BMS × As
⇒ Ds = BMS T × FM × BMS × As
Ds = Fs × As (3.13)
Equation (3.13) gives the external displacements Ds in terms of the external
actions As . This equation is termed as the assembled structure flexibility equation
(compared with the unassembled structure flexibility equation in Equation (3.8)).
Equation (3.13) can also be written in a partitioned form as given in Equation (3.14)
partitioning the Fs matrix and using the relationship for As and Ds given earlier in
Equation (3.9).
DJ F FJQ A
= JJ × J (3.14)
DQ FQJ FQQ AQ
Resulting in the two relationships provided in Equation (3.15).
DJ = FJJ × AJ + FJQ × AQ
(3.15)
DQ = FQJ × AJ + FQQ × AQ
@seismicisolation
@seismicisolation
88 Matrix Structural Analysis and the Finite Element Methods
−1
AQ = −FQQ × (FQJ × AJ ) (3.16)
This is the final step that provides the unknown redundant actions of the structure.
@seismicisolation
@seismicisolation
The Formalized Methods 89
Step 6: Solve for the unknown redundant actions Aq using Equation (3.16). Then
compute the member actions using Equation (3.12) and the nodal displacements us-
ing Equation (3.13). The remaining support reactions of the given structure are then
determined using equilibrium equations.
3.1.4 EXAMPLES
Example 3.1 Analyze the plane truss structure shown in Figure 3.7(a) using the
formalized flexibility method. All members have cross-sectional-area A = 5000 mm2
and E = 120 GPa, and let P1 = 60 kN and P2 = 80 kN.
FIGURE 3.7 (a) Plane truss and (b) Primary Structure with All Parameters Labeled.
@seismicisolation
@seismicisolation
90 Matrix Structural Analysis and the Finite Element Methods
SOLUTION
Step 1: The truss is statically indeterminate to the second degree. Hence, removing
two of the action components can create a primary structure. The nodes and members
are numbered 2 ; the roller support at node-4 and member 5 are removed to create a
primary structure. As shown in Figure 3.7(b), the four free-joint displacements (DJ1
to DJ4 ) and the two selected redundant actions (Aq1 and Aq2 ) on the given truss are
labeled, assumed positive in the direction indicated. The figure also shows how the
members are oriented, like member 1 runs from node-1 to node-2, member 4 runs
from node-4 to node-3, etc.
Step 2: The given nodal load vector A j of the structure is written as follows:
P1 60
P2 80
Aj =
= kN
0 0
0 0
@seismicisolation
@seismicisolation
The Formalized Methods 91
TABLE 3.1
Action Transformation Matrix for the 6 Bars Truss
Member AJ1 = 1 AJ2 = 1 AJ3 = 1 AJ4 = 1 Aq1 = 1 Aq2 = 1
Am1 0 0 0 1 0 1
√ √
Am2 2 0 0 0 0 − 2
Am3 0 0 1 0 1 1
√ √
Am4 0 0 0 0 − 2 − 2
Am5 0 0 0 0 0 1
Am6 −1 1 0 0 0 1
0 0 0 1 0 1
√ √
2
0 0 0 0 − 2
0 0 1 0 1 1
BMS = √ √
0 0 0 0 − 2 − 2
0 0 0 0 0 1
−1 1 0 0 0 1
@seismicisolation
@seismicisolation
92 Matrix Structural Analysis and the Finite Element Methods
7.657 −2.0 0 0 0 −7.657
−2.0
2.0 0 0 0 2.0
fjj f jq 0 0 2.0 0 2.0 2.0
Fs = =
fq j fqq 0 0 0 2.0 0 2.0
0 0 2.0 0 7.657 7.657
−7.657 2.0 2.0 2.0 7.657 19.314
Step 6: Now the problem is ready to be solved, and since Dq = 0, the redundant
actions Aq are obtained as shown below.
−1
Aq = − fqq × fq j × A j
" #!−1 " # 60
1 7.657 7.657 1 0 0 2 0 80
Aq = × ×
0
EA 7.657 19.314 EA −9.657 2 2 2
0
" # " #
Aq1 −35.98 kN
⇒ = ANS
Aq2 35.98 kN
The reaction at the roller support is to the left (−35.98 kN), in contrast to the
initial assumption; however, the force in the top chord member is tension (35.98 kN).
Once the redundant actions Aq are determined, all the other unknowns can be
easily computed as follows.
The complete structure actions As is found by augmenting A j and Aq as follows:
@seismicisolation
@seismicisolation
The Formalized Methods 93
60
80
"
Aj
#
0
As = = kN
0
Aq
−35.98
35.98
The member actions (forces) Am are obtained using Equation (3.10) as follows:
0 0 0 1 0 1 60
√ √
− 2
2 0 0 0 0 80
0 0 1 0 1 1 0
Am = Bms × As = √ √
×
0 − 2 − 2
0 0 0 0
1 −35.98
0 0 0 0 0
−1 1 0 0 0 1 35.98
Am1 −24.02
Am2 33.97
Am3 0
⇒
=
kN
Am4 0
Am5 35.98
Am6 55.98
@seismicisolation
@seismicisolation
94 Matrix Structural Analysis and the Finite Element Methods
Ds = Fs × As
7.657 −2.0 0 0 0 −7.657 60
−2.0
2.0 0 0 0 2.0 80
1 0 0 2.0 0 2.0 2.0 0
= × ×
EA
0 0 0 2.0 0
2.0 0
7.657 −35.98
0 0 2.0 0 7.657
−7.657 2.0 2.0 2.0 7.657 19.314 35.98
Using the given numerical values of E and A, the displacement vector Ds is ob-
tained as follows.
D j1 0.1199
D j2 0.1866
" #
Dj
D j3 0
⇒ Ds = = = mm
D j4 −0.0801
Dq
Dq1 0
Dq2 0
The support reactions at nodes 1 and 2 can also be computed using equilibrium
equations. The complete analysis result is shown in Figure 3.8, and the correspond-
ing Octave code is given below.
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 % Example 3.1 - Plane truss with three bars
2 % Formalized Flexibility Method
3
@seismicisolation
@seismicisolation
The Formalized Methods 95
11 L = [2 2*sq 2 2*sq 2 2]
12 EA = E*A
13 % Unassembled structure flexibility, FM in m/kN
14 FM = diag(L)/EA
15
27 % Partitioning
28 fjj = FS(1:4,1:4); fqq = FS(5:6,5:6);
29 fjq = FS(1:4,5:6); fqj = FS(5:6,1:4);
30
@seismicisolation
@seismicisolation
96 Matrix Structural Analysis and the Finite Element Methods
35 Aq = -inv(fqq)*fqj*Aj
36
Example 3.2 Analyze the beam shown in Figure 3.9 using the formalized flexibility
method. Use E = 29,000 ksi.
SOLUTION
Step 1: The beam is statically indeterminate to the second degree. A primary struc-
ture is created by removing two of the action components. In this example, the roller
supports at nodes 2 and 3 are removed to create a primary structure.
As shown in Figure 3.10(a), the two rotations at the roller supports are the free-
joint displacements of the beam (DJ1 and DJ2 ), and the redundant actions (Aq1 and
Aq2 ) on the beam are labeled. The two beam member actions and their orientations
are also shown in Figure 3.10(b). The actions AM11 and AM12 are the shear force
and bending moment on member 1 just to the left of the roller support at node-2;
likewise, AM21 and AM22 are the shear force and bending moment on member 2 just
to the left of node-3. AMi j refers to the action on member i along its jth DOFs due to
the respective external unit action (A j = 1 or Aq = 1).
@seismicisolation
@seismicisolation
The Formalized Methods 97
FIGURE 3.10 (a) Primary Structure of the Beam, (b) Member Actions Am and (c)
Fixed-Beam to Convert Member Forces to Equivalent-Nodal Load A j .
TABLE 3.2
Fixed-End-Actions on the Beam
Node 1 2L 2R 3
V F (k) 45 45 75 51
M F (k ft) 225 −225 350 −250
Step 2: The fixed-end actions are given in Table 3.2. Accordingly, the member
fixed-end-action components AFm the (equivalent) nodal load vector A j which are the
negative of the fixed-end-actions are determined as follows.
" #
−125
Aj = k ft
250
45 k
−225 k f t
AFm =
51 k
−250 k f t
@seismicisolation
@seismicisolation
98 Matrix Structural Analysis and the Finite Element Methods
Step 3: The flexibility matrices of the two beam elements are computed below
using Equation (3.3).
TABLE 3.3
Action Transformation Matrix for the Beam
Member A j1 = 1 A j2 = 1 Aq1 = 1 Aq2 = 1
Am11 0 0 1 1
Am12 1 1 0 L2
Am21 0 0 0 1
Am22 0 1 0 0
@seismicisolation
@seismicisolation
The Formalized Methods 99
0 0 1 1 0 0 1 1
1 1 0 L2 1 1 0 30
BMS =
0
=
0 0 1 0
0 0 1
0 1 0 0 0 1 0 0
0.3724 0.3724 5.5862 16.7586
0.3724 0.6207 5.5862 20.4828
fjj f jq
= 10−3 ×
Fs =
fq j fqq 5.5862 5.5862 111.7241 279.3103
16.7586 20.4828 279.3103 856.5517
@seismicisolation
@seismicisolation
100 Matrix Structural Analysis and the Finite Element Methods
Since the members are subjected to some loading between nodes, the member
actions Am obtained from Equation (3.10) must be modified to include the fixed-end-
action parts, as shown below.
45 0 0 1 1 −125
−225
F
1 1 0 30 250
Am = Am + Bms × As =
+
×
47.67 0 0 0 1 13.79
−250 0 1 0 0 −8.64
Am11 50.88 k
−342.65 k f t
Am12
=
Am21 39.58 k
Am22 0
@seismicisolation
@seismicisolation
The Formalized Methods 101
The corresponding Scilab code used to analyze the two-span beam using the for-
malized flexibility method is given below.
Scilab/Octave Code
1 // Example 3.2 - 2-span Beam
2 // Formalized Flexibility Method
3
13 EI = E*[I(1) I(2)]
14
@seismicisolation
@seismicisolation
102 Matrix Structural Analysis and the Finite Element Methods
32 // Partitioning
33 fjj = FS(1:2,3:4); fqq = FS(3:4,3:4);
34 fjq = FS(1:2,3:4); fqj = FS(3:4,1:2);
35
Example 3.3 Analyze the plane frame shown in Figure 3.12 using the formalized
flexibility method. Let P1 = 40 kN, P2 = 70 kN, M1 = 35 kN m, M2 = 30 kN m, L =
2 m. Use E = 72 GPa, I = 120e6 mm4 and A = 6000 mm2 for all members.
@seismicisolation
@seismicisolation
The Formalized Methods 103
SOLUTION
Step 1: The plane frame is statically indeterminate to the first degree. A primary
structure is created by removing the roller reaction, as shown in Figure 3.13(a).
The figure also shows the eight free-joint displacements on the frame (DJ1 to DJ11 ),
and the only redundant action Aq1 properly labeled. The four member actions and
their orientations are also shown in Figure 3.13(b); the actions AMi1 , AMi2 and AMi3
being the axial force, shear force and bending moment in member i at its second
node. Note that the horizontal member is divided into two elements at the point of
application of the downward vertical force P2 . This is just to avoid having to deal
with the computation of fixed-end-actions and equivalent nodal load vector, etc.
Step 2: The nodal load vector A j is given as follows.
40
0
−65
0
−100
Aj = 0
0
0
80
0
0
@seismicisolation
@seismicisolation
104 Matrix Structural Analysis and the Finite Element Methods
FIGURE 3.13 (a) Primary Structure and (b) Member Actions of the Plane Frame.
Step 3: The flexibility matrices of each frame element are computed using Equa-
tion (3.4), as shown below.
Li
EAi 0 0
Li3 Li2
fmi = 0
3EIi 2EIi
Li2 Li
0
2EIi EIi
@seismicisolation
@seismicisolation
The Formalized Methods 105
Step 5: The assembled structure flexibility matrix FS is computed using the fol-
lowing equation:
FS = BTMS × FM × BMS
@seismicisolation
@seismicisolation
106
TABLE 3.4
Unassembled Structure Flexibility Matrix for the Plane Frame
0.0069 0 0 0 0 0 0 0 0 0 0 0
0 1.0417 0.5208 0 0 0 0 0 0 0 0 0
0 0.5208 0.3472 0 0 0 0 0 0 0 0 0
@seismicisolation
@seismicisolation
The Formalized Methods
TABLE 3.5
Action Transformation Matrix for the Plane Frame
107
@seismicisolation
@seismicisolation
108
1.042 0 −0.521 1.042 −1.042 −0.521 1.042 −2.083 −0.521 −2.210 −0.521 −2.210
0 0.007 0 0 0.007 0 0 0.007 0 0.005 0 0.005
−0.521 0 0.347 −0.521 0.694 0.347 −0.521 1.389 0.347 1.596 0.347 1.350
@seismicisolation
@seismicisolation
The Formalized Methods 109
@seismicisolation
@seismicisolation
110 Matrix Structural Analysis and the Finite Element Methods
0.016187 D j1
−0.000262
D j2
−0.009458
D j3
0.016037 D j4
−0.008902
D j5
0.003725 D j5
Ds = Fs × As =
⇐
0.015888 D j7
0.015468 D j8
0.018151 D j9
0.073510 D j10
0.018151 D j11
0. Dq1
Since there are no fixed-end actions, the member actions Am are obtained from
Equation (3.10), as shown below.
−37.68 kN Am11
−7.68 kN Am12
−15.72 kN · m Am13
−32.32 kN Am21
−37.68 kN Am22
94.63 kN · m Am23
Am = Bms × As =
⇐
−32.32 kN Am31
32.32 kN Am32
30. kN · m Am33
−45.7 kN Am41
0 Am42
0 Am43
@seismicisolation
@seismicisolation
The Formalized Methods 111
Scilab/Octave Code
1 // Example 3.3 - Plane frame having four members
2 // Formalized Flexibility Method
3
15 // Member lengths
16 Ls = [3, 2, 2, 2*sqrt(2)] // in m
17
@seismicisolation
@seismicisolation
112 Matrix Structural Analysis and the Finite Element Methods
@seismicisolation
@seismicisolation
The Formalized Methods 113
Example 3.4 Analyze the three members grid structure shown in Figure 3.15 using
the formalized flexibility method. All members have E = 29,000 ksi, G = 11,500 ksi;
I = 1350 in4 and J = 250 in4 .
SOLUTION
Step 1: The grid frame is statically indeterminate to the sixth degree. A primary
structure is created by removing two of the fixed supports, as shown in Figure 3.16(a).
The figure also shows the three free-joint displacements on the grid (D j1 to D j3 ) and
the redundant actions (Aq1 to Aq6 ) properly labeled. The member actions and their
orientations are also shown in Figure 3.16(b); the actions AMi1 , AMi2 and AMi3 are
@seismicisolation
@seismicisolation
114 Matrix Structural Analysis and the Finite Element Methods
FIGURE 3.16 (a) Primary Structure and (b) Member Actions of the Grid Structure.
the shear force, twisting moment and bending moment in member i at its second
node, respectively.
Step 2: The fixed-end actions for the two members that are loaded is computed in
Table 3.6. Thus, the nodal load vector AFM and member fixed-end-action components
Am s given as follows.
TABLE 3.6
Fixed-End-Actions on the Members of the Grid Structure
Member 1 3
Joint 1 2 1 4
@seismicisolation
@seismicisolation
The Formalized Methods 115
−24.616
A j = −3.694
12.5
3k
0
−12.5 k f t
0
F
Am =
0
0
0.544 k f t
0
−2.138
Step 3: The flexibility matrices of each frame element are computed using Equa-
tion (3.5) as shown below.
Li3 Li2
3EIi 0
2EIi
Li
fmi = 0
GJi
L2 Li
i
0
2EIi EIi
@seismicisolation
@seismicisolation
116 Matrix Structural Analysis and the Finite Element Methods
Fm = 10−3
19.157 0 1.149 0 0 0 0 0 0
0 1.252 0 0 0 0 0 0 0
1.149 0 0.092 0 0 0 0 0 0
0 0 0 30.384 0 1.563 0 0 0
×
0 0 0 0 1.46 0 0 0 0
0 0 0 1.563 0 0.107 0 0 0
0 0 0 0 0 0 4.138 0 0.4138
0 0 0 0 0 0 0 0.7513 0
0 0 0 0 0 0 0.4138 0 0.0552
TABLE 3.7
Action Transformation Matrix for the Grid Structure
A j1 A j2 A j3 Aq1 Aq2 Aq3 Aq4 Aq5 Aq6
Am11 −1 0 0 −1 0 0 −1 0 0
Am12 0 −1 0 −15 0 −1 −15 −0.8575 −0.5145
Am13 25 0 1 25 1 0 0 0.5145 −0.8575
Am21 0 0 0 0 0 0 1 0 0
Am22 0 0 0 0 0 0 0 1 0
Am23 0 0 0 0 0 0 0 0 1
Am31 0 0 0 1 0 0 0 0 0
Am32 0 0 0 0 1 0 0 0 0
Am33 0 0 0 0 0 1 0 0 0
@seismicisolation
@seismicisolation
The Formalized Methods 117
Step 5: The assembled structure flexibility matrix FS is computed using the fol-
lowing equation:
FS = BTMS × FM × BMS
18.63 k
2.87 k f t
−239.20 k f t
⇒ Aq = ANS
−1.01 k
−2.47 k f t
−28.87 k f t
Note that this result is due to the joint displacements Dj alone; for the final sup-
port reactions, the fixed-end action components need to be included. The complete
structure actions vector As is found by augmenting A j and Aq as follows:
@seismicisolation
@seismicisolation
118 Matrix Structural Analysis and the Finite Element Methods
−24.62
−3.69
12.50
" # 18.6249
Aj
As = = 2.87
Aq
−239.20
−1.01
−2.47
−28.87
The member actions Am are obtained by adding the fixed-end actions to the value
computed from Equation (3.10), as shown below.
@seismicisolation
@seismicisolation
The Formalized Methods 119
Am = Am f + Bms × As
Am11 10 k
−4.38 k f t
Am12
−123.41 k f t
Am13
−1.01 k
Am21
⇒ Am22 = −2.47 k f t
−28.87 k f t
Am23
Am31 19.17 k
Am32 2.87 k f t
Am33 −241.34 k f t
Finally, the complete analysis result is shown in Figure 3.17, and the correspond-
ing Scilab code is also given below.
Scilab/Octave Code
1 % Example 3.4 - 3-member Grid Structure
2 % Formalized Flexibility Method
3
@seismicisolation
@seismicisolation
120 Matrix Structural Analysis and the Finite Element Methods
@seismicisolation
@seismicisolation
The Formalized Methods 121
Example 3.5 Analyze the space frame structure shown in Figure 3.18(a) using the
formalized flexibility method. All members have E = 30 GPa, G = 12.5 GPa; Iy =
650e6 mm4 , Iz = 650e6 mm4 , J = 120e6 mm4 and A = 90,000 mm2 . Use P1 = 25 kN,
P2 = 10 kN, P3 = 80 kN, M1 = 30 kN m, M2 = 15 kN m and M3 = 25 kN m.
@seismicisolation
@seismicisolation
122 Matrix Structural Analysis and the Finite Element Methods
FIGURE 3.18 (a) Given Space Frame and (b) Corresponding Primary Structure.
SOLUTION
Step 1: The space frame is statically indeterminate to the third degree. A primary
structure is created by, for example, removing the pin-support at node-4, as shown
in Figure 3.18(b). The fifteen free-joint displacements on the frame (DJ1 to DJ15 ) are
shown properly labeled in Figure 3.19(a). The member actions and their orientations
are also shown in Figure 3.19(b); the member actions AMi s have six components: an
axial force, two shear forces, a twisting moment and two bending moments in mem-
ber i at the second node, respectively.
@seismicisolation
@seismicisolation
The Formalized Methods 123
Step 2: There are no fixed-end actions for the space frame since all actions are
nodal loads. Thus, the structure joint actions vector A j is given by the following.
@seismicisolation
@seismicisolation
124 Matrix Structural Analysis and the Finite Element Methods
0
−P1
P2
0
M1
0
0
Aj =
0
−P3
M2
0
0
0
M3
0
Step 3: The flexibility matrices of each frame element is computed using Equation
(3.6) as shown below.
Li
(EA) 0 0 0 0 0
i
L 3 L 2
i i
0 0 0 0
3(EIz )i 2(EIz )i
Li3 Li2
−
0 0 0 0
3(EIy )i 2(EIy )i
fmi =
Li
0 0 0 0 0
(GJ)i
2
L i Li
0 0 − 0 0
2(EIy )i (EIy )i
Li2 Li
0 0 0 0
(EIz )i (EIz )i
125
0 0 0 0 0 0 0 0 0 0 0 0 0 25 0 0 0 16.67
@seismicisolation
@seismicisolation
126 Matrix Structural Analysis and the Finite Element Methods
Step 5: The assembled structure flexibility matrix FS is computed using the fol-
lowing equation, the result is given in Equation 3.19.
FS = BTMS × FM × BMS
@seismicisolation
@seismicisolation
TABLE 3.8
127
Am36 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
@seismicisolation
@seismicisolation
128
0.462 0 0 0 0.231 0 0.462 0 −0.462 0 0.231 0
0 0.462 0 −0.231 0 0 0 0.462 0 −0.231 0 0
0 0 0.001 0 0 0 0 0 0.001 0 0 0
0 −0.231 0 0.154 0 0 0 −0.231 0 0.154 0 0
0.231
0 0 0 0.154 0 0.231 0 −0.308 0 0.154 0
0 0 0 0 0 2.000 0 4.000 0 0 0 2.000
@seismicisolation
@seismicisolation
The Formalized Methods
0 0.231 0 0.462 0 −0.462
−0.231 0 0 0 0.462 −0.692
0 0 0 0 0 0.001
0.154 0 0 0 −0.231 0.462
0 0.154 0 0.231 0 −0.308
0 0 2.000 −6.000 4.000 0
0 −0.462
0 0.231 0 0.462
−0.231 0 4.103 −12.308 8.598 −0.692
0 −0.410 0 −0.462 0 0.753
1.487 0 0 0 −0.231 4.462
0 0.256 0 0.231 0 −0.410
0 0 2.103 −6.308 4.103 0
1.641 0 0 0 −0.231 4.692
0 −0.410
0 2.256 0 0.231
0 0 2.256 −6.539 4.103 0
0 0.231 −6.539 19.847 −12.308 −0.462
−0.231 0 4.103 −12.308 8.599 −0.692
(3.19)
129
4.692 −0.410 0 −0.462 −0.692 14.599
@seismicisolation
@seismicisolation
130 Matrix Structural Analysis and the Finite Element Methods
−6
0.4615 0 0 0 0.2308 0.4623
fq j = 10−3 × 0 0.4615 0 −0.2308 0 4 0 ...
−0.4615 −0.6923 0.0011 0.4615 −0.3077 0 −0.4615
−27.905
⇒ Aq = −40.938 kN ANS
−0.759
@seismicisolation
@seismicisolation
The Formalized Methods 131
0
25
−10
0
30
0
0
0
" #
Aj −80
As = =
Aq 15
0
0
0
25
0
−8.524
10.225
−1.624
@seismicisolation
@seismicisolation
132 Matrix Structural Analysis and the Finite Element Methods
0.03709 m D j1
−0.01029 m
D j2
−0.00010 m
D j3
0.00564 rad
D j4
0.02687 rad
D j5
0.00368 rad
D j6
0.03707 m
D j7
0.00005 m
D j8
−0.06745 m
D j9
Ds = Fs × As = ⇐
0.02260 rad
D j10
0.03772 rad
D j11
0.00806 rad
D j12
0.02243 rad
D j13
0.08772 rad
D j14
0.01450 rad
D j15
0
Dq1
0 Dq2
0 Dq3
Since there are no fixed-end actions, the member actions Am are obtained from
Equation (3.10), as shown below.
@seismicisolation
@seismicisolation
The Formalized Methods 133
−91.624 kN Am11
−35.225 kN
Am12
−8.524 kN
Am13
5.121 kN m Am14
−215 kN m
Am15
10.127 kN m Am16
−8.524 kN
Am21
−81.624 kN
Am22
−10.225 kN
Am23
Am = Bms × As =
⇐
10.127 kN m Am24
25.572 kN m Am25
−25 kN m
Am26
10.225 kN m Am31
−1.624 kN m
Am32
−8.524 kN m
Am33
0 Am34
0 Am35
0 Am36
Finally, the corresponding Scilab code used to analyze the space frame using the
formalized flexibility method is given below.
Scilab/Octave Code
1 // Example 3.5 - Space frame having three members
2 // Formalized Flexibility Method
3
@seismicisolation
@seismicisolation
134 Matrix Structural Analysis and the Finite Element Methods
18 // Member lengths
19 Ls = [3, 2, 3] // in m
20
@seismicisolation
@seismicisolation
The Formalized Methods 135
@seismicisolation
@seismicisolation
136 Matrix Structural Analysis and the Finite Element Methods
am = [sm ] × dm (3.20)
The member stiffness matrix [sm ] for the different prismatic structural elements
are derived as follows.
Truss Member
A truss member has a single DOF, i.e., the axial deformation at node-2, as shown
PL
in Figure 3.20. The displacement δ in terms of an axial load P is given by δ = EA .
EA
To create a unit axial displacement (if δ = 1), an axial force of P = L is required.
Hence, the stiffness (the axial force needed to cause a unit axial displacement) of a
truss member having constant axial rigidity EA is given by Equation (3.21).
EA
sm = (3.21)
L
Beam Member
A beam member has two DOFs – transverse displacement and rotation at node-2, as
shown in Figure 3.21. The stiffness matrix of a beam member with constant flexural
rigidity EI is given by the 2 × 2 matrix shown in Equation (3.22). This is determined
by assigning unit values to the displacement and rotation (dm1 and dm2 ), one at a
time, and computing the corresponding actions (shear force and bending moment)
along the two DOFs.
@seismicisolation
@seismicisolation
The Formalized Methods 137
12EI − 6EI
L3 L2
sm = (3.22)
− 6EI 4EI
L2 L
EA
L 0 0
12EI − 6EI
sm =
0
(3.23)
L3 L2
− 6EI 4EI
0
L2 L
@seismicisolation
@seismicisolation
138 Matrix Structural Analysis and the Finite Element Methods
Grid Member
Grid structure is a framed structure lying in a plane but subjected to transverse ac-
tions perpendicular to the plane of the structure. Each grid member has three DOFs
– transverse displacements, twisting and rotation at the free end as shown in Fig-
ure 3.23. The double-headed arrow along DOF-2 represents the rotation about the
member axis, i.e., the twisting of the member. The stiffness of a grid member with
constant flexural rigidity EI and twisting rigidity GJ 3 is given by the 3 × 3 matrix
shown in Equation (3.24).
12EI − 6EI
L3 0
L2
GJ
sm =
0 0 (3.24)
L
− 6EI 4EI
0
L2 L
@seismicisolation
@seismicisolation
The Formalized Methods 139
ing about the Z-axis and bending about the Y-axis, respectively. These rotations are
assumed to be positive according to the right-hand-rule.
The stiffness of a space frame member with given constant axial, torsional shear
and flexural rigidities EA, GJ, EIz and EIy is given by the 6 × 6 matrix shown in
Equation (3.25). Note that (unit) actions along 2 and 6 cause bending of the member
about the Z-axis, requiring Iz in the stiffness matrix. Likewise, actions along 3 and 5
cause bending of the member about the Y-axis; thus, Iy is used.
EA
L 0 0 0 0 0
12EIz 6EIz
− 2
0 0 0 0
L3 L
12EIy 6EIy
0 0 0 0
L3 L2
sm = (3.25)
0 GJ
0 0 0 0
L
6EIy 4EIy
0 0 0 0
L2 L
6EIz 4EIz
0 − 2 0 0 0
L L
@seismicisolation
@seismicisolation
140 Matrix Structural Analysis and the Finite Element Methods
Am = Sm × Dm (3.27)
other reactions (Aq was the redundant actions only, while in this case AR stands for all the reactions of the
structure). Hence, AR stand for the total number of independent reaction components of the structure and
DR represents all displacements along the reactions on the structure.
@seismicisolation
@seismicisolation
The Formalized Methods 141
δW = δU
δ Ds T × As = δ Dm T × Am
= (CMS × δ Ds )T × (SM × DM )
= δ Ds T ×CMS T × SM ×CMS × Ds
⇒ As = (CMS T × SM ×CMS ) × Ds
As = Ss × Ds (3.32)
Equation (3.32) relates the structure actions As in terms of the corresponding struc-
ture displacements Ds . This equation is termed as the assembled structure stiffness
equation. It can also be written in partitioned form as given in Equation (3.34) parti-
tioning the Ss matrix and using the relationship for As and Ds given earlier.
" # " # " #
AJ SJJ SJR DJ
= × (3.33)
AR SRJ SRR DR
@seismicisolation
@seismicisolation
142 Matrix Structural Analysis and the Finite Element Methods
AJ = SJJ × DJ + SJR × DR
(3.34)
AR = SRJ × DJ + SRR × DR
@seismicisolation
@seismicisolation
The Formalized Methods 143
3.2.5 EXAMPLES
The following examples have already been analyzed in Section 3.1 using the for-
malized flexibility method. Here, the solutions are carried out using the formalized
stiffness method in order to demonstrate how the formalized stiffness method can be
used and to show how the same solution can be obtained using both methods.
Example 3.6 Analyze the plane truss structure shown in Figure 3.26 using the for-
malized stiffness method. All members have cross sectional area A = 5000 mm2 and
E = 120 GPa, and let P1 = 60 kN and P2 = 80 kN.
SOLUTION
Step 1: The truss has four free DOFs (DJ s); a basic structure is created by restrain-
ing these. The nodes and members are labeled in Figure 3.27. The four free-joint
@seismicisolation
@seismicisolation
144 Matrix Structural Analysis and the Finite Element Methods
displacements (DJ1 to DJ4 ) and the four reactions (AR1 to AR4 ) on the given truss are
indicated, as positive in the direction shown. The figure also shows how the members
are oriented, like member 1 runs from node-1 to node-2, member 4 runs from node-4
to node-3, etc.
Step 2: The given nodal load vector A j of the structure is written as follows:
P1 60
P2 80
Aj = 0 = 0 kN
0 0
Step 3: Each member of the truss has a stiffness coefficient (a 1 × 1 matrix) given
by Equation (3.21). The unassembled structure stiffness matrix SM of the truss is thus
given by:
@seismicisolation
@seismicisolation
The Formalized Methods 145
1/L1 0 0 0 0 0
0 1/L2 0 0 0 0
0 0 1/L3 0 0 0
SM = EA ×
0 0 0 1/L4 0 0
0 0 0 0 1/L5 0
0 0 0 0 0 1/L6
0.5 0 0 0 0 0
0 0.35355 0 0 0 0
0 0 0.5 0 0 0
⇒ SM = EA × kN/m
0 0 0 0.35355 0 0
0 0 0 0 0.5 0
0 0 0 0 0 0.5
@seismicisolation
@seismicisolation
146 Matrix Structural Analysis and the Finite Element Methods
TABLE 3.9
Displacement Transformation Matrix for the 6 Bars Truss
Member DJ1 = 1 DJ2 = 1 DJ3 = 1 DJ4 = 1 DR1 = 1 DR2 = 1 DR3 = 1 DR4 = 1
Dm1 0 0 0 −1 0 0 1 0
√ √ √ √
Dm2 2/2 2/2 0 − 2/2 0 − 2/2 0 0
Dm3 0 0 1 0 0 −1 0 0
√ √ √ √
Dm4 0 0 2/2 0 − 2/2 0 2/2 2/2
Dm5 1 0 0 0 −1 0 0 0
Dm6 0 1 0 0 0 0 0 −1
@seismicisolation
@seismicisolation
The Formalized Methods
406.07 106.07 0 −106.07 −300 −106.07 0 0
−106.07 −106.07 −300
106.07 406.07 0 0 0
0 0 406.07 0 −106.07 −300 106.07 −106.07
−106.07 −106.07 0 406.07 0 106.07 −300 0
T × S ×C 3
Ss = CMS MS = 10 ×
M
−300 0 −106.07 0 406.07 0 −106.07 106.07
−106.07 −106.07 −300 106.07 0 406.07 0 0
0 0 106.07 −300 −106.07 0 406.07 −106.07
0 −300 −106.07 0 106.07 0 −106.07 406.07
147
@seismicisolation
@seismicisolation
148
The Ss matrix is then partitioned into four components as follows:
Ss =
0 0 406.07 0 −106.07 −300 106.07 −106.07
−106.07 −106.07 0 406.07 0 106.07 −300 0
Sjj
Sr j
Ss = 103 ×
−300 0 −106.07 0 406.07 0 −106.07 106.07
S jr
Srr
−106.07 −106.07 −300 106.07 0 406.07 0 0
0 0 106.07 −300 −106.07 0 406.07 −106.07
0 −300 −106.07 0 106.07 0 −106.07 406.07
@seismicisolation
@seismicisolation
The Formalized Methods 149
Step 6: Now the problem is ready to be solved, and the unknown nodal displace-
ments D j are solved for as follows.
D j = S−1
jj ×Aj
−1
406066.02 106066.02 0. −106066.02 60
106066.02 406066.02 0. −106066.02 80
Dj = ×
0. 0. 406066.02 0.
0
−106066.02 −106066.02 0. 406066.02 0
D j1 0.12
D j2 0.19
⇒ =
mm ANS
D j3 0
D j4 0.08
Once the displacements D j are determined, all the other unknowns can be easily
computed as follows. The support reactions are given by:
−35.98
−24.02
Ar = Sr j × D j =
−24.02 kN
−55.98
@seismicisolation
@seismicisolation
150 Matrix Structural Analysis and the Finite Element Methods
0.12
0.19
0
0.08
Dj
Ds = = mm
Dr 0
0
0
0
The member displacements and actions (Dm and Am ) are obtained using Equa-
tions 3.29 and 3.27, respectively, as follows:
−0.08
0.16
0.
Dm = Cms × Ds = mm
0.
0.12
0.19
Am1 −24.02
Am2 33.98
Am3 0.
⇒
= Sm × Dm =
kN
Am4 0.
Am5 35.98
Am6 55.98
@seismicisolation
@seismicisolation
The Formalized Methods 151
The complete analysis result has already been shown in Figure 3.8. The Scilab
code used for the current solution in the formalized stiffness method is given below.
Scilab/Octave Code
1 // Example 3.6 - Plane Truss Analysis
2 // Formalized Stiffness Method
3
27 // Partitioning
28 Sjj = Ss(1:4,1:4)
29 Sjr = Ss(1:4,5:8) // Not actually required
30 Srj = Ss(5:8,1:4)
31 Srr = Ss(5:8,5:8)
32
@seismicisolation
@seismicisolation
152 Matrix Structural Analysis and the Finite Element Methods
Example 3.7 Analyze the beam shown in Figure 3.9 using the formalized stiffness
method. Use E = 29,000 ksi.
SOLUTION
Step 1: The beam is kinematically indeterminate to the second degree. As shown in
Figure 3.30(a), the two rotations at the roller supports are the free-joint displace-
ments (DJ1 and DJ2 )5 , and the reactions (AR1 to AR4 ) on the beam are labeled. The
two beam member actions and their orientations are also shown in Figure 3.30(b).
The actions AM11 and AM12 are the shear force and bending moment on member 1
just to the left of the roller support at node-2; likewise, AM21 and AM22 are the shear
force and bending moment on member 2 just to the left of node-3.
5 Free-joint displacements (D s) for any kinematically indeterminate structure are always unique, there
J
is no alternative.
@seismicisolation
@seismicisolation
The Formalized Methods 153
FIGURE 3.30 (a) Primary Structure of the Beam, (b) Member Actions Am , (c) Fixed-
Beam to Convert Member Forces to Equivalent-Nodal Load for A j .
Step 2: The fixed-end actions were computed in Table 3.2. Accordingly, the
(equivalent) nodal load vector A j and member forces AFm and the reaction forces
AFR from fixed-end actions are given as follows.
" #
−125
Aj = k ft
250
45 k
−225 k f t
AFm
=
51 k
−250 k f t
45 k
225 k f t
AFR =
120 k
51 k
@seismicisolation
@seismicisolation
154 Matrix Structural Analysis and the Finite Element Methods
Step 3: The stiffness matrices of the two beam elements are computed below
using Equation (3.22).
12EI1 − 6EI1 12EI2 − 6EI2
L13 L12 L23 L22
Sm1 =
and Sm2 =
− 6EI 4EI − 6EI 4EI
1 1 2 2
L12 L1 L22 L2
The unassembled structure stiffness matrix SM of the beam is thus given by:
12EI1 − 6EI1
L3 0 0
1 L12
− 6EI1 4EI1
0 0
L12 L1
" #
Sm1 0
SM = =
12EI2 − 6EI2
0 Sm2
0 0
L23 L22
0 − 6EI2 4EI2
0
L22 L2
35.80 −537.04 0 0
−537.04
10740.74 0 0
∴ SM =
0 0 537 −805.56
0 0 −805.56 16111.11
@seismicisolation
@seismicisolation
The Formalized Methods 155
TABLE 3.10
Displacement Transformation Matrix for the Beam
Member D j1 = 1 D j2 = 1 DR1 = 1 DR2 = 1 DR3 = 1 DR4 = 1
Dm11 0 0 −1 −L1 1 0
Dm12 1 0 0 −1 0 0
Dm21 −L2 0 0 0 −1 1
Dm22 −1 1 0 0 0 0
0 0 −1 −30 1 0
−1
1 0 0 0 0
⇒ CMS =
−30 0 0 0 −1 1
−1 1 0 0 0 0
@seismicisolation
@seismicisolation
156 Matrix Structural Analysis and the Finite Element Methods
26.85 8.06 0.54 5.37 0.27 −0.81
8.06
16.11 0 0 0.81 −0.81
Sjj S jr 0.54 0 0.04 0.54 −0.04 0
Ss = = 103 ×
Sr j Srr 5.37
0 0.54 10.74 −0.54 0
0.27
0.81 −0.04 −0.54 0.09 −0.05
−0.81 −0.81 0 0 −0.05 0.05
D j = S−1
jj ×Aj
" # " #
D j1 −0.011
⇒ = rad ANS
D j2 0.021
−0.011
0.021
" #
Dj 0
Ds = =
DR
0
0
0
@seismicisolation
@seismicisolation
The Formalized Methods 157
Since the members are subjected to some loading between nodes, the member
actions Am obtained from Equation (3.29) must be modified to include the fixed-end-
action parts, as shown below.
Am = AFm + SM × Dm
Am11 45
Am12 −225
= +
Am21 47.67
Am22 −250
35.80 −537.04 0 0 0
−537.04 −0.0110
10.74e3 0 0
×
−805.56 0.3286
0 0 53.70
0 0 −805.56 16.11e3 0.0319
Am11 50.88 k
Am12 −342.65 k f t
⇒
=
Am21 39.58 k
Am22 0
The reaction forces AR are given by adding the fixed end actions along the four
reactions and the product Sr j × D j .
@seismicisolation
@seismicisolation
158 Matrix Structural Analysis and the Finite Element Methods
R1 39.12 k
M1 166.18 k f t
= AFr + Sr j × D j =
R2 137.30 k
R3 39.58 k
The complete analysis result is has already been shown in Figure 3.11. The Oc-
tave code for the formalized stiffness method used in this example is presented below.
Scilab/Octave Code
1 % Example 3.7 - 2-span Beam
2 % Formalized Stiffness Method
3
13 EI = E*[I(1) I(2)]
14
@seismicisolation
@seismicisolation
The Formalized Methods 159
30 Ss = Cms'*SM*Cms
31
32 % Partitioning
33 Sjj = Ss(1:2,1:2); Sjr = Ss(1:2,3:6);
34 Srj = Ss(3:6,1:2); Srr = Ss(3:6,3:6);
35
Example 3.8 Analyze the plane frame shown in Figure 3.32 using the formalized
stiffness method. Let P1 = 40 kN, P2 = 70 kN, M1 = 35 kN m, M2 = 30 kN m, L = 2
m. Use E = 72 GPa, I = 120e6 mm4 and A = 6000 mm2 for all members.
@seismicisolation
@seismicisolation
160 Matrix Structural Analysis and the Finite Element Methods
SOLUTION
Step 1: The plane frame is kinematically indeterminate to the eighth degree. A basic
structure is created by restraining all the free joint displacements (D j s) shown in
Figure 3.33(a).
The figure shows the eight free-joint displacements on the frame (DJ1 to DJ8 ),
and the four reaction components (Ar1 to Ar4 ) properly labeled with their assumed
positive directions. The three-member actions and their orientations are also shown
in Figure 3.33(b); the actions AMi1 , AMi2 and AMi3 are the axial force, shear force
and bending moment in member i at its second node.
@seismicisolation
@seismicisolation
The Formalized Methods 161
FIGURE 3.33 (a) Free-Joint Displacements and Reactions and (b) Member Actions
of the Plane Frame.
Step 2: The central load on member 2 has to be transformed into equivalent nodal
load. This is done by computing the fixed-end actions which are given as follows:
V21 35.0 kN
M21 35.0 kN m
=
V22 35.0 kN
M22 −35.0 kN m
The fixed-end action AFm vectors needed to compute the member actions is thus
given by:
@seismicisolation
@seismicisolation
162 Matrix Structural Analysis and the Finite Element Methods
0
0
0
0
F
Am = 35
−35
0
0
0
The reaction AFr equals [0; 0; 0; 0] while the equivalent nodal load vector A j is
given by:
40
−35
−70
0
Aj =
−35
75
0
0
Step 3: The stiffness matrices of each frame element is computed below using
Equation (3.23).
EAi
Li 0 0
12EIi − 6EIi
smi = 0
Li3 Li2
− 6EIi 4EIi
0
Li2 Li
@seismicisolation
@seismicisolation
The Formalized Methods 163
The unassembled structure stiffness matrix SM of the plane frame is a 9×9 matrix
given as follows:
144 0 0 0 0 0 0 0 0
0 3.84 −5.76 0 0 0 0 0 0
0 −5.76 11.52 0 0 0 0 0 0
0 0 0 108 0 0 0 0 0
3
SM = 10 × 0 −3.24
0 0 0 1.62 0 0 0
−3.24
0 0 0 0 8.64 0 0 0
0 0 0 0 0 0 152.74 0 0
0
0 0 0 0 0 0 4.5821 −6.48
0 0 0 0 0 0 0 −6.48 12.22
@seismicisolation
@seismicisolation
164
TABLE 3.11
Displacement Transformation Matrix for the Plane Frame
@seismicisolation
@seismicisolation
The Formalized Methods 165
Step 5: The assembled structure stiffness matrix SS is computed using the follow-
ing equation:
T × S ×C
Ss = CMS M MS
D j = S−1
jj ×Aj
16.19 mm
−0.26 mm
−9.46 rad
15.89 mm
−3
⇒ D j = 10 × ANS
15.47 mm
18.15 rad
73.51 mm
18.15 rad
@seismicisolation
@seismicisolation
166 Matrix Structural Analysis and the Finite Element Methods
The member actions Am are obtained by adding AFm to the one obtained from
Equation (3.29), as shown below.
@seismicisolation
@seismicisolation
The Formalized Methods 167
−37.68 kN Am11
−7.68 kN Am12
−15.72 kN m Am13
−32.32 kN Am21
Am = SM × Dm = 32.32 kN ⇐ Am22
30. kN m Am23
−45.71 kN Am31
0 Am32
0 Am33
The complete analysis result is shown in Figure 3.14; the corresponding Octave
code for this solution is given below.
Scilab/Octave Code
1 % Example 3.8 - Plane frame having three members
2 % Formalized Stiffness Method
3
@seismicisolation
@seismicisolation
168 Matrix Structural Analysis and the Finite Element Methods
@seismicisolation
@seismicisolation
The Formalized Methods 169
Example 3.9 Analyze the grid structure shown in Figure 3.34 using the formalized
stiffness method. All members have E = 29,000 ksi, G = 11,500 ksi; I = 1350 in4 and
J = 250 in4 .
SOLUTION
Step 1: The grid frame is kinematically indeterminate to the third degree. A basic
structure is created by restraining node-1 as shown in Figure 3.35(b).
@seismicisolation
@seismicisolation
170 Matrix Structural Analysis and the Finite Element Methods
Figure 3.35(a) also shows the three free-joint displacements on the grid (DJ1 –
DJ3 ), and the redundant actions (Aq1 to Aq9 ) properly labeled. The member actions
and their orientations are also shown in Figure 3.35(b); the actions AMi1 , AMi2 and
AMi3 are the shear force, twisting moment and bending moment in member i at its
second node, respectively.
Step 2: The fixed-end actions for the two members that are loaded is computed
in Table 3.12. Thus, the nodal load vector A j s and member fixed-end-action compo-
nents AFm as well as AR f given as follows.
−24.616
A j = −3.694
12.5
TABLE 3.12
Fixed-End-Actions on the Members of the Grid Structure
Member 1 3
Joint 1 2 1 4
3k 3k
0
0
−12.5 k · f t 12.5 k · f t
0
0
F F
Am =
0
and AR =
0
0 0
0.544 k · f t 0.544 k · f t
0
0
−2.138 −2.138
Step 3: The stiffness matrices of each frame element is computed using Equation
(3.24) as shown below.
12EIi − 6EIi
L3 0
i Li2
Li
smi = 0
GJi
− 6EIi 4EIi
0
Li2 Li
Step 5: The structure stiffness matrix SS is computed using the following equa-
tion:
T × S ×C
SS = CMS M MS
@seismicisolation
@seismicisolation
172
TABLE 3.13
Unassembled Stiffness Matrix of the Three-Members Grid
208.80 0 −2610 0 0 0 0 0 0
@seismicisolation
@seismicisolation
The Formalized Methods
TABLE 3.14
Displacement Transformation Matrix for the Grid Structure
DJ1 DJ2 DJ3 DR1 DR2 DR3 DR4 DR5 DR6 DR7 DR8 DR9
Dm11 −1 0 25 1 0 0 0 0 0 0 0 0
Dm12 0 −1 0 0 1 0 0 0 0 0 0 0
Dm13 0 0 1 0 0 −1 0 0 0 0 0 0
Dm21 −1 −15 25 0 0 0 1 0 0 0 0 0
Dm22 0 −0.8575 −0.5145 0 0 0 0 1 0 0 0 0
Dm23 0 −0.5145 0.8575 0 0 0 0 0 1 0 0 0
Dm31 −1 −15 0 0 0 0 0 0 0 1 0 0
Dm32 0 0 −1 0 0 0 0 0 0 0 1 0
Dm33 0 −1 0 0 0 0 0 0 0 0 0 1
173
@seismicisolation
@seismicisolation
174
1.307 8.237 −4.256 −0.209 0 −2.610 −0.132 0 1.919 −0.967 0 7.25
8.237 83.676 −16.154 0 −0.799 0 −0.987 −0.587 9.595 −7.25 0 36.25
−4.256 −16.154 72.439 2.610 0 21.750 1.646 −0.352 −15.992 0 −1.331 0
−0.209 0 2.610 0.209 0 2.610 0 0 0 0 0 0
0 −0.799 0 0 0.799 0 0 0 0 0 0 0
−2.610 0 21.750 2.610 0 43.5 0 0 0 0 0 0
SS = 103 ×
−0.132 −0.987 1.646 0 0 0 0.132 0 −1.919 0 0 0
0 −0.587 −0.352 0 0 0 0 0.685 0 0 0 0
@seismicisolation
@seismicisolation
1.919 9.595 −15.992 0 0 0 −1.919 0 37.301 0 0 0
−0.967 −7.25 0 0 0 0 0 0 0 0.967 0 −7.25
0 0 −1.331 0 0 0 0 0 0 0 1.331 0
7.25 36.25 0 0 0 0 0 0 0 −7.25 0 72.5
Matrix Structural Analysis and the Finite Element Methods
The Formalized Methods 175
D j = S−1
jj ×Aj
−0.06045
⇒ D j = 0.00549 ANS
−0.00215
@seismicisolation
@seismicisolation
176 Matrix Structural Analysis and the Finite Element Methods
The structure reactions Ar are computed using Equation (3.13), as shown below:
10 k
−4.39 k f t
123.41 k f t
−1.01 k
F
Ar = Ar + Sr j × D j = −2.47 k f t
−28.87 k f t
19.17 k
2.87 k f t
−241.34 k f t
The member actions Am are computed by adding the member fixed-end actions
AFm and the results obtained from (Dm = Cms × DS ), as shown below.
3. 7
−4.38
0.
−12.5 −110.91
−1.01
0.
Am = Am f + Sm ×Cms × Ds = + −2.47
0.
−28.87
0.
0.544 18.62
0. 2.87
−2.138 −239.2
@seismicisolation
@seismicisolation
The Formalized Methods 177
Am11 10 k
−4.38 k f t
Am12
−123.41 k f t
Am13
−1.01 k
Am21
⇒ = −2.47 k f t
Am22
−28.87 k f t
Am23
Am31 19.17 k
Am32 2.87 k f t
Am33 −241.34 k f t
Finally, the complete analysis result has been shown in Figure 3.17 of Example
3.4, and Scilab code for the current solution is as given below.
Scilab/Octave Code
1 clear;
2 // Example 3.9 - 3-member Grid Structure
3 // Formalized Stiffness Method
4
@seismicisolation
@seismicisolation
178 Matrix Structural Analysis and the Finite Element Methods
24 sm = [12*EI/L^3 0 -6*EI/L^2;
25 0 GJ/L 0;
26 -6*EI/L^2 0 4*EI/L];
27 endfunction
28
@seismicisolation
@seismicisolation
The Formalized Methods 179
Example 3.10 Analyze the space frame structure shown in Figure 3.36 using the
formalized stiffness method. All members have E = 30 GPa, G = 12.5 GPa; Iy =
650e6 mm4 , Iz = 650e6 mm4 , J = 120e6 mm4 , and A = 90,000 mm2 . Use P1 = 25 kN,
P2 = 10 kN, P3 = 80 kN, M1 = 30 kN m, M2 = 15 kN m and M3 = 25 kN m.
@seismicisolation
@seismicisolation
180 Matrix Structural Analysis and the Finite Element Methods
SOLUTION
Step 1: The space frame is kinematically indeterminate to the fifteenth degree. A
basic structure is created by restraining all these DOFs, as shown in Figure 3.37(a);
while the nine reaction forces of the space frame are labeled Ar1 to Ar9 in Figure
3.37(b). The fifteen free-joint displacements on the space frame (DJ1 to DJ15 ) are
@seismicisolation
@seismicisolation
The Formalized Methods 181
shown properly labeled in Figure 3.38(a). The member actions and their orientations
are also shown in Figure 3.38(b); each member has six internal action components
Ami j .6
Step 2: There are no fixed-end actions for the space frame since all actions are
nodal loads, which is given by the following equation.
6 i stands for the member number while j is the one of the six DOFs of the member (axial, shear in y,
@seismicisolation
@seismicisolation
182 Matrix Structural Analysis and the Finite Element Methods
0
−P1
P2
0
M1
0
0
Aj =
0
−P3
M2
0
0
0
M3
0
Step 3: The stiffness matrices of each frame element is computed using Equation
(3.25) as shown below.
(EA)i
L 0 0 0 0 0
i
12(EIz )i 6(EIz )i
0 0 0 0 −
Li3 Li2
12(EIy )i 6(EIy )i
0 0 0 0
Li3 Li2
smi =
0 (GJ)i
0 0 0 0
Li
0 6(EIy )i 4(EIy )i
0 0 0
Li2 Li
6(EIz )i 4(EIz )i
0 − 0 0 0
Li2 Li
@seismicisolation
@seismicisolation
The Formalized Methods 183
0.011 0 0 0 0 0
0 50 0 0 0 25
0 0 30 0 −15 0
sm1 = 10−3 ×
0 0 0 20 0 0
0 0 −15 0 10 0
0 25 0 0 0 16.67
0.007 0 0 0 0 0
0 14.81 0 0 0 11.11
0 0 8.89 0 −6.67 0
sm2 = 10−3 ×
0 0 0 13.33 0 0
0 0 −6.67 0 6.67 0
0 11.11 0 0 0 11.11
0.011 0 0 0 0 0
0 50 0 0 0 25
0 0 30 0 −15 0
−3
sm3 = 10 ×
0 0 0 20 0 0
0 0 −15 0 10 0
0 25 0 0 0 16.67
@seismicisolation
@seismicisolation
184 Matrix Structural Analysis and the Finite Element Methods
sm1 0 0
⇒ SM =
0 sm2 0
0 0 sm3
Step 5: The assembled structure stiffness matrix SS is computed using the follow-
ing equation:
T × S ×C
SS = CMS M MS
@seismicisolation
@seismicisolation
The Formalized Methods
TABLE 3.15
Compatibility Matrix for the Space Frame Structure
D j1 D j2 D j3 D j4 D j5 D j6 D j7 D j8 D j9 D j10 D j11 D j12 D j13 D j14 D j15 Dr1 Dr2 Dr3 Dr4 Dr5 Dr6 Dr7 Dr8 Dr9
Dm11 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 −1 0 0 0 0 0 0
Dm12 0 −1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 −3 0 0 0 0 0
Dm13 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 −1 0 0 0 −3 0 0 0 0
Dm14 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 −1 0 0 0
Dm15 0 0 0 0 −1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
Dm16 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 −1 0 0 0 0 0
Dm21 −1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Dm22 0 0 −1 0 2 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Dm23 0 1 0 0 0 2 0 −1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Dm24 0 0 0 −1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Dm25 0 0 0 0 0 −1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
Dm26 0 0 0 0 −1 0 0 0 0 0 −1 0 0 0 0 0 0 0 0 0 0 0 0 0
Dm31 0 0 0 0 0 0 0 −1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
Dm32 0 0 0 0 0 0 0 0 −1 −3 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Dm33 0 0 0 0 0 0 −1 0 0 0 0 3 0 0 0 0 0 0 0 0 0 1 0 0
Dm34 0 0 0 0 0 0 0 0 0 0 −1 0 0 1 0 0 0 0 0 0 0 0 0 0
Dm35 0 0 0 0 0 0 0 0 0 0 0 −1 0 0 1 0 0 0 0 0 0 0 0 0
185
Dm36 0 0 0 0 0 0 0 0 0 −1 0 0 1 0 0 0 0 0 0 0 0 0 0 0
@seismicisolation
@seismicisolation
186
s j j = 103 ×
1358.67 0 0 0 −13 0 −1350 0 0 0 0 0 0 0 0
0 36.583 0 11 0 29.25 0 −29.25 0 0 0 29.25 0 0 0
0 0 924.75 0 −24.75 0 0 0 −24.75 0 −24.75 0 0 0 0
0 11 0 22.75 0 0 0 0 0 −0.75 0 0 0 0 0
−13 0 −24.75 0 59 0 0 0 24.75 0 16.5 0 0 0 0
@seismicisolation
@seismicisolation
The Formalized Methods 187
D j = s−1
jj ×Aj
0.037087 m D j1
−0.010292 m D j2
−0.000101 m D
j3
0.005635 rad D j4
0.026871 rad D j5
0.003675 rad D j6
0.037066 m D
j7
0.000045 m ⇐ D j8
Dj = ANS
−0.067451 m D j9
0.022600 rad D j10
0.037718 rad D
j11
0.008062 rad D j12
0.022425 rad D j13
0.087718 rad D
j14
0.014502 rad D j15
@seismicisolation
@seismicisolation
188 Matrix Structural Analysis and the Finite Element Methods
0.037087
−0.010292
−0.000101
0.005635
0.026871
0.003675
0.037066
0.000045
−0.067451
0.0226
0.037718
" #
Dj 0.008062
Ds = =
Dr 0.022425
0.087718
0.014502
0
0
0
0
0
0
0
0
0
The reaction forces Ar are computed using Equation (3.13), as shown below; the
linear displacements are in m while the rotational ones are in radian.
@seismicisolation
@seismicisolation
The Formalized Methods 189
27.91 kN
15.94 kN
90.76 kN
−60.54 kN m
Ar = Sr j × D j = −132.80 kN m
−1.84 kN m
−27.91 kN
40.94 kN
−0.76 kN
Since there are no fixed-end actions, the member actions Am are obtained from
Equation (3.27), as shown below.
@seismicisolation
@seismicisolation
190 Matrix Structural Analysis and the Finite Element Methods
−90.76 kN
15.94 kN
−27.9 kN
1.84 kN m
−216.52 kN m
12.72 kN m
−27.9 kN
−80.76 kN
40.94 kN
Am = SM × Dm = SM × (Cms × Ds ) =
12.72 kN m
83.71 kN m
−25 kN m
−40.94 kN
−0.76 kN
−27.9 kN
25 kN m
0
0
Scilab/Octave Code
1 % Example 3.10 - Space frame having three members
2 % Formalized Stiffness Method
3
@seismicisolation
@seismicisolation
The Formalized Methods 191
16 % Member lengths
17 Ls = [3, 2, 3] % in m
18
@seismicisolation
@seismicisolation
192 Matrix Structural Analysis and the Finite Element Methods
3.3 PROBLEMS
3.1 List down the steps to analyze a structure using the formalized flexibility method.
What are the differences between the basic- and formalized-flexibility methods?
3.2 List down the steps to analyze a structure using the formalized stiffness method.
What are the differences between the basic- and formalized stiffness methods?
3.3 (a) What are primary and basic structures? (b) Define the action-transformation
matrix. (c) Define the displacement transformation matrix.
3.4 Analyze the two-span beam in Problem 2.5 using the formalized flexibility
method.
@seismicisolation
@seismicisolation
The Formalized Methods 193
3.5 Analyze the two-span beam in Problem 2.6 using the formalized flexibility
method.
3.6 Analyze the plane truss in Problem 2.7 using the formalized flexibility method.
3.7 Analyze the plane truss in Problem 2.8 using the formalized flexibility method.
3.8 Analyze the plane frame in Problem 2.9 using the formalized flexibility method.
3.9 Analyze the grid structure in Problem 2.10 using the formalized flexibility
method.
3.10 Analyze the two span beam in Problem 2.5 using the formalized stiffness
method.
3.11 Analyze the two span beam in Problem 2.6 using the formalized stiffness
method.
3.12 Analyze the plane truss in Problem 2.7 using the formalized stiffness method.
3.13 Analyze the plane truss in Problem 2.8 using the formalized stiffness method.
3.14 Analyze the plane frame in Problem 2.9 using the formalized stiffness method.
3.15 Analyze the grid structure in Problem 2.10 using the formalized stiffness
method.
3.16 Analyze the plane truss given in Figure 3.39(a) using the formalized flexibility
method considering that the reactions at node 1 and 4 as well as the force in member
3 are the redundant. Use L = 3.5 m, P1 = 20 kN and P2 = 35 kN and EA = 120e6
kN for all members (FPS: L = 12 ft, P1 = 4.5 kips and P2 = 8 kips and EA = 27e6
kips for all members).
3.17 Analyze the plane truss given in Figure 3.39(b) using the formalized flexibility
method considering the reactions at node 3 and the force in member 5 are redundant
actions. L = 12 ft, P1 = 4.5 kips, P2 = 8 kips and EA = 27e6 kips for all members (SI:
Use L = 3.5 m, P1 = 20 kN and P2 = 35 kN and EA = 120e6 kN for all members).
3.18 Analyze the beam given in Figure 3.39(c) using the formalized flexibility method
considering the reactions at nodes 2 and 3 are the redundant actions. Use L1 = L2
= 2(L3) = 6 m, w = 25 kN/m, E = 120 GPa and I1 = 2(I2)/3 = I3 = 50e6 mm4 (FPS:
Use L1 = L2 = 2(L3) = 20 ft, w = 2 kips/ft, E = 17,500 ksi and I1 = 2(I2)/3 = I3 =
120 in4 ).
3.19 Analyze the plane frame given in Figure 3.39(d) using the formalized flexibility
method considering the reactions at nodes 1, 4 and 6 are the redundant actions. Use
Use L = 20 ft, w = 1000 lb/ft, E = 30,000 ksi, A = 40 in2 and I = 150 in4 (SI: L = 4
m, w = 12 kN/m, P = 60 kN E = 207 GPa, A = 25,000 mm2 and I = 60e6 mm4 ).
@seismicisolation
@seismicisolation
194 Matrix Structural Analysis and the Finite Element Methods
3.20 Analyze the grid structure shown in Figure 3.39(e) using the formalized flexi-
bility method considering the reactions at nodes 2, 6 and 7 as well as the internal
forces in member 4-5 are the redundant actions. Use L = 3 m, E = 210 GPa, P = 80
kN, Mx1 = Mx2 = 20 kN-m, I = 500e6 mm4 and J = 900e6 mm4 for members 2–3
and 4–5, I = 300e6 mm4 and J = 500e6 mm4 for remaining five members (FPS: Use
L = 10 ft, E = 30,000 ksi, P = 2 kips, Mx1 = Mx2 = 15 kip-ft, I = 1200 in4 and J =
2200 in4 for members 2–3 and 4–5, I = 720 in4 and J = 1200 in4 for remaining five
members).
3.21 Analyze the space truss given in Figure 3.39(f) using the formalized flexibility
method considering the force in members 1–4 is the redundant action. Use L = 18
@seismicisolation
@seismicisolation
The Formalized Methods 195
3.23 Analyze the plane truss given in Problem 3.16 using the formalized stiffness
method.
3.24 Analyze the plane truss given in Problem 3.17 using the formalized stiffness
method.
3.25 Analyze the beam given in Problem 3.18 using the formalized stiffness method.
3.26 Analyze the plane frame given in Problem 3.19 using the formalized stiffness
method.
3.27 Analyze the grid structure given in Problem 3.20 using the formalized stiffness
method.
3.28 Analyze the space truss given in Problem 3.21 using the formalized stiffness
method.
3.29 Analyze the space frame given in Problem 3.22 using the formalized stiffness
method.
@seismicisolation
@seismicisolation
4 The Direct Stiffness
Method
4.1 INTRODUCTION
The direct stiffness method (DSM) is the standard method in the matrix structural
analysis, and it serves as the basis for structural analysis using the displacement
method. The DSM starts analysis by selecting a global coordinate system (GCS) for
the whole structure. Then, identifying and numbering the elements as well as the
global (free and restrained) DOFs of the given structure is performed, followed by
computing element stiffness matrices of each member in the selected GCS relating
the displacements and actions at both ends of the member. This is quite, different
from what has been discussed as element stiffness in the previous chapter; where the
action am and displacement dm of the member at node-2 were related by the element
stiffness matrix Sm , see Equation (3.20). The assembly process (combining element
stiffness matrices into a large structure matrix) relates the displacements and actions
of the structure along the selected GCS, resulting in a singular matrix Ss . Applying
the support boundary conditions (Dr = 0) by partitioning this matrix results in a
non-singular modified structure stiffness matrix S j . After determining the nodal load
vector A j (both from applied joint loads and member fixed-end-actions converted
into equivalent nodal loads), the free joint displacements of the structure (D j ) can be
easily solved for using the Equation (4.1).
After studying the chapter, the reader will be able to:
• Identify and number the members, nodal displacements and the correspond-
ing actions in prismatic structures
• Derive the complete stiffness matrix of bar, spring and beam elements
• Derive the complete stiffness matrix of the plane truss, plane frame and grid
elements in the local and global coordinates
• Derive the complete stiffness matrix of space truss and space frame ele-
ments in the local and global coordinates
• Assemble the structure stiffness matrix by “selectively adding” the element
stiffness
• Assemble the nodal load vector of a given structure using the equivalent
nodal load principle
• Apply the given boundary conditions and solve for the nodal displacements
of any framed (prismatic) structure
• Determine the structure reaction forces and the member forces to complete
the structural analysis using the DSM
D j = S−1
j ×Aj (4.1)
DOI:10.1201/9781003329350-5@seismicisolation
@seismicisolation 196
The Direct Stiffness Method 197
1 1D ⇒ Only one axis is needed to describe each member of the structure and also all the forces and
displacements involved.
@seismicisolation
@seismicisolation
198 Matrix Structural Analysis and the Finite Element Methods
Since a bar element has two degrees of freedom, its stiffness matrix is the 2 × 2
matrix shown in Equation (4.3).
EA EA
L −
L
s=
EA
(4.3)
EA
−
L L
4.2.2 Beam
A beam element is a two-dimensional (2D) structural member that carries bending-
type actions and has two degrees of freedom at both ends (transverse displacement
and rotation). Figure 4.3(a) shows a beam element with the four DOFs, while in
4.3(b) through (e) show unit displacements exerted along each DOF. Note that d1 and
d3 are linear transverse displacements while d2 and d4 are rotations (conventionally
assumed positive in the counterclockwise direction).
The actions required, i.e., the stiffness of the beam, for each case are computed
and gathered in Equation (4.4).
12EI 6EI 12EI 6EI
L3 −
L2 L3 L2
6EI 4EI 6EI 2EI
−
L2 L2
L L
s=
(4.4)
12EI 6EI 12EI 6EI
− − 2 − 2
L3 L L3 L
6EI 2EI 6EI 4EI
−
L2 L L2 L
@seismicisolation
@seismicisolation
The Direct Stiffness Method 199
@seismicisolation
@seismicisolation
200 Matrix Structural Analysis and the Finite Element Methods
A plane truss element has four degrees of freedom dˆ1 , dˆ2 , dˆ3 and dˆ4 , while the
corresponding force vector contains fˆ1 , fˆ2 , fˆ3 and fˆ4 . The element stiffness matrix
in the local coordinate system (ŝ) is a 4 × 4 matrix given by Equation (4.5) so that
fˆ = ŝ · d.ˆ The zeros in rows 2 and 4 make certain that the truss is not supposed to
carry shear force ( fˆ2 = fˆ4 = 0), while the zeros in columns 2 and 4 are required so
that lateral displacements (dˆ2 and dˆ4 ) do not contribute to member forces.
EA EA
L 0 − 0
L
0 0 0 0
ŝ = (4.5)
EA EA
− 0 0
L L
0 0 0 0
Vector transformation equation is required to transform the local stiffness matrix
into the global coordinate system.
2D Vector Transformation
Figure 4.5 shows a given 2D vector v which can be transformed into any two Carte-
sian coordinates X −Y or x̂ − ŷ.
The relation between the global and local components of the vector v can be
derived as follows.
v̂x = vx · cos(θ ) + vy · sin(θ )
v̂y = vy · cos(θ ) − vx · sin(θ )
In matrix form, this becomes:
" # " # " # " #
v̂x cos(θ ) sin(θ ) vx vx
= × = T∗ × (4.6)
v̂y −sin(θ ) cos(θ ) vy vy
@seismicisolation
@seismicisolation
The Direct Stiffness Method 201
dˆ = T × d
(4.9)
fˆ = T × f
The stiffness matrix of the plane truss element in the global coordinate is thus
derived as follows starting with local stiffness equation.
fˆ = ŝ · dˆ
T · f = ŝ · T · d
T T · T · f = T T · ŝ · T · d
⇒ f = s×d
Where the global stiffness matrix of a plane truss element s is given by 4.10.
s = T T × ŝ × T (4.10)
@seismicisolation
@seismicisolation
202 Matrix Structural Analysis and the Finite Element Methods
4.6. It can be deduced from the previous discussions that a plane frame element can
be considered as combination of beam and plane truss elements. The global stiffness
of a plane frame element is dependent on the length (L), cross-sectional area (A),
moment of inertia (I), modulus of elasticity (E) and its orientation from the global
coordinate system (θ ).
The stiffness matrix of a plane frame element in the local coordinate is a 6 × 6
matrix given in Equation (4.11).
EA EA
L 0 0 − 0 0
L
12EI 6EI 12EI 6EI
0 0 −
L3 L2 L3 L2
6EI 4EI 6EI 2EI
0 0 −
L2 L L2 L
ŝ = (4.11)
EA EA
− 0 0 0 0
L L
12EI 6EI 12EI 6EI
− 3 − − 2
0 0
L L2 L3 L
6EI 2EI 6EI 4EI
0 0 −
L2 L L2 L
To transform the local stiffness matrix into a global one, it is required to use a
modified version of the transformation matrix used for a truss member in Equation
(4.5). Note that the rotation degree of freedoms dˆ3 and dˆ6 need no transformation due
to the member inclination. Thus, the transformation matrix for a plane frame element
is given by Equation (4.12).
@seismicisolation
@seismicisolation
The Direct Stiffness Method 203
cos(θ ) sin(θ )
0 0 0 0
−sin(θ ) cos(θ ) 0 0 0 0
0 0 1 0 0 0
T = (4.12)
0
0 0 cos(θ ) sin(θ ) 0
0 −sin(θ ) cos(θ ) 0
0 0
0 0 0 0 0 1
The global stiffness matrix of a plane frame element is obtained using the same
derivation as in Section 4.2.3 with corresponding values of ŝ from Equation (4.11)
and T from Equation (4.12). Thus, the global stiffness matrix of a plane frame ele-
ment is given by s = T T × ŝ × T .
@seismicisolation
@seismicisolation
204 Matrix Structural Analysis and the Finite Element Methods
@seismicisolation
@seismicisolation
The Direct Stiffness Method 205
The global stiffness of a space truss element is dependent on the length (L), cross-
sectional area (A), modulus of elasticity (E) and its orientations θI jˆ from the global
axis I to the local axis jˆ. The stiffness matrix of a space truss element in the local
coordinate is a 6 × 6 matrix given in Equation (4.15).
AE AE
L 0 0 − 0 0
L
0 0 0 0 0 0
0 0 0 0 0 0
ŝ =
(4.15)
AE AE
−
L 0 0 L
0 0
0 0 0 0 0 0
0 0 0 0 0 0
3D Vector Transformation
A 3D vector transformation matrix is needed to transform the local stiffness matrix
into a global one.
@seismicisolation
@seismicisolation
206 Matrix Structural Analysis and the Finite Element Methods
FIGURE 4.9 Vector in 3D: (a) Global Components and (b) Local Components.
Figure 4.9 shows a given 3D vector v which is resolved into two Cartesian coor-
dinates X −Y − Z and x̂ − ŷ − ẑ .
Using the rotation angles provided in 4.8, the relation between the global and
local components of the vector v can be derived as follows.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 207
dˆ1
cos(θxx̂ ) cos(θyx̂ ) cos(θzx̂ ) 0 0 0 d1
ˆ
d2 cos(θxŷ ) cos(θyŷ ) cos(θzŷ ) 0 0 0 d2
ˆ
d3 cos(θxẑ ) cos(θyẑ ) cos(θzẑ ) 0 0 0 d3
= ×
ˆ 0 0 0 cos(θxx̂ ) cos(θyx̂ ) cos(θzx̂ ) d4
d4
dˆ 0 0 0 cos(θ x ŷ ) cos(θ yŷ ) cos(θz ŷ ) d5
5
dˆ6 0 0 0 cos(θxẑ ) cos(θyẑ ) cos(θzẑ ) d6
(4.17)
" # " #
λ 0 λ 0
⇒ dˆ = × d and fˆ =
× f (4.18)
0 λ 0 λ
The 6 × 6 matrix in the displacements relationship of Equation (4.17) is called
the transformation matrix (T) used in transforming displacement or force vectors of
a space truss element from the global to the local coordinate system.
As usual, the global stiffness matrix of a space truss element is obtained using
the same derivation as in Section 4.2.3 with corresponding values of ŝ from Equation
(4.15) and T as obtained from Equation (4.19), given by s = T T × ŝ × T .
@seismicisolation
@seismicisolation
208
AE AE
0 0 0 0 0 − 0 0 0 0 0
L L
12EIẑ 6EIẑ 12EIẑ 6EIẑ
0 0 0 0 0 − 3 0 0 0
L3 L2 L L2
12EIŷ 6EIŷ 12EIŷ 6EIŷ
0 0 0 − 0 0 0 − 0 − 0
L3 L2 L3 L2
GJ GJ
0 0 0 0 0 0 0 0 − 0 0
L L
6EIŷ 4EIŷ 6EIŷ 2EIŷ
@seismicisolation
@seismicisolation
The Direct Stiffness Method 209
Considering both ends of a space frame member, there are four displacement
vectors that require coordinate transformation, as shown below: d1 to d3 linear dis-
placement components at node 1, d4 to d6 rotation components at node 1, d7 to d9
linear displacement components at node 2, and d10 to d12 rotation components at
node 2.
ˆ
d1
d1
ˆ
d2 d2
ˆ
d3 d
3
dˆ
d4
4
dˆ λ 0 0 0
d5
5
dˆ6 0 λ 0 0 d6
=
× (4.21)
dˆ7 0 0 λ 0 d7
dˆ8 0 0 0 d8
λ
ˆ d9
d9
d10
ˆ
d10
d
ˆ 11
d11
dˆ12 d12
@seismicisolation
@seismicisolation
210 Matrix Structural Analysis and the Finite Element Methods
⇒ dˆ = T × d and fˆ = T × f
(4.22)
The transformation matrix (T) for a space frame element shown in Equation
(4.23) is a 12 × 12 matrix composed of the 3 × 3 matrix λ given in Equation (4.16);
0 is a 3 × 3 matrix of all 0s. It is used to transform displacement or force vectors of
a space frame element from the global to the local coordinate system.
λ 0 0 0
0 λ 0 0
T = 0 0 λ 0
(4.23)
0 0 0 λ
Again, the global stiffness matrix of a space frame element is obtained using the
same derivation as in Section 4.2.3 with corresponding values of ŝ from Equation
(4.20) and T as obtained from Equation (4.23), given by s = T T × ŝ × T .
Step 1: Identify and number the global displacements (DJ s) and the reactions
AR s on the structure. Also, number the member, identify their orientation and their
corresponding local DOFs.
Step 2: Compute the global stiffness matrix for each member and index the rows
and columns of each matrices using the values established in Step 1.
Step 3: Assemble the element stiffnesses si into a global structure stiffness ma-
trix S, i.e., selectively add coefficients of all the nm element stiffness based on the
DOFs established in step 1.
nm
[S] = ∑ si (4.24)
i=1
Step 4: Prepare the action vector on the structure; assemble the actions along
DJ into the AJ vector required for the analysis. In the case of member forces (that
are not applied at the joints), compute member fixed-end actions ÂFm in the local
coordinate. These fixed-end actions can also be converted into equivalent nodal loads
in the global coordinates and combined with the nodal loads, as explained in previous
chapters.
Step 5: Partition the structure stiffness equation according to D j s and Ar s to
restrain the supports and solve for the unknown displacements D j s using, the Equa-
tion (4.25).
@seismicisolation
@seismicisolation
The Direct Stiffness Method 211
D j = (S j j )−1 × A j (4.26)
Step 6: Once the free joint displacements D j s are determined, the support reac-
tions are computed using Equation (4.27). If any supported member is subjected to
a fixed-end actions AFr , the fixed-end action component shall also be added to the
reaction from nodal displacements.
Ar = Sr j × D j + AFr (4.27)
Step 7: Finally, each member end action in the local coordinates can be de-
termined using Equation (4.28), by adding the member fixed-end actions (if any)
computed in Step 4 in the local coordinates.
4.4 EXAMPLES
This section contains examples of how to solve structural analysis of DSM type
structures using the direct stiffness method. The examples contain the different types
of elements explained in the previous section.
Example 4.1 Analyze the spring system shown in Figure 4.11(a) using the DSM
method. The spring constants are k1 = 500 N/mm, k2 = 600 N/mm, k3 = 400 N/mm,
k4 = 800 N/mm, k5 = 650 N/mm, and let P1 = 1kN and P2 = 2kN.
@seismicisolation
@seismicisolation
212 Matrix Structural Analysis and the Finite Element Methods
FIGURE 4.11 Springs: (a) Spring System and Loading and (b) Global Nodes, Ele-
ments and DOFs of the Spring System.
SOLUTION
Step 1: The members, nodes and global DOFs on the structure are numbered as
shown in Figure 4.11(b); the circled are node numbers, while the element numbers
are inside a rectangle. The displacement d1 is restrained (it corresponds to Ar ), while
d2 –d5 are all free joint displacements (D j s).
Step 2: Indexed global stiffness matrices of each member are given below.
1 2 2 3 1 3
" # " # " #
k1 −k1 1 k2 −k2 2 k3 −k3 1
s1 = s2 = s3 =
−k1 k1 2 −k2 k2 3 −k3 k3 3
" 3 4 # " 4 5 #
k4 −k4 3 k5 −k5 4
s4 = s5 =
−k4 k4 4 −k5 k5 5
@seismicisolation
@seismicisolation
The Direct Stiffness Method 213
1 2
2 3
Connectivity =
1 3
3 4
4 5
Step 3: Selectively adding the element stiffness matrix si into a global structure
stiffness matrix results in the following assembled stiffness matrix S.
1 2 3 4 5
k1 + k3 −k1 −k3 0 0 1
−k1 −k2
k1 + k2 0 0 2
S = −k3 −k2 k2 + k3 + k4 −k4 0 3
0
0 −k4 k4 + k5 −k5
4
0 0 0 −k5 k5 5
Using the given numerical values, the global stiffness matrix of the system S and
the partitioned S j j and Sr j become.
900 −500 −400 0 0
−500 1100 −600
0 0
S = −400 −600 1800 −800 0
0
0 −800 1450 −650
0 0 0 −650 650
" #
Srr Sr j
S=
S jr Sjj
1100 −600 0 0
−600 1800 −800 0
⇒ Sjj =
0
−800 1450 −650
0 0 −650 650
Sr j = −500 −400 0 0
@seismicisolation
@seismicisolation
214 Matrix Structural Analysis and the Finite Element Methods
P2 2000
Step 5: The structure stiffness equation and the partitioned (modified) version are
shown below, while the unknown displacements D j s are determined using Equation
(4.26) as shown below.
Ar 900 −500 −400 0 0 d1
0 −500 1100 −600
0 0 d2
1000 = −400 −600 1800 −800 0 × d3
0 0
0 −800 1450 −650 d4
−1
d2 1100 −600 0 0 0
d3 −600 1800 −800 0 1000
d = 0
×
4 −800 1450 −650
0
d2 2.432
d3 4.459
⇒ =
d 6.959 mm ANS
4
d5 10.036
⇒ Ar = [Sr j ] × [D j ] = 3000 N
@seismicisolation
@seismicisolation
The Direct Stiffness Method 215
Step 7: Member forces in the local coordinates in Newtons are determined using
Equation (4.28), in which si is computed in Step 2, and Dmi are member displace-
ments identified from the D j s solved above, shown below.
Therefore, the member forces at both ends of each member in Newtons are given
in the following table:
Member 1 2 3 4 5
Node-1 −1216.216 −1216.216 −1783.783 −2000 −2000
Node-2 1216.216 1216.216 1783.783 2000 2000
The corresponding Scilab code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 // Example 4.1 - Spring System
2 // Direct Stiffness Method
3
@seismicisolation
@seismicisolation
216 Matrix Structural Analysis and the Finite Element Methods
17
18 // Partitioning S
19 Srj = S(1,2:5)
20 Sjj = S(2:5,2:5)
21
22 // Nodal actions
23 Aj = [0; P1; 0; P2]
24
Example 4.2 The bar structure Figure 4.12(a) is subjected to the force F = 4 kips
and a temperature increase of ∆T = 36o F on all members. Analyze the structure
using the DSM for A1 = 0.2 in2 , A2 = 0.15 in2 , A3 = 0.1 in2 , E = 29,000 ksi, and
coefficient of thermal expansion α = 6.67 × 10−6 /o F.
SOLUTION
Step 1: The members, nodes and global DOFs on the structure are numbered as
shown in Figure 4.12(b); the circled are node numbers, while the element numbers
are inside a square. Displacements d1 and d4 are restrained (they correspond to Ar ),
while d2 and d3 are free joint displacements (D j s).
Step 2: Indexed global stiffness matrices of each member are as given below.
1 2 2 3
! ! ! !
AE AE AE AE
− 1 − 2
L L
L L
1 1 2 2
s1 = s2 =
! ! ! !
AE AE AE AE
2 3
− −
L L L L
1 1 2 2
@seismicisolation
@seismicisolation
The Direct Stiffness Method 217
FIGURE 4.12 Bar Elements: (a) 1D Structure and Loading and (b) Its Global Nodes
and DOFs
3 4
! !
AE AE
− 3
L L
3 3
s3 =
! !
AE AE
4
−
L L
3 3
Step 3: Selectively adding the element stiffness matrix si into a global structure
stiffness matrix results in the following assembled stiffness matrix S.
1 2 3 4
! !
AE AE
− 0 0 1
L L
1 1
! ! ! !
AE AE AE AE
− −
+ 0 2
L L L L
1 1 2 2
S=
! ! ! !
AE AE AE AE
0 − + − 3
L L L L
2 2 3 3
! !
AE AE
0 0 − 4
L L
3 3
@seismicisolation
@seismicisolation
218 Matrix Structural Analysis and the Finite Element Methods
1450 −1450 0 0
−1450 2900 −1450 0
S=
0
−1450 2610 −1160
0 0 −1160 1160
Step 4: The bar members are all subjected to a temperature increase of 36o F.
Thus, the members are subjected to fixed-end actions (compressive forces) given by
the following relationship.
AFmi = α · ∆T · Ai · E
AFm1 = 1.3927 k
AFm2 = 1.0445 k
AFm3 = 0.6963 k
The fixed-end actions and the equivalent nodal loads are shown in Figure 4.13
(a) and (b), respectively.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 219
FIGURE 4.13 (a) Fixed-End-Actions and (b) Equivalent Nodal Loads Due to the
Temperature Increase.
@seismicisolation
@seismicisolation
220 Matrix Structural Analysis and the Finite Element Methods
Member 1 2 3
Node-1 −0.5207 −0.5207 3.4793
Node-2 0.5207 0.5207 −3.4793
(Tension) (Tension) (Compression)
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 % Example 4.2 - 1D Bar Structure
2 % Direct Stiffness Method
3 clc; clear
4 % Common units for analysis: Force in kips, Length in inches
5
15 % Length, in
16 L1 = 4, L2 = 3, L3 = 2.5;
17
@seismicisolation
@seismicisolation
The Direct Stiffness Method 221
26 s = [1 -1;-1 1];
27 s1 = k1*s; s2 = k2*s; s3 = k3*s;
28
32 S(1:2,1:2) = s1;
33 S(2:3,2:3) = S(2:3,2:3) + s2;
34 S(3:4,3:4) = S(3:4,3:4) + s3
35
46 % Nodal actions
47 Aj = [AmF1 - AmF2; F + AmF2 - AmF3]
48
Example 4.3 Analyze the beam shown in Figure 4.14(a) using the DSM. The roller
support at B has undergone a downward settlement of ∆ = 4 mm. Use P = 80 kN, w
= 20 kN/m and EI = 2000 kN · m2 .
@seismicisolation
@seismicisolation
222 Matrix Structural Analysis and the Finite Element Methods
FIGURE 4.14 Beam: (a) Beam and Loading and (b) All Nodal Displacement
Components.
SOLUTION
Step 1: The beam has four nodes, three elements and eight possible global DOFs.
The members, nodes and global DOFs are numbered as shown in Figure 4.14(b);
the circled are node numbers while the element numbers are inside a square. The
displacements d1 , d2 , d3 and d5 are restrained (they correspond to Ar ), while d4 , d6 , d7
and d8 are free joint displacements (D j s).
Step 2: The element stiffness matrix of each member in the local/global is com-
puted using Equation (4.4).
The connectivity matrix for the element and structure DOFs is given below, each
row corresponds to the DOFs of each beam element in the structure, starting with
the first element.
1 2 3 4
Connectivity = 3 4 5 6
5 6 7 8
Step 3: Element stiffness matrices si are selectively added to determine the as-
sembled structure stiffness matrix shown below, S.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 223
0.0011 0.0033 −0.0011 0.0033 0 0 0 0
0.0033 0.0133 −0.0033 0.0067 0 0 0 0
−0.0011 −0.0033 0.0040 0.0039 −0.0029 0.0072 0 0
0.0033 0.0067 0.0039 0.0373 −0.0072 0.012 0 0
S=
0 −0.0029 −0.0072 0.0329 0.0228 −0.03 0.03
0 0 0.0072 0.012 0.0228 0.064 −0.03 0.02
0 0 0 0 −0.03 −0.03 0.03 −0.03
0 0 0 0 0.03 0.02 −0.03 0.04
This global stiffness matrix S relates the action vector on the structure to the
corresponding displacements vector as shown in the following equation.
Ar1 0
0
Ar2
A −4 mm
r3
A j1 D j1
= S×
Ar4
0
A j2 D j2
A D
j3 j3
A j4 D j4
As shown in the next step, the −4mm support settlement at d3 can be set to 0 by
converting it into fixed-end actions. Then, the global stiffness matrix S of the beam
can be partitioned into S j j by removing its rows and columns corresponding to Ar .
Step 4: The beam members 1 and 2 are subjected to a support settlement at node
2, in addition to the member forces given. Thus, the members are subjected to fixed-
end actions given in Table 4.1 as computed using the following equations.
TABLE 4.1
Total Fixed-End-Actions on the Beam
Node 1 2L 2R 3L 3R 4
V F (kN) 40 40 50 50 20 20
M F (kN · m) 60 −60 41.67 −41.67 6.67 −6.67
@seismicisolation
@seismicisolation
224 Matrix Structural Analysis and the Finite Element Methods
Member − 1
F = 0.5P +
12EI F = 0.5P −
12EI
V12 ·∆ V21 ·∆
L13 L13
F = 0.125P · L +
6EI F = −0.125P · L +
6EI
M12 1 ·∆ M21 1 ·∆
L12 L12
Member − 2
F = 0.5w · L −
12EI F = 0.5w · L +
12EI
V23 2 ·∆ V32 2 ·∆
L23 L23
F =
w · L22 6EI F =−
w · L22 6EI
M23 − 2 ·∆ M32 − 2 ·∆
12 L2 12 L2
Member − 3
F = 0.5w · L
V34 F = 0.5w · L
V43
3 3
F =
w · L32 F =−
w · L32
M34 M43
12 12
6.67 kN · m
Step 5: The modified (partitioned) structure stiffness equation to solve for the
unknown displacements D j s, as derived in Equation (4.26), is shown below.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 225
−1
d4 3.73 1.2 0 0 19.88
d6 3 1.2 6.4 −3.0 2.0 37.88
d = 10 · 0 ×
7 −3.0 3.0 −3.0
−20.0
d8 0 2.0 −3.0 4.0 6.67
d4 5.62 rad
d6 −0.92 rad
⇒ = 10−3 ×
−21.83 m ANS
d
7
d8 −14.25 rad
42.32 kN
65.08 kN · m
⇒ [Ar ] = [Sr j ] × [D j ] + [AFr ] =
89.92 kN
87.77 kN
Step 7: As shown below, member forces in the local coordinates in kN and kN-m
are determined using Equation (4.28)
where,
0 0 0
0 d4 d6
Dm1 =
0 , Dm2 = 0 and
Dm3 =
d
7
d4 d6 d8
The complete member forces for the beam are shown in Figure 4.15.
@seismicisolation
@seismicisolation
226 Matrix Structural Analysis and the Finite Element Methods
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 % Example 4.3 - Beam Structure
2 % Direct Stiffness Method
3 clc; clear
4 % Common units for analysis: Force in kN, Length in m
5
12 % Length, m
13 len = [6, 5, 2]
14
@seismicisolation
@seismicisolation
The Direct Stiffness Method 227
34
38 S(1:4,1:4) = s1;
39 S(3:6,3:6) = S(3:6,3:6) + s2;
40 S(5:8,5:8) = S(5:8,5:8) + s3
41
@seismicisolation
@seismicisolation
228 Matrix Structural Analysis and the Finite Element Methods
79 Dj = inv(Sjj)*Aj
80
Alternative Solution
The support settlement in this example can be treated directly in the partitioned
structure stiffness equation given in Equation (4.25). Accordingly, for some pre-
scribed (non-zero) support settlement(s), the corresponding set of equations for the
actions and free-joint displacements is given in Equation (4.29).
Aj = S j j · D j + S jr · Dr
⇒ Dj = (S j j )−1 · (A j − S jr · Dr ) (4.29)
Ar = Sr j · D j + Srr · Dr + AFr
The corresponding Octave code for the modified solution is given in the listing
below. Specifically line 20 shows how to formulate the Dr vector; lines 47–64 pro-
vide the partitioning of S into jj, jr, rj and rr; lines 67–82 indicate that the fixed-end
actions shall not include the effect of any support settlement; line 88 gives the so-
lution of D j ; lines 91–96 show how to introduce Dr in the computation of support
reactions Ar and element forces Ami .
Scilab/Octave Code
1 % Example 4.3a - Beam Structure
2 % Direct Stiffness Method
3 % Alternative treatment of support settlement delta
4 clc; clear
5 % Common units for analysis: Force in kN, Length in m
@seismicisolation
@seismicisolation
The Direct Stiffness Method 229
13 % Length, m
14 len = [6, 5, 2]
15
42 S(1:4,1:4) = s1;
43 S(3:6,3:6) = S(3:6,3:6) + s2;
44 S(5:8,5:8) = S(5:8,5:8) + s3
45
@seismicisolation
@seismicisolation
230 Matrix Structural Analysis and the Finite Element Methods
53 %%
54 Sjj(res,:) = [] % Delete the row j
55 Sjj(:,res) = [] % Delete the column j
56 %%
57
@seismicisolation
@seismicisolation
The Direct Stiffness Method 231
Example 4.4 Analyze the plane truss shown in Figure 4.16(a) using the DSM. The
cross-sectional area and the modulus of elasticity of all the members is A = 12 in2
and E = 10,000 ksi and let L = 12 ft and P = 80 kips.
SOLUTION
Step 1: The members, nodes and global DOFs on the truss are numbered as shown in
Figure 4.16(b). The displacement d2 , d3 , d4 and d7 are restrained (they correspond
to Ar ), while the remaining four are free joint displacements (D j s).
Step 2: Global stiffness matrices of each member are computed by transforming
the local stiffness matrix of each truss member using Equations (4.5) and (4.10), and
they are given as follows.
1 2 3 4
555.56 0 −555.56 0 1
0 0 0 0 2
s1 =
−555.56 0
555.56 3
0
0 0 0 0 4
√
Member 2: L = 144 2 ′′ , θ = 45o , EA = 120,000 k
1 2 5 6
294.63 294.63 −294.63 −294.63 1
294.63 294.63 −294.63 −294.63 2
s2 =
−294.63 −294.63 294.63
294.63
5
−294.63 −294.63 294.63 294.63 6
@seismicisolation
@seismicisolation
232 Matrix Structural Analysis and the Finite Element Methods
FIGURE 4.16 Plane Truss (a) Plane Truss and Loading and (b) Nodes, Elements
and Global DOFs.
1 2 7 8
0 0 0 0 1
0 833.33 0 −833.33 2
s3 =
0
0 0 0 7
0 −833.33 0 833.33 8
@seismicisolation
@seismicisolation
The Direct Stiffness Method 233
7 8 5 6
833.33 0 −833.33 0 7
0 0 0 0 8
s4 =
−833.33 0 833.33
5
0
0 0 0 0 6
√
Member 5: L = 72 · 22 + 32 , θ = 326.31o , EA = 120,000 k
7 8 3 4
213.35 7
320.02 −213.35 −320.02
8
−213.35 142.23 213.35 −142.23
s5 =
−320.02 213.35 −213.35 3
320.02
213.35 −142.23 −213.35 142.23 4
√
Member 6: L = 72 · 12 + 22 , θ = 296.57o , EA = 120,000 k
3 4 5 6
149.07 −298.14 −149.07 298.14 3
4
−298.14 596.28 298.14 −596.28
s6 =
−149.07 298.14 149.07 −298.14 5
TABLE 4.2
Global DOFs of the Truss, Connectivity Matrix
Element Node-1 Node-2
1 1 2 3 4
2 1 2 5 6
3 1 2 7 8
4 7 8 5 6
5 7 8 3 4
6 3 4 5 6
@seismicisolation
@seismicisolation
234 Matrix Structural Analysis and the Finite Element Methods
Step 3: Selectively adding the element stiffness matrix si into a global structure
stiffness matrix results in the following assembled stiffness matrix S.
S=
850.18 294.63 −555.56 0 −294.63 −294.63 0 0
0 −294.63 −294.63 −833.33
294.63 1127.96 0 0
−555.56 0 1024.65 −511.49 −149.07 298.14 −320.02 213.35
0 0 −511.49 738.52 298.14 −596.28 213.35 −142.23
−294.63 −294.63 −149.07 298.14 1277.03 −3.51 −833.33 0
−294.63 −294.63 298.14 −596.28 −3.51 890.91 0 0
0 −320.02 213.35 −833.33 −213.35
0 0 1153.35
0 −833.33 213.35 −142.23 0 0 −213.35 975.56
Step 4: The plane truss is supported along DOFs 1, 3, 4 and 7 while it is loaded
by 2P and −P along DOF 5 and 6, respectively. Thus, the action vector AJ in the
global coordinates is as shown below.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 235
0 0
2P 160
−P = −80
Aj =
0 0
0 850.18 −294.63 −294.63 0
160 −294.63 1277.03 −3.51 0
×Dj
−80 = −294.63
−3.51 890.91 0
0 0 0 0 975.56
−1
d1 850.18 −294.63 −294.63 0 0
d5 −294.63 1277.03 −3.51 0 160
Dj =
= ×
d6 −294.63 −3.51 890.91 0 −80
d8 0 0 0 975.56 0
d1 0.0154
d5 0.1286
⇒ =
d −0.0842 in ANS
6
d8 0.
@seismicisolation
@seismicisolation
236 Matrix Structural Analysis and the Finite Element Methods
−66.92
−48.81
[Ar ] = [Sr j ] × [D j ] =
84.02 kips
26.59
Step 7: Member forces in the global coordinates in kips are determined using the
equation below that is similar to Equation (4.28), in which si is the global stiffness
matrix computed in Step 2, Dmi are member global displacements identified from the
D j s solved above. The procedure and the results are shown below.
−0.0842 0 −0.0842
Therefore, the member forces at both ends of each member are given in kips in
the following table:
Member 1 2 3 4 5 6
Node-1 8.55 −12.09 0 −107.17 0 −99
Node-2 −8.55 12.09 0 107.17 0 99
The corresponding Scilab code showing the complete solution steps is given in
the listing below.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 237
Scilab/Octave Code
1 // Example 4.4 - Plane Truss
2 // Direct Stiffness Method
3
36 Theta = [];
37 // Element stiffness matrices in global coordinate
38 // Element 1
39 L = 1.5*12*12; theta = 0
40 s1 = getT(theta)'*gets(E,A,L)*getT(theta)
41 Theta(1) = theta // save thetas for future use
42 // Element 2
@seismicisolation
@seismicisolation
238 Matrix Structural Analysis and the Finite Element Methods
43 L = sqrt(2)*12*12; theta = 45
44 s2 = getT(theta)'*gets(E,A,L)*getT(theta)
45 Theta(2) = theta
46 // Element 3
47 L = 12*12; theta = 90
48 s3 = getT(theta)'*gets(E,A,L)*getT(theta)
49 Theta(3) = theta
50 // Element 4
51 L = 12*12; theta = 0
52 s4 = getT(theta)'*gets(E,A,L)*getT(theta)
53 Theta(4) = theta
54 // Element 5
55 L = 12*sqrt(12^2+18^2); theta = 360 - atand(1/1.5)
56 s5 = getT(theta)'*gets(E,A,L)*getT(theta)
57 Theta(5) = theta
58 // Element 6
59 L = 12*sqrt(12^2+6^2); theta = 360 - atand(2)
60 s6 = getT(theta)'*gets(E,A,L)*getT(theta)
61 Theta(6) = theta
62
@seismicisolation
@seismicisolation
The Direct Stiffness Method 239
88 idx = conn(5,:);
89 S = assemble(s5,idx,S);
90 // indices for element 6
91 idx = conn(6,:);
92 S = assemble(s6,idx,S);
93
98
102
Example 4.5 Analyze the plane frame shown in Figure 4.17(a) using the DSM. For
all members, take E = 200 GPa, A = 13,000 mm2 and I = 760e6 mm4 .
@seismicisolation
@seismicisolation
240 Matrix Structural Analysis and the Finite Element Methods
SOLUTION
Step 1: The plane frame has four nodes, three elements and twelve possible global
DOFs. The members, nodes and global DOFs are numbered as shown in Figure
4.17(b); the circled are node numbers, while the element numbers are inside a
square. The displacements d1 , d2 , d3 , d7 , d1 0, d1 1 and d1 2 are restrained (they cor-
respond to Ar ), while d4 , d5 , d6 and d8 are free joint displacements (D j s).
Step 2: The element stiffness matrix of each plane frame member in the global
coordinate system is computed from Equation (4.11) transforming it using Equation
4.12, and they are given as follows.
FIGURE 4.17 (a) Plane frame and Loading and (b) Nodes, Elements and Global
DOFs.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 241
√
Member 1: L = 12 2 m, θ = 45o , E = 200e6 kN/m2 , A = 13e−3 m2 , I = 760e−6 m4
1 2 3 4 6 5
76.88 76.32 -3.36 -76.88 -76.32 -3.36 1
76.32 76.88 3.36 -76.32 -76.88 3.36
2
-3.36 3.36 53.74 3.36 3
-3.36 26.87
s1 = 103 ×
-76.88 -76.32
3.36 76.88 76.32 3.36 4
-76.32 -76.88 -3.36 76.32 76.88 -3.36 5
4 5 6 7 8 9
216.67 0 0 −216.67 0 4
0
0 1.06 6.33 0 −1.06 6.33 5
0 6.33 50.67 0 −6.33 25.33
6
s2 = 103 ×
−216.67 0 0 216.67 0 0
7
0 −1.06 −6.33 0 1.06 −6.33 8
0 6.33 25.33 0 −6.33 50.67 9
7 8 9 10 11 12
1.06 0 6.33 −1.06 0 6.33 7
0
216.67 0 0 −216.67 0 8
6.33 0 50.67 −6.33 0 25.33
9
s3 = 103 ×
−1.06 0 −6.33 1.06 0 −6.33
10
0 −216.67 0 0 216.67 0 11
The connectivity matrix for the elements and the structure DOFs is given below.
@seismicisolation
@seismicisolation
242 Matrix Structural Analysis and the Finite Element Methods
1 2 3 4 5 6
Connectivity = 4 5 6 7 8 9
7 8 9 10 11 12
Step 3: Element stiffness matrices si are selectively added to determine the as-
sembled structure stiffness matrix S shown below.
This global stiffness matrix S relates the action vector on the structure to the cor-
responding displacements vector as shown in the following equation.
Ar1 0
Ar2 0
Ar3
0
A j1
D j1
A j2
D j2
A j3 D j3
= S×
Ar4
0
A j4
D j4
A j5
D j5
Ar5 0
Ar6
0
Ar7 0
Then, the global stiffness matrix S of the plane frame can be partitioned into
S j j , Sr j , S jr and Srr by selecting appropriate rows and columns corresponding to
A j orAr , as listed below.
656.33 210.33 26.87 0 0
210.33 231.44 −1.54 −8.44
25.33
S j j = 103 × 26.87 −1.54 253.33 −25.33 50.67
0
−8.44 −25.33 441.78 −25.33
0 25.33 50.67 −25.33 202.67
@seismicisolation
@seismicisolation
76.88 76.32 -3.36 -76.88 -76.32 -3.36 0 0 0 0 0 0
76.32 76.88 3.36 -76.32 -76.88 3.36 0 0 0 0 0 0
The Direct Stiffness Method
-3.36 3.36 53.74 3.36 -3.36 26.87 0 0 0 0 0 0
-76.88
-76.32 3.36 293.55 76.32 3.36 -216.67 0 0 0 0 0
-76.32
-76.88 -3.36 76.32 77.94 2.97 0 -1.06 6.33 0 0 0
-3.36 3.36 26.87 3.36 2.97 104.41 0 -6.33 25.33 0 0 0
S = 103 ×
0 0 0 -216.67 0 0 217.72 0 6.33 -1.06 0 6.33
0 0 0 0 -1.06 -6.33 0 217.72 -6.33 0 -216.67 0
@seismicisolation
@seismicisolation
0 0 0 0 6.33 25.33 6.33 -6.33 101.33 -6.33 0 25.33
0 0 0 0 0 0 -1.06 0 -6.33 1.06 0 -6.33
0 0 0 0 0 0 0 -216.67 0 0 216.67 0
0 0 0 0 0 0 6.33 0 25.33 -6.33 0 50.67
243
244 Matrix Structural Analysis and the Finite Element Methods
−223 −210.33 26.87 −433.33 0 0 0
−210.33 −223 −26.87
0 0 0 0
3
S jr = 10 × −26.87 26.87 76 0 0 0 0
0 0 0 0 0 −433.33 0
0 0 0 25.33 −25.33 0 50.67
210.33 −26.87
223 0 0 0 0
210.33 223 26.87 0 0 0 0
−26.87 26.87 152 0 0 0 0
3
Srr = 10 × 0 0 0 441.78 −8.44 0 25.33
−8.44 −25.33
0 0 0 8.44 0
0 0 0 0 0 433.33 0
@seismicisolation
@seismicisolation
The Direct Stiffness Method 245
TABLE 4.3
Total Fixed-End-Actions on the Plane Frame
Node 1 2L 2R 3L 3R 4
Step 4: The plane frame members 1 and 2 are subjected to fixed-end actions given
in Table 4.3 as computed using the following equations.
F =
w · L12 F =−
w · L12
M12 M21
12 12
Member − 2
F = 0.5P
V23 F = 0.5P
V32
F = 0.125P · L
M23 F = −0.125P · L
M32
2 2
The fixed-end actions in the local coordinate for member 1 have to be trans-
formed into the global coordinate using the following transformation relationship:
AFglobal = T T × AFlocal .
@seismicisolation
@seismicisolation
246 Matrix Structural Analysis and the Finite Element Methods
Step 5: The modified (partitioned) structure stiffness equation to solve for the
unknown displacements D j s, as derived in Equation (4.26), is shown below.
−1
d4 656.33 210.33 26.87 0 0 144.
210.33 231.44 −1.54 −8.44 −206.5
d5 25.33
3
d6 = 10 · 26.87 −1.54 253.33 −25.33 50.67 × 388.5
d
8
0
−8.44 −25.33 441.78 −25.33
−62.5
d9 0 25.33 50.67 −25.33 202.67 187.5
d4 1.61 m
d5 −4.46 m
⇒ d6 = 3.48 rad × 10−3
d −0.17 m
8
d9 1.25 rad
31.61 kN · m
Step 7: Member forces in the local coordinates in Newtons are determined using
Equation (4.28), as shown below.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 247
TABLE 4.4
Final Member-End-Actions
Member 1 2 3
Node 1 2 1 2 1 2
The corresponding Scilab code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 // Example 4.5 - Plane Frame
2 // Direct Stiffness Method
3
@seismicisolation
@seismicisolation
248 Matrix Structural Analysis and the Finite Element Methods
25
26 EA = E*A; EI = E*I;
27 sh =[EA/L 0 0 -EA/L 0 0
28 0 (12*EI)/L^3 (6*EI)/L^2 0 (-12*EI)/L^3 (6*EI)/L^2
29 0 (6*EI)/L^2 (4*EI)/L 0 -(6*EI)/L^2 (2*EI)/L
30 -EA/L 0 0 EA/L 0 0
31 0 -(12*EI)/L^3 -(6*EI)/L^2 0 (12*EI)/L^3 (-6*EI)/L^2
32 0 (6*EI)/L^2 (2*EI)/L 0 -(6*EI)/L^2 (4*EI)/L]
33
34 s = Tra'*sh*Tra;
35 endfunction
36
61
65
@seismicisolation
@seismicisolation
The Direct Stiffness Method 249
70
71 Sjr = Srj';
72
@seismicisolation
@seismicisolation
250 Matrix Structural Analysis and the Finite Element Methods
FIGURE 4.18 (a) Grid Structure Having three-Members and (b) Its Nodes, Members
and Global DOFs.
Example 4.6 Analyze the grid structure shown in Figure 4.18 using the formalized
stiffness method. All members have E = 29,000 ksi, G = 11,500 ksi; I = 1350 in4 and
J = 250 in4 .
SOLUTION
Step 1: The grid structure has four nodes, three elements and twelve possible global
DOFs. The members, nodes and global DOFs are numbered as shown in Figure
4.18(b); the circled are node numbers, while the element numbers are inside a
square. The displacements d1 , d2 and d3 are free joint displacements (D j s), while
d4 –d12 are restrained (they correspond to Ar ).
Step 2: The element stiffness matrix of each grid member in the global coordinate
system is computed from Equation (4.13) transforming it using Equation (4.14), and
they are given as follows.
Member 1: L = 25 f t, θ = 0o , E = 29, 000 × 144 k/ f t 2 , G = 11, 500 ×
144 k/ f t 2 , I = 1350/124 f t 4 , J = 250/124 f t 4
@seismicisolation
@seismicisolation
The Direct Stiffness Method 251
1 2 3 4 5 6
0.21 −2.61 0.00 −0.21 −2.61 0.00 1
−2.61 43.50 0.00 2.61 21.75 0.00 2
0.00 0.00 0.80 0.00 0.00 −0.80
3
s1 = 103 ×
−0.21 2.61 0.00 0.21 2.61 0.00
4
−2.61 21.75 0.00 2.61 43.50 0.00 5
1 2 3 10 11 12
1.33 0.00 0.00 −1.33 0.00 10.00
0.00
72.50 −7.25 0.00 36.25 7.25 2
0.00 −7.25 0.97 0.00 −7.25 −0.973
s3 = 103 ×
−1.33 0.00 0.00 1.33 0.00 0.00
10
0.00 36.25 −7.25 0.00 72.50 7.25 11
1 2 3 10 11 12
Step 3: Element stiffness matrices si are selectively added to determine the as-
sembled structure stiffness matrix S shown below.
@seismicisolation
@seismicisolation
252
1.82 −4.26 −0.24 −0.21 −2.61 0.00 −0.28 −1.65 0.24 −1.33 0.00 0.00
−4.26 153.30 −8.24 2.61 21.75 0.00 1.65 18.65 0.99 0.00 36.25 7.25
−0.24 −8.24 2.30 0.00 0.00 −0.80 0.24 −0.99 −0.54 0.00 −7.25 −0.97
−0.21 2.61 0.00 0.21 2.61 0.00 0.00 0.00 0.00 0.00 0.00 0.00
−2.61 21.75 0.00 2.61 43.50 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 −0.80 0.00 0.00 0.80 0.00 0.00 0.00 0.00 0.00 0.00
S = 103 ×
−0.28 1.65 0.24 0.00 0.00 0.00 0.28 1.65 −0.24 0.00 0.00 0.00
−1.65 18.65 −0.99 0.00 0.00 0.00 1.65 37.30 0.99 0.00 0.00 0.00
@seismicisolation
@seismicisolation
0.24 0.99 −0.54 0.00 0.00 0.00 −0.24 0.99 0.54 0.00 0.00 0.00
−1.33 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.33 0.00 0.00
0.00 36.25 −7.25 0.00 0.00 0.00 0.00 0.00 0.00 0.00 72.50 7.25
0.00 7.25 −0.97 0.00 0.00 0.00 0.00 0.00 0.00 0.00 7.25 0.97
Matrix Structural Analysis and the Finite Element Methods
The Direct Stiffness Method 253
This global stiffness matrix S relates the action vector on the structure to the
corresponding displacements vector as shown in the following equation.
A j1 D j1
A j2 D j2
A D
j3 j3
Ar1 0
Ar2 0
Ar3 0
= S×
A 0
r4
Ar5 0
Ar6 0
Ar7 0
A 0
r8
Ar9 0
Then, the global stiffness matrix S of the grid can be partitioned into S j j , Sr j , S jr
and Srr by selecting appropriate rows and columns corresponding to A j or Ar , as
listed below.
−4.26 −0.24
1.82
S j j = 103 × −4.26 153.30 −8.24
@seismicisolation
@seismicisolation
254 Matrix Structural Analysis and the Finite Element Methods
S jr = SrTj
0.21 2.61 0.00 0.00 0.00 0.00 0.00 0.00 0.00
2.61 43.50 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.80 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.28
1.65 −0.24 0.00 0.00 0.00
3
Srr = 10 × 0.00 0.00 0.00 1.65 37.30 0.99 0.00 0.00 0.00
0.00 0.00 0.00 −0.24 0.99
0.54 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00 1.33 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 72.50 7.25
0.00 0.00 0.00 0.00 0.00 0.00 0.00 7.25 0.97
F =
w · L12 F =−
w · L12
M12 M21
12 12
Member-2
F =
w · a2 · (6L32 − 8a · L3 + 3a2 ) F =−
w · a3 (4L3 − 3a)
M14 M 41
12L32 12L32
F =
M14 + M41 + w · a(L3 − 0.5a) F = w · a −V
V14 V41 14
L3
TABLE 4.5
Fixed-End-Actions on the Members of the Grid Structure
Member 1 3
Joint 1 2 1 4
@seismicisolation
@seismicisolation
The Direct Stiffness Method 255
The fixed-end actions in the local coordinate for member 1 have to be trans-
formed into the global coordinate using the following transformation relationship:
AFglobal = T T × AFlocal .
−24.616
A j = −3.694
12.5
−1
−4.26 −0.24 −24.616 k
d1 1.82
3
d2 = 10 × −4.26 153.30 −8.24 × −3.694 k − f t
−60.45 in
d1
⇒ d2 = 10−3 × 5.49 rad
d3 −2.15 rad
10.0 k
8.12 k · f t
110.91 k · f t
−1.0 k
F
[Ar ] = [Sr j ] × [D j ] + [Ar ] = −16.97 k · f t
23.49 k · f t
19.16 k
−239.20 k · f t
0.73 k · f t
@seismicisolation
@seismicisolation
256 Matrix Structural Analysis and the Finite Element Methods
TABLE 4.6
Final Member-End-Actions
Member 1 2 3
Local Node 1 2 1 2 1 2
Shear Force (k) −4. 10.0 1.01 −1.01 −17.01 19.17
Twisting Moment (k · f t) 4.38 −4.38 2.47 −2.47 −2.87 2.87
Bending Moment (k · f t) 76.56 98.41 −58.27 28.87 43.86 237.07
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
@seismicisolation
@seismicisolation
The Direct Stiffness Method 257
24 EI = E*I; GJ = G*J;
25 sh =[12*EI/L^3 0 -6*EI/L^2 -12*EI/L^3 0 -6*EI/L^2
26 0 GJ/L 0 0 -GJ/L 0
27 -6*EI/L^2 0 4*EI/L 6*EI/L^2 0 2*EI/L
28 -12*EI/L^3 0 6*EI/L^2 12*EI/L^3 0 6*EI/L^2
29 0 -GJ/L 0 0 GJ/L 0
30 -6*EI/L^2 0 2*EI/L 6*EI/L^2 0 4*EI/L]
31
32 s = Tra'*sh*Tra;
33 endfunction
34
@seismicisolation
@seismicisolation
258 Matrix Structural Analysis and the Finite Element Methods
Example 4.7 Analyze the space truss shown in Figure 4.19(a) using the DSM. All
members have E = 200 GPa, A = 2500 mm2 , and use a = 1 m, b = 1.5 m, c = 2 m, d
= 1.5 m, H = 1.2 m and P = 100 kN.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 259
FIGURE 4.19 (a) A Four Members Space Truss and (b) Nodes, Members and Global
DOFs.
SOLUTION
Step 1: The members, nodes and global DOFs on the space truss are numbered as
shown in Figure 4.19(b). Only the three displacement components at node 1 are free
joint displacements (D j s), while all others (at the pin supports) are restrained.
@seismicisolation
@seismicisolation
260 Matrix Structural Analysis and the Finite Element Methods
TABLE 4.7
Global DOFs of the Truss, Connectivity Matrix
Element Node-1 Node-2
1-2 1 2 3 4 5 6
1-3 1 2 3 7 8 9
1-4 1 2 3 10 11 12
1-5 1 2 3 13 14 15
0 0 0 0 0 0
Member 1-2: From (0, 0, H) m to (−a, −c, 0) m, E = 200 GPa, A = 2500 mm2
1 2 3 4 5 6
30.59 61.19 −36.71 1
36.71 −30.59 −61.19
61.19
122.38 73.43 −61.19 −122.38 −73.432
36.71 73.43 44.06 −36.71 −73.43 −44.06 3
s1 =
−30.59 −61.19 −36.71 30.59 61.19 36.71
4
−61.19 −122.38 −73.43 61.19 122.38 73.43 5
Member 1-3: From (0, 0, H)m to (b, −c, 0)m, E = 200 GPa, A = 2500 mm2
@seismicisolation
@seismicisolation
The Direct Stiffness Method 261
1 2 3 7 8 9
52.75 −70.34 −42.20 −52.75 70.34 1
42.20
−70.34 93.79 56.27 70.34 −93.79 −56.27 2
−42.20 56.27 33.76 42.20 −56.27 −33.763
s2 =
−52.75 70.34 42.20 52.75 −70.34 −42.20
7
70.34 −93.79 −56.27 −70.34 93.79 56.27 8
Member 1-4: From (0, 0, H)m to (b, d, 0)m, E = 200GPa, A = 2500 mm2
1 2 3 10 11 12
77.71 77.71 −62.17 −77.71 −77.71 62.17 1
77.71
77.71 −62.17 −77.71 −77.71 62.17 2
−62.17 −62.17 49.73 62.17 62.17 −49.733
s3 =
−77.71 −77.71 62.17 77.71 77.71 −62.17
10
−77.71 −77.71 62.17 77.71 77.71 −62.17 11
Member 1-5: From (0, 0, H)m to (−a, d, 0)m, E = 200GPa, A = 2500 mm2
1 2 3 13 14 15
49.23 −73.84 59.07 −49.23 73.84 −59.07 1
−73.84 110.76 −88.61 73.84 −110.76 88.61
2
59.07 −88.61 70.89 −59.07 88.61 −70.893
s4 =
−49.23 73.84 −59.07 49.23 −73.84 59.07
13
73.84 −110.76 88.61 −73.84 110.76 −88.61 14
Step 3: Selectively adding the element stiffness matrix si into a global structure
stiffness matrix results in the following assembled stiffness matrix S, in kN/m.
@seismicisolation
@seismicisolation
262 Matrix Structural Analysis and the Finite Element Methods
210.29 −5.28 −8.58 −30.59 −61.19 −36.71 −52.75
−5.28 404.64 −21.08 −61.19 −122.38 −73.43 70.34
−8.58 −21.08 198.44 −36.71 −73.43 −44.06 42.20
−30.59 −61.19 −36.71 30.59 61.19 36.71 0
−61.19 −122.38 −73.43 61.19 122.38 73.43 0
−36.71 −73.43 −44.06 36.71 73.43 44.06 0
−52.75 70.34 42.20 0 0 0 52.75
S=
70.34 −93.79 −56.27 0 0 0 −70.34 ...
−56.27 −33.76 −42.20
42.20 0 0 0
−77.71 −77.71 62.17 0 0 0 0
−77.71 −77.71 62.17 0 0 0 0
62.17 62.17 −49.73 0 0 0 0
−49.23 73.84 −59.07
0 0 0 0
73.84 −110.76 88.61 0 0 0 0
−59.07 88.61 −70.89 0 0 0 0
70.34 42.20 −77.71 −77.71 62.17 −49.23 73.84 −59.07
−93.79 −56.27 −77.71 −77.71 62.17 73.84 −110.76 88.61
−56.27 −33.76 62.17 62.17 −49.73 −59.07 88.61 −70.89
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
−70.34 −42.20 0 0 0 0 0 0
93.79 56.27 0 0 0 0 0 0
56.27 33.76 0 0 0 0 0 0
0 0 77.71 77.71 −62.17 0 0 0
0 0 77.71 77.71 −62.17 0 0 0
0 0 −62.17 −62.17 49.73 0 0 0
−73.84
0 0 0 0 0 49.23 59.07
0 0 0 0 0 −73.84 110.76 −88.61
0 0 0 0 0 59.07 −88.61 70.89
@seismicisolation
@seismicisolation
The Direct Stiffness Method 263
Given in line #27–33 and #71 of the Scilab/Octave code at the end.
@seismicisolation
@seismicisolation
264 Matrix Structural Analysis and the Finite Element Methods
−0.0214
d1
⇒ d2 = −0.0267 mm ANS
d3 −0.5076
Step 6: The support reaction components at the pin supports are computed using
Equation (4.27).
[Ar ] = [Sr j ] × [D j ]
20.93
41.86
25.11
−22.18
29.57
17.74
⇒ Ar =
−27.82 kN
−27.82
22.26
29.07
−43.61
34.89
Step 7: Member forces in the local coordinates (axial forces) in kN are deter-
mined using the equation below that is similar to Equation (4.28), in which si is
the global stiffness matrix obtained in Step 2, Dmi are member global displacements
identified from the D j s solved above. The procedure and the results are shown below.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 265
Dj
0
Dm1 = Dm2 = Dm3 = Dm4 =
0
0
Therefore, the member forces at both ends of the four members are given in in kN
the following table (all members are under compression as expected).
Member 1 2 3 4
Node-1 53.11 41.00 45.21 62.96
Node-2 −53.11 −41.00 −45.21 −62.96
The corresponding Scilab code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 // Example 4.7 - Space Truss
2 // Direct Stiffness Method
3
12 // Dimensions in m
13 H = 1.2; a = 1; b = 1.5; c = 2; d = 1.5;
14
15 // Nodal coordinates, in mm
16 coord = [ 0 0 H
17 -a -c 0
18 b -c 0
19 b d 0
20 -a d 0]*1000;
21
@seismicisolation
@seismicisolation
266 Matrix Structural Analysis and the Finite Element Methods
24
60 // Direction cosines
61 // dcos = [vecx;0 0 0;0 0 0]
62 dcos = [vecx;vecy;vecz]
63 z = zeros(3,3);
64 Tra = [dcos z;z dcos];
65 eal = E*A/L;
66 s = eal*[1 0 0 -1 0 0;0 0 0 0 0 0; 0 0 0 0 0 0
67 -1 0 0 1 0 0;0 0 0 0 0 0;0 0 0 0 0 0];
68 sg = Tra'*s*Tra;
@seismicisolation
@seismicisolation
The Direct Stiffness Method 267
69
84 // Element 1-3
85 p1 = coord(conn(2,1),:);
86 p2 = coord(conn(2,2),:);
87 idx = conn(2,:); // indices for element 2
88 [L2,T2,s2,sg2,S] = getTLs(p1, p2, E, A, idx, S)
89
90 // Element 1-4
91 p1 = coord(conn(3,1),:);
92 p2 = coord(conn(3,2),:);
93 idx = conn(3,:); // indices for element 3
94 [L3,T3,s3,sg3,S] = getTLs(p1, p2, E, A, idx, S)
95
96 // Element 4
97 p1 = coord(conn(4,1),:);
98 p2 = coord(conn(4,2),:);
99 idx = conn(4,:); // indices for element 4
100 [L4,T4,s4,sg4,S] = getTLs(p1, p2, E, A, idx, S)
101
@seismicisolation
@seismicisolation
268 Matrix Structural Analysis and the Finite Element Methods
Example 4.8 Analyze the space frame shown in Figure 4.20(a) using the DSM. Use
L = 15 ft, B = 8 ft, H = 12 ft, E = 30,000 ksi, G = 11,500 ksi, w = 3 kips/ft, P1
= 25 kips and P2 = 40 kips. The members have rectangular hollow cross-section
of size 8 × 6 × 3/8′′ for the longer beams, 6 × 6 × 3/16′′ for the shorter beams and
6 × 6 × 3/8′′ for the columns.
SOLUTION
Step 1: The global DOFs, the free joint displacements (DJ s) and the member identi-
fying their orientation is shown in Figure 4.20(b). Cross-sectional properties of the
three sections (long beams, short beams and columns) respectively are obtained as
shown below.
Step 2: The 12 × 12 local stiffness matrix for each member is computed accord-
ing to Equation (4.20) using the given values and those cross-sectional properties
obtained above. The element connectivity matrix of the space frame structure is as
given in Table 4.8.
The transformation angles for each section are shown in Table 4.9.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 269
FIGURE 4.20 (a) A Single-Storey One-Bay Rectangular Space Frame and (b) Mem-
bers and Global DOFs of the Space Frame.
@seismicisolation
@seismicisolation
270 Matrix Structural Analysis and the Finite Element Methods
0 0 −1
1 0 0 0 1 0
λ1 = 0 1 0 ; λ2 = 0 1 0 ; λ3 = 0 0 1
0 0 1 1 0 0 1 0 0
And the 12 × 12 transformation matrices Ti for each element is composed by
repeating the λi four times along the diagonal, with all the other elements of Ti
equal zero. And the global stiffness matrix of each frame element is obtained by the
equation si = TiT × ŝi × Ti . Thus, the global stiffness matrix for the columns is S1 , for
the long beams S2 and for the short beams S3 are given below.
TABLE 4.8
Global DOFs of the Space Frame, Connectivity Matrix
Element Node-1 Node-2
1 (5-1) 25 26 27 28 29 30 1 2 3 4 5 6
2 (6-2) 31 32 33 34 35 36 7 8 9 10 11 12
3 (7-3) 37 38 39 40 41 42 13 14 15 16 17 18
4 (8-4) 43 44 45 46 47 48 19 20 21 22 23 24
5 (1-2) 1 2 3 4 5 6 7 8 9 10 11 12
6 (4-3) 19 20 21 22 23 24 13 14 15 16 17 18
7 (2-3) 7 8 9 10 11 12 13 14 15 16 17 18
8 (1-4) 1 2 3 4 5 6 19 20 21 22 23 24
@seismicisolation
@seismicisolation
The Direct Stiffness Method 271
TABLE 4.9
Transformation Angles (in Degrees) of the Space Frame
Elements θX x̂ θY x̂ θZ x̂ θX ŷ θY ŷ θZ ŷ θX ẑ θY ẑ θZ ẑ
Long beams 0 90 90 90 0 90 90 90 0
Short beams 90 90 180 90 0 90 0 90 0
Columns 90 0 90 90 90 0 0 90 90
17773 0 0 0 0 0 −17773
0 55.62 0 0 333.72 0 0
0 −333.72
0 0 55.62 0 0
0 0 0 511.7 0 0 0
0 333.72 0 0 2669.7 0 0
0 0 −333.72 0 0 2669.7 0
S1 =
−17773
0 0 0 0 0 17773 ...
0 −55.62 0 0 −333.72 0 0
0 0 −55.62 0 0 333.72 0
0 0 0 −511.7 0 0 0
0 333.72 0 0 1334.9 0 0
0 0 −333.72 0 0 1334.9 0
0 0 0 0 0
−55.62 0 0 333.72 0
0 −55.62 0 −333.72
0
0 0 −511.7 0 0
−333.72 0 0 1334.9 0
0 333.72 0 0 1334.9
0 0 0 0 0
55.62 0 0 −333.72 0
0 55.62 0 0 333.72
0 0 511.7 0 0
−333.72 0 0 2669.7 0
0 333.72 0 0 2669.7
@seismicisolation
@seismicisolation
272 Matrix Structural Analysis and the Finite Element Methods
41.91 0 0 −314.31 0 0 −41.91
0 66.13 0 0 495.99 0 0
0 0 19875 0 0 0 0
−314.31 0 0 3143.1 0 0 314.31
0 495.99 0 0 4959.9 0 0
0 0 0 0 0 776.53 0 ...
S2 =
−41.91
0 0 314.31 0 0 41.91
0 −66.13 0 0 −495.99 0 0
0 0 −19875 0 0 0 0
−314.31 0 0 1571.5 0 0 314.31
0 495.99 0 0 2480 0 0
0 0 0 0 0 −776.53 0
0 0 −314.31 0 0
−66.132
0 0 495.99 0
0 −19875 0 0 0
0 0 1571.5 0 0
−495.99 0 0 2480 0
0 0 0 0 −776.53
0 0 314.31 0 0
66.132 0 0 −495.99 0
0 19875 0 0 0
0 0 3143.1 0 0
−495.99 0 0 4959.9 0
0 0 0 0 776.53
@seismicisolation
@seismicisolation
The Direct Stiffness Method 273
119.98 0 0 −479.93 0 0 −119.98
0 16348 0 0 0 0 0
0 0 119.98 0 0 479.93 0
−479.93 0 0 2559.6 0 0 479.93
0 0 0 0 490.6 0 0
0 0 479.93 0 0 2559.6 0 ...
S3 =
−119.98
0 0 479.93 0 0 119.98
0 −16348 0 0 0 0 0
0 0 −119.98 0 0 −479.93 0
−479.93 0 0 1279.8 0 0 479.93
0 0 0 0 −490.6 0 0
0 0 479.93 0 0 1279.8 0
0 0 −479.93 0 0
−16348 0 0 0 0
0 −119.98
0 0 479.93
0 0 1279.8 0 0
0 0 0 −490.6 0
0 −479.93 0 0 1279.8
0 0 479.93 0 0
16348 0 0 0 0
0 119.98 0 0 −479.93
0 0 2559.6 0 0
0 0 0 490.6 0
0 −479.93 0 0 2559.6
Step 3: Assemble the element stiffness matrices si into the structure stiffness ma-
trix S, i.e., selectively adding coefficients of all the nm element stiffness based on the
DOFs established in step 1 and connectivity matrix. The structure stiffness matrix
has a size of 48 × 48; it is computed in the complete Octave code at the end of this
example and it will not be shown here in the text.
@seismicisolation
@seismicisolation
274 Matrix Structural Analysis and the Finite Element Methods
Step 4: The action vector AJ on the structure is assembled from the fixed-end
actions and the given nodal loads. For the uniformly distributed load of the long
beams, the fixed-end actions ÂFm in the local coordinate are given as follows.
w · L12
MLF = −MRF = = 56.25 kips f t
12
Combining these equivalent nodal loads to the given nodal actions, the action
vector AJ is given by:
0
−22.5 k
−25 k
0
0
−56.25
0
−22.5
0
0
0
56.25
AJ =
−40
−22.5
0
0
0
56.25
0
−22.5
0
0
0
−56.25
@seismicisolation
@seismicisolation
The Direct Stiffness Method 275
2.34E − 05 in
−4.88E + 00 in
−8.13E + 00 in
−4.63E − 05 rad
−3.78E − 02 rad
6.86E − 02 rad
−7.75E − 05 in
−1.37E + 01 in
−8.13E + 00 in
1.35E − 04 rad
−8.55E − 02 rad
8.26E − 02 rad
⇒ DJ = ANS
−2.69E − 02 in
−1.37E + 01 in
−2.70E + 00 in
2.43E − 04 rad
−8.55E − 02 rad
4.43E − 02 rad
−3.69E − 06 in
−4.88E + 00 in
−2.70E + 00 in
6.18E − 05 rad
−3.78E − 02 rad
3.04E − 02 rad
@seismicisolation
@seismicisolation
276 Matrix Structural Analysis and the Finite Element Methods
Step 6: The support reactions are computed using Equation (4.27). If any sup-
ported member is subjected to a fixed-end actions AFr , this shall also be added to the
reaction from nodal displacements.
Step 7: Member end action in the local coordinates can be determined using
Equation (4.28), by adding the member fixed-end actions computed in Step 4 in the
local coordinates.
Given in line #198–204 of the Scilab/Octave code at the end.
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 % Example 4.8 - Single Storey, One Bay Space Frame
2 % Direct Stiffness Method
3
@seismicisolation
@seismicisolation
The Direct Stiffness Method 277
29
46 s =[AEl, 0, 0, 0, 0, 0, -AEl, 0, 0, 0, 0, 0
47 0, ddz, 0, 0, drz, 0, 0, -ddz, 0, 0, drz, 0
48 0, 0, ddy, 0, 0, -dry, 0, 0, -ddy, 0, 0, -dry
49 0, 0, 0, GJl, 0, 0, 0, 0, 0, -GJl, 0, 0
50 0, drz, 0, 0, rrz, 0, 0, -drz, 0, 0, rrz/2, 0
51 0, 0, -dry, 0, 0, rry, 0, 0, dry, 0, 0, rry/2
52 -AEl, 0, 0, 0, 0, 0, AEl, 0, 0, 0, 0, 0
53 0, -ddz, 0, 0, -drz, 0, 0, ddz, 0, 0, -drz, 0
54 0, 0, -ddy, 0, 0, dry, 0, 0, ddy, 0, 0, dry
55 0, 0, 0, -GJl, 0, 0, 0, 0, 0, GJl, 0, 0
56 0, drz, 0, 0, rrz/2, 0, 0, -drz, 0, 0, rrz, 0
57 0, 0, -dry, 0, 0, rry/2, 0, 0, dry, 0, 0, rry]
58 endfunction
59
@seismicisolation
@seismicisolation
278 Matrix Structural Analysis and the Finite Element Methods
74 sg2 = T2'*s2*T2;
75
86 % Element %1 - column
87 idx = conn(1,:); i = idx(1); k = idx(2);
88 S(6*(i-1)+1:6*i,6*(i-1)+1:6*i) = ...
89 S(6*(i-1)+1:6*i,6*(i-1)+1:6*i) + sg1(1:6,1:6);
90 S(6*(i-1)+1:6*i,6*(k-1)+1:6*k) = ...
91 S(6*(i-1)+1:6*i,6*(k-1)+1:6*k) + sg1(1:6,7:12);
92 S(6*(k-1)+1:6*k,6*(i-1)+1:6*i) = ...
93 S(6*(k-1)+1:6*k,6*(i-1)+1:6*i) + sg1(7:12,1:6);
94 S(6*(k-1)+1:6*k,6*(k-1)+1:6*k) = ...
95 S(6*(k-1)+1:6*k,6*(k-1)+1:6*k) + sg1(7:12,7:12);
96
97 % Element %2 - column
98 idx = conn(2,:); i = idx(1); k = idx(2);
99 S(6*(i-1)+1:6*i,6*(i-1)+1:6*i) = ...
100 S(6*(i-1)+1:6*i,6*(i-1)+1:6*i) + sg1(1:6,1:6);
101 S(6*(i-1)+1:6*i,6*(k-1)+1:6*k) = ...
102 S(6*(i-1)+1:6*i,6*(k-1)+1:6*k) + sg1(1:6,7:12);
103 S(6*(k-1)+1:6*k,6*(i-1)+1:6*i) = ...
104 S(6*(k-1)+1:6*k,6*(i-1)+1:6*i) + sg1(7:12,1:6);
105 S(6*(k-1)+1:6*k,6*(k-1)+1:6*k) = ...
106 S(6*(k-1)+1:6*k,6*(k-1)+1:6*k) + sg1(7:12,7:12);
107
@seismicisolation
@seismicisolation
The Direct Stiffness Method 279
163
@seismicisolation
@seismicisolation
280 Matrix Structural Analysis and the Finite Element Methods
181 Aj = zeros(24,1);
182 Aj(2)=-V; Aj(3)=-P1; Aj(6)=-M; Aj(8)=-V; Aj(12)=M;
183 Aj(13)=-P2; Aj(14)=-V; Aj(18)=M; Aj(20)=-V; Aj(24)=-M;
184
194 Ar = As(25:48)
195
196 AR = reshape(Ar,6,4)
197
@seismicisolation
@seismicisolation
The Direct Stiffness Method 281
4.5 PROBLEMS
4.1 What are the differences between the DSM and the Formalized Stiffness Method?
4.2 What are the differences between the transformation matrix used in the Formal-
ized Stiffness Method vs the DSM?
4.3 List down the steps used to analyze a plane frame using the DSM.
4.4 Can the matrix given below represent the stiffness matrix of a real elastic struc-
ture (Yes/No)? If No, why?
12 3 3 12 3 10
3 0 4 9 0 5
3 4 22 5 0 3
−12 9 5 −32 5 13
3 0 0 5 2 −10
10 5 3 3 −10 1000
4.5 A given structure, having five possible degrees of freedom (d1 , d2 , d3 , d4 , and
d5 ) is found to have the following assembled master stiffness matrix (in force/length
units). DOFs 2 and 4 are the only unrestrained DOFs. Determine the free joint dis-
placements and the support reactions if a single force of 100 units is applied on the
structure along DOF 2.
1 2 3 4 5
20 35 −6 7 −2 1
35 40 5 11 1
2
S = −6 5 15.5 8 −20 3
7 11 8 30 5 4
−2 1 −20 5 10 5
4.6 A linear spring element with stiffness k equals 20 N/mm is subjected to the nodal
displacements shown below. Determine the force in the member for each of the cases.
4.8 Analyze the spring system given in Problem 2.11 using the DSM.
@seismicisolation
@seismicisolation
282 Matrix Structural Analysis and the Finite Element Methods
4.9 Analyze the two-bar structure given in Problem 2.3 using the DSM.
4.10 A plane truss element having an axial stiffness (AE) equals 1600 force units
has its nodal location and partial information (about the nodal displacements and
actions) is given in the table below. Determine the unknown parameters of the ele-
ment (indicated by the ? sign) in each of the cases. Also compute the axial force in
the element. Note that (x, y) are nodal locations in length units, (dx , dy ) are nodal
displacements in ×10−3 length units and ( fx , fy ) are nodal forces, all in a global
coordinate system x-y.
Node-1 Node-2
Case
x y dx dy fx fy x y dx dy fx fy
1 2 1.2 0.75 2 ? ? 5 5.2 −3 4.8 ? ?
2 5 0 0 0 ? 100 1 4 ? ? ? ?
3 −2 5 −0.5 −1 ? ? 1 1 3 −4 ? ?
4 6 8 2 0 ? ? 2 4 ? ? 75 ?
5 2 −1.2 ? ? −50 ? 5 −5.2 5 3 ? ?
6 0 8 1 −5 ? ? 0 4 4 1 ? ?
4.11 A plane frame element has an axial stiffness (AE) of 1600 force units and flex-
ural rigidity (EI) of 200e3 in units of force times length squared. The element has
its nodal locations and incomplete information about the nodal displacements and
actions as given in the table below. Determine the unknown parameters of the el-
ement (indicated by the ? sign) in each of the cases. Also compute the axial force,
shear force and bending moment in the element. Note that (x, y) are nodal loca-
tions in length units, (dx , dy ) are nodal displacements in ×10−3 length units, ( fx , fy )
are nodal forces, all in a global coordinate system x–y and (θ1 , θ2 ) are rotations in
×10−3 radians at nodes 1 and 2, respectively. Note that counterclockwise rotations
are positive.
@seismicisolation
@seismicisolation
The Direct Stiffness Method 283
Node-1
Case
(x, y) dx dy θ1 fx fy m1
1 2, 1.2 1 −2 0.1 ? ? ?
2 5, 0 0 0 0 ? ? ?
3 2, 5 −0.5 −1 −0.2 ? ? ?
4 6, 8 ? ? ? −75 −100 150
5 2, −1.2 ? ? ? 50 ? 25
6 0, 8 1 −5 ? ? ? 0
Node-2
(x, y) dx dy θ2 fx fy m2
1 5, 5.2 1 −2 −0.014 ? ? ?
2 1, 4 ? ? ? 20 −50 20
3 1, 1 1 3 −0.4 ? ? ?
4 2, 4 −1 2.5 −0.5 ? ? ?
5 5, −5.2 −2.5 5 0.3 ? 20 25
6 0, 4 4 4 0.1 ? ? ?
4.12 Analyze the plane truss given in Problem 3.16 using the DSM.
4.13 Analyze the plane truss given in Problem 3.17 using the DSM.
4.14 Analyze the two span beam in Problem 2.6 using the DSM.
4.15 Analyze the beam given in Problem 3.18 using the formalized stiffness method.
4.16 Analyze the grid structure given in Problem 3.20 using the DSM. Members 2–3
and 4–5 are subjected to a uniformly distributed load of 12.5 kN/m (FPS: 1 kip/ft) in
addition to the given loading.
4.17 Analyze the space truss given in Problem 3.21 using the DSM.
4.18 Analyze the space frame given in Problem 3.22 using the DSM.
@seismicisolation
@seismicisolation
5 Special Cases in the Direct
Stiffness Method
5.1 INTRODUCTION
The direct stiffness method (DSM) treated in previous chapter considered only reg-
ular cases with prismatic members supported along the global coordinate direction.
Some special cases and how they could be treated in the DSM are presented here,
like mixed elements in a structure, inclined roller support, using symmetry to ease
the computation, curved or stepped members in a structure.
After studying this chapter, the reader will be able to model and analyze struc-
tures that require special treatment in the DSM. Specifically he/she will be able to:
• Assemble the stiffness matrix of different types of elements within a given
structure
• Analyze a beam supported on soil medium by replacing the supporting soil
with equivalent Winkler’s springs, or use a two parameters-model to con-
sider the shear effect of the soil medium on the beam
• Determine the stiffness matrix of a non-prismatic element using the flexi-
bility approach
• Use different techniques to analyze a structure supported on inclined roller
support(s)
• Modify the stiffness matrix of elements containing some form of disconti-
nuity or release
• Reduce the problem size in the case of symmetric or anti-symmetric struc-
tures
DOI:10.1201/9781003329350-6@seismicisolation
@seismicisolation 284
Special Cases in the Direct Stiffness Method 285
TABLE 5.1
Global DOFs of the Frame, Connectivity Matrix
Element DOFs @ Node-1 DOFs @ Node-2
1-4 1 2 8 9
2-5 3 4 11 12
3-4 5 6 7 8 9 10
4-5 8 9 10 11 12 13
5-6 11 12 13 14 15 16
6-7 14 15 16 17 18 19
DOFs at nodes 4 and 5. The connectivity matrix of the elements of the frame in
Figure 5.1 is provided in Table 5.1.
FIGURE 5.2 (a) Beam on Elastic Foundation and (b) Spring on a Beam Segment.
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 287
Si = se + sg
12 6L −12 6L 36 3L −36 3L
6L
EI 4L2 −6L 2L2
T
3L 4L2 −3L −L2
= +
L3
−12 −6L 12 −6L
30L
−36 −3L 36 −3L
6L 2L2 −6L 4L2 3L −L2 −3L 4L2
(5.1)
Apart from the determination of the element stiffness matrix, the analysis of
beams on elastic foundation using the suggested two parameter model is identical to
the Winkler’s single parameter model. The background information for this model,
the determination of the tensile force, – the subgrade modulus, ks, and model cal-
ibration factors with worked example are discussed in detail in Worku and Habte
(2020) [53]. The model derivation based on continuum idealization of the soil under
the beam is given in detail by Worku (2014) [52].
FIGURE 5.4 Non-Prismatic Elements: (a) Stepped Element, (b) Tapered Element
and (c) Curved Element.
@seismicisolation
@seismicisolation
288 Matrix Structural Analysis and the Finite Element Methods
One of the best solutions to tackle this kind of situation is to determine the flex-
ibility matrix of the element and invert it to obtain the element stiffness as outlined
in the following steps:
1. Take out the non-prismatic element and fix one end as a cantilever
2. Apply unit action(s) along the required DOFs (axial force, shear force, bending
moment, torsion; one at a time)
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 289
FIGURE 5.6 Inclined Roller Support with Rotated Global Coordinate System.
The third and elegant approach would be to use a vector transformation matrix to
modify some of the coefficients of the structure stiffness matrix that correspond to the
roller. Figure 5.8 shows the relation between the global and local (roller) coordinates
for vectors transformation. Assume Si is the part of the structure stiffness matrix S
that corresponds to the inclined roller in the global coordinate system. The following
set of relationships hold:
@seismicisolation
@seismicisolation
290 Matrix Structural Analysis and the Finite Element Methods
FIGURE 5.8 Inclined Roller Support with Local and Global Coordinates.
fx dx
= Si × (5.2)
fy i
dy i
Recall the discussions and derivations in Section 4.3 that the local and global vec-
tors are related by the a transformation (rotation) matrix Ri as shown in the following
relationship.
fˆx dˆx
fx dx
= Ri × and = Ri ×
fˆy i fy i dˆy i dy i
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 291
where
cos θ sin θ
Ri =
− sin θ cos θ
Using the above relationships and noting that RTi = R−1 i , Equation (5.2) can be
used to modify Si , a portion of the global structure stiffness matrix S corresponding
to the roller at i as follows.
fˆx dˆx
Ri T = Si × Ri
T
×
fˆy i dˆy i
fˆx dˆx
T
= Ri × Si × Ri × (5.3)
fˆy i
dˆy i
Si∗ = Ri × Si × Ri T (5.4)
At this stage, it is possible to apply the restrained DOF at the roller dˆy = 0 as
usual. It is helpful to follow the underlying steps to use this method. Also see Solu-
tion B of Example 5.3.
@seismicisolation
@seismicisolation
292 Matrix Structural Analysis and the Finite Element Methods
−1 L−a
1 a
a a2 −a
a(L − a)
3EI
s= 3
(5.5)
L −1
−a 1 −(L − a)
(L − a) a(L − a) −(L − a) (L − a)2
For a specific case where the hinge is at the left support (a = 0), the corresponding
element stiffness matrix becomes as shown in Equation (5.6).
1 0 −1 L
3EI 0 0 0 0
s= 3 (5.6)
L −1 0 1 −L
L 0 −L L2
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 293
5.8 EXAMPLES
Example 5.1 The cantilever and the simply supported beans shown in Figure 5.11
are connected by a bar element 2-4. Analyze the structure using the direct stiffness
method. Use E = 120 GPa, A = 12,000 mm2 , I = 500e6 mm4 for the cantilever beam;
E = 70 GPa, A = 13,000 mm2 for the truss member; E = 120 GPa, A = 20,000 mm2 ,
I = 1200e6 mm4 for the simply supported beam and let w = 24 kN/m.
SOLUTION
Step 1: All the nodes of the given structure have three possible DOFs. The only
special case is to note that the truss member 2–4 doesn’t have a contribution to the
rotational DOFs at the two nodes.
Step 2: The member connectivity matrix for the frame showing the global DOFs is
provided in the following table.
@seismicisolation
@seismicisolation
294 Matrix Structural Analysis and the Finite Element Methods
The element stiffness matrix of each plane frame member is computed from Equa-
tion (4.11). For the truss element, the stiffness matrix in the global coordinate system
is calculated from 4.5 transforming it using Equation (4.7), and they are given as
follows.
0 3.6 6 0 −3.6 12 6
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 295
10 11 12 13 14 15
480 0 0 −480 0 0 1
0 13.82 34.56 0 −13.82 2
34.56
0 34.56 115.2 0 −34.56 3
57.6
s4 = 103 ×
−480 0 0 480 0 0
4
0 −13.82 −34.56 0 13.82 −34.56 5
0 0 0 0 0 115.2 6
@seismicisolation
@seismicisolation
296 Matrix Structural Analysis and the Finite Element Methods
49.70 0.00 0.00
−119.29 0.00 0.00
0.00 0.00 0.00
0.00 0.00 0.00
−34.56 57.60 0.00
−49.70
0.00 0.00
146.94 0.00 34.56
0.00 230.40 57.60
34.56 57.6 115.2
Step 4: The fixed-end actions and the equivalent nodal loads for the uniformly
distributed loading are computed.
The structure action vector AJ (along the free-joint displacements) in the global
coordinates is obtained using equivalent nodal loads as shown below.
T
Aj = 0. 0 0. 0. −50. 0. −120. 0. 50.
Step 5: The structure stiffness equation is then solved for the free joint displace-
ments as shown below.
D j = S−1
jj ×Aj
0.0428 m
−20.5486
m
−6.1646 rad
−0.0064
m
−3
D j = 10 ×
−6.6234
rad ANS
−0.0064
m
−20.6311 m
0
rad
6.6234 rad
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 297
Step 6: The support reactions are computed using Equation (4.27); where Ar f is
the fixed end reactions from member loading and Ar is the support reaction.
−3.08 Ar (kN)
7.40 Ar (kN)
36.99
Ar (kN m)
0
A j (kN)
0
A j (kN)
0 A j (kN)
0
A j (kN)
[As ] = [S] × [Ds ] + [Ar f ] =
116.30
Ar (kN)
−50
A j (kN m)
0 A j (kN)
−120
A j (kN)
0
A j (kN m)
Ar (kN)
3.08
116.3
Ar (kN)
50 A j (kN m)
Step 7: Member forces in the local coordinates are determined using Equation
(4.28), in which si is computed in Step 2 and Dmi are member displacements identified
from the D j s solved above, shown below.
−6.1646
@seismicisolation
@seismicisolation
298 Matrix Structural Analysis and the Finite Element Methods
−0.0064 −0.0064
−
−20.6311
−6.6234 0
−3
Dm3 = 10 × −3
, Dm4 = 10 ×
−0.0064 0
−20.6311 0
− 6.6234
Therefore, the member forces at both ends of each member are given in the fol-
lowing table:
Member Axial force (kN) Shear force (kN) Bending Moment (kN m)
Node-1 −3.08 7.40 36.99
1
Node-2 3.08 7.40 0
Node-1 −8.01 0 −
2
Node-2 8.01 0 −
Node-1 0 116.30 0
3
Node-2 0 3.70 281.51
Node-1 −3.08 3.70 −281.51
4
Node-2 3.08 116.30 0
The corresponding Scilab code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 // Example 5.1 - Plane frame with a bar element mixed-in
2 // Direct Stiffness Method (Special cases)
3 clear; clc;
4
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 299
@seismicisolation
@seismicisolation
300 Matrix Structural Analysis and the Finite Element Methods
58 // Partitioning S;
59 // restrained DOFs are
60 res = [1 2 3 8 13 14];
61
Example 5.2 A tapered bar element has its radius equals R at the free end (on the
left) and 2R at the fixed end (on the right). If its length L and modulus of elasticity E
are constants, determine the axial stiffness of the bar element.
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 301
SOLUTION
The displacement due to unit axial force applied at the free end (i.e., the member
flexibility) can be determined easily as shown below. The inverse of flexibility is thus
the stiffness.
At a distance x from the free-end, the radius and the cross-sectional area are
computed as follows:
x x 2
r = R× 1+ , and Ax = π × r 2 = π × R2 × 1 +
L L
After integrating the strain over the length of the member, the displacement (flex-
ibility) is obtained as follows.
Z L Z L
dx L
u= f = εx dx = =
0 0 E × Ax 2πR2 E
2πR2 E
Therefore, the axial stiffness coefficient of the member is given by, s =
L
And, if a given structure has one/some of its members tapered like this, the corre-
sponding 2 × 2 axial stiffness matrix to be used in the DSM is given by the following
expression.
" #
2πR2 E 1 −1
⇒S=
L −1 1
The corresponding Octave code showing the complete solution steps is given
in the listing below. This particular Octave code is based on symbolic computation
which will be well explained in Section 6.6.
@seismicisolation
@seismicisolation
302 Matrix Structural Analysis and the Finite Element Methods
Scilab/Octave Code
1 %% Example 5.2 - Axial stiffness of tapered member
2 %% Direct Stiffness Method (Special cases)
3 clear; clc;
4
8 %% Symbolic variables
9 syms E L R x real
10
14 %% Strain equation at x
15 ex = 1/(E * Ax)
16
Example 5.3 Analyze the plane frame structure shown in Figure 5.5 using the DSM.
The length of the members are 15 ft, 20 ft and 8 ft for the long column, beam and
short column, respectively. Use E = 29,000 ksi, A = 10 in2 and I = 220 in4 for all
members. Consider a concentrated load of 25 kips applied along DOF-4 together
with a counter clockwise moment of 80 k-ft along DOF-9 as shown in the figure
below; and the roller surface is inclined at 45o .
SOLUTION A
The first solution will be done using the member replacement method. The roller will
be replaced by an additional axially rigid frame member having√a comparable length
to the other members in the structure (for this example L = 5 2, A = 1e8 in2 , I =
1e-6 in4 and E = 29,000 ksi).
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 303
Step 1: The DOFs are indicated in Figure 5.8. The additional rigid member (4-5)
to replace the roller support requires a new node (#5) which shall be fully restrained.
Step 2: The member connectivity matrix for the frame showing the global DOFs
is provided in the following table. Note that all members, including the substituted
member, are frame elements.
The element global stiffness matrix of each plane frame member is computed
from Equation (4.11) and Equation (4.12) using the expression s = T T × ŝ × T . For
the truss element, the stiffness matrix in the global coordinate system is calculated
from Equation (4.5) transforming it using Equation (4.7), and they are given as fol-
lows.
1 2 3 4 5 6
0.013 0 −1.181 −0.013 0 −1.181 1
0 1.611 0 0 −1.611 0
2
−1.181 0 141.778 1.181 0 70.889
3
s1 = 103 ×
−0.013 0 1.181 0.013 0 1.181
4
0 −1.611 0 0 1.611 0 5
−1.181 0 70.889 1.181 0 141.778 6
@seismicisolation
@seismicisolation
304 Matrix Structural Analysis and the Finite Element Methods
4 5 6 7 8 9
1.208 0 0 −1.208 0 0 4
0 0.006 0.665 0 −0.006 5
0.665
0 0.665 106.333 0 −0.665 6
53.167
s2 = 103 ×
−1.208 0 0 1.208 0 0
7
0 −0.006 −0.665 0 0.006 −0.665 8
0 0.665 53.167 0 −0.665 106.333 9
Member 3: frame L = 96′′ , E = 29,000 ksi, A = 10 in2 , I = 220 in4 , theta = 270
7 8 9 10 11 12
0.087 0 4.154 −0.087 0 7
4.154
0 3.021 0 0 −3.021 0 8
4.154 0 265.833 −4.154 9
0 132.917
s3 = 103 ×
−0.087 0 −4.154 0.087 0 −4.154
10
0 −3.021 0 0 3.021 0 11
4.154 0 132.917 −4.154 0 265.833 12
√ ′′
Member 4: frame L = 2 , E = 29,000 ksi, A = 1e6 in2 , I = 1e-6 in4 , theta = 315
10 11 12 13 14 15
205.06 −205.06 0 −205.06 205.06 0 10
−205.06 205.06 0 205.06 −205.06 0
11
0 0 0 0 0 0
12
s4 = 106 ×
−205.06 205.06 0 205.06 −205.06 0
13
205.06 −205.06 0 −205.06 205.06 0 14
0 0 0 0 0 0 15
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 305
Step 3: Selectively adding the element stiffness matrix si into a global structure
stiffness matrix results in the assembled stiffness matrix S.
The free-joint displacements (DOFs) of the structure are (d4 to d12 ) at nodes 2,
3, and 4; Nodes 1 and the newly added node 1 are fixed. After applying the boundary
conditions, the modified stiffness matrix S j j is obtained as shown below.
1.221 0 1.181 −1.208 0
0 1.617 0.665 0 −0.006
1.181
0.665 248.111 0 −0.665
−1.208 0 0 1.295 0
S j j = 103 ×
0 −0.006 −0.665 0 3.026 ...
0 0.665 53.167 4.154 −0.665
0 0 0 −0.087 0
0 0 0 0 −3.021
0 0 0 4.154 0
0 0 0 0
0.665 0 0 0
53.167 0 0 0
4.154 −0.087 0 4.154
−0.665 0 −3.021 0
372.167 −4.154 0 132.917
−4.154 10253048 −10253048 −4.154
0 −10253048 10253051 0
132.917 −4.154 0 265.833
Step 4: The structure action vector AJ (along the free-joint displacements) in the
global coordinates is obtained using equivalent nodal loads as shown below.
T
Aj = 25 0 0 0 0 50 0 0 0
@seismicisolation
@seismicisolation
306 Matrix Structural Analysis and the Finite Element Methods
Step 5: The modified structure stiffness equation is then solved for the free joint
displacements as shown below.
D j = S−1
jj ×Aj
1.63 in
0.01
in
0.00 rad
1.62
in
= 10−3 ×
1.85
in
0.01 rad
1.85 in
1.85
in
0.00 rad
√
The roller moves up the surface 1.852 + 1.852 = 2.616 inches, and the rotation
of the roller end of the structure is actually 0.353e-3 rad, depicted as 0.00 above in
the Dj vector because of rounding the small number.
Step 6: Once the displacements are determined, the complete structure actions
vector As (A j together with the support reactions) is computed using the following
relationship.
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 307
−16.36 Ar (k)
−8.63 Ar (k)
1622.26 A (k in)
r
25. A j (k)
0 A j (k)
0 A j (k in)
A j (k)
0
[As ] = [S] × [Ds ] =
A j (k)
0
80. A j (k in)
0 A j (k)
A j (k)
0
A j (k in)
0
−8.63 Ar (k)
Ar (k)
8.63
0 Ar (k in)
p
The reaction force at the roller becomes (−8.63)2 + 8.632 = 12.21 kips.
Step 7: Member forces in the local coordinates are determined using Equation
(4.28), in which si is computed in Step 2 and Dmi are member displacements identified
from the Ds s solved above, shown below.
−0.0042154 0.0065897
@seismicisolation
@seismicisolation
308 Matrix Structural Analysis and the Finite Element Methods
1.6188479 1.8523123
1.8494538 1.8523123
0.0065897 0353
Dm3 = , Dm4 =
1.8523123 0
1.8523123 0
0353 0
The element forces at both ends of each member are given in the following table:
The corresponding Scilab code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
7 // Given loading
8 P = 25; M = 80; // in kips and k-in units
9
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 309
38 // Member 3 (Frame):
39 L = 8*12; theta = 270;
40 [sh3,t3,s3] = stiff2Dframe(L, E, A, I, theta);
41
56 // Partitioning S;
57 Sjj = S(4:12,4:12);
@seismicisolation
@seismicisolation
310 Matrix Structural Analysis and the Finite Element Methods
58
SOLUTION B
In this method, the structure stiffness matrix is modified by transforming the coeffi-
cients corresponding to the roller support. Recall the vector transformation matrix
T* given in Equation (4.6). A rotation matrix R is computed
using the inclination of
cos(θ ) sin(θ )
the rolling surface; in this case R = , where θ is 45o .
−sin(θ ) cos(θ )
The assembled structure stiffness matrix for the three members frame is obtained
following the same steps as in Solution A. This matrix is shown in the following
equation.
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 311
0.013 0 −1.182 −0.013 0 −1.182
0 1.611 0 0 −1.611 0
−1.182
0 141.778 1.182 0 70.889
−0.013 0 1.182 1.222 0 1.182
0 −1.611 0 0 1.617 0.665
−1.182 0 70.889 1.182 0.665 248.111
S = 103 ×
...
0 0 0 −1.208 0 0
0 0 0 0 −0.006 −0.665
0 0 0 0 0.665 53.167
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
−1.208 0 0 0 0 0
0 −0.006 0.665 0 0 0
0 −0.665 53.167 0 0 0
1.295 0 4.154 −0.087 0 4.154
0 3.026 −0.665 0 −3.021 0
4.154 −0.665 372.167 −4.154 0 132.917
−0.087 0 −4.154 1.554 1.467 −4.154
0 −3.021 0 1.467 1.554 0
sub s* = R×sub× RT
10 11 x̂ ŷ
" # " #
10 86.534 0 1553.7 1467.1 x̂
11 0 3020.8 1467.1 1553.7 ŷ
@seismicisolation
@seismicisolation
312 Matrix Structural Analysis and the Finite Element Methods
Back substituting the transformed s* matrix into the structure stiffness matrix
and applying the boundary conditions by restraining the ŷ as well as DOFs 1–3 at
node 1, the resulting 8 × 8 modified stiffness matrix of the structure is shown in the
equation below.
S j j = 103
1.22 0 1.18 −1.21 0 0 0 0
−0.01
0 1.62 0.67 0 0.67 0 0
1.18
0.67 248.11 0 −0.67 53.17 0 0
−1.21 0 0 1.30 0 4.15 −0.09 4.15
×
0 −0.01 −0.67 0 3.03 −0.67 0 0
0 0.67 53.17 4.15 −0.67 372.17 −4.15 132.92
0 0 0 −0.09 0 −4.15 1.55 −4.15
0 0 0 4.15 0 132.92 −4.15 265.83
After solving the modified structure stiffness equation, almost identical displace-
ments and actions are obtained as in the previous solution; these are not repeated
here.
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 %% Example 5.3B - Plane frame with inclined roller support
2 %% Direct Stiffness Method (Special cases)
3 clear; clc;
4
7 %% Given loading
8 P = 25; M = 80;
9
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 313
45 S(1:6,1:6) = s1;
46 S(4:9,4:9) = S(4:9,4:9) + s2;
47 S(7:12,7:12) = S(7:12,7:12) + s3;
48
@seismicisolation
@seismicisolation
314 Matrix Structural Analysis and the Finite Element Methods
58 sub2 = r*sub*r';
59 disp("... After")
60 S(10:11,10:11) = sub2
61
62 %% Partitioning S; (Sjj is 8 by 8)
63 Sjj = S;
64 Sjj(:,11)=[]; Sjj(11,:)=[];
65 %% Restrained normal to the roller surface (y_hat)
66 Sjj = Sjj(4:11,4:11);
67
5.9 PROBLEMS
5.1 The two simply supported beams shown in Figure 5.12(a) have equal length and
E = 17,200 ksi. They are connected by the two springs with stiffness ks = 25 k/in.
Analyze the structure using the DSM if the top beam has I = 110 in4 , the bottom has
I = 230 in4 , w = 5 k/ft and L = 10 ft. (SI: E = 72 GPa, ks = 5 kN/mm, I = 50e6 mm4
and I = 100e6 mm4 for the top and bottom beams, respectively, w = 60 kN/m and L
= 3.5 m).
5.2 The strip footing shown in Figure 5.12(b) having the dimensions 0.5 m
thick, 1.2 m width and 20 m length, carries a wall load of w = 40 kN/m. Analyse the
beam by dividing it into 5 segments supported on Winkler’s springs at the nodes (to
replace the soil foundation), take Ec = 30 GPa for the beam and analyze using the
DSM if the subgrade-reaction of the soil ks equals 50,000 kN/m3 . (FPS: t = 20 in, b
@seismicisolation
@seismicisolation
Special Cases in the Direct Stiffness Method 315
5.5 The curved plane frame element shown in Figure 5.12(e) is circular with
a radius R and extending to 90o . Derive its 6×6 stiffness matrix if the cross-sectional
area A and moment of inertia I, and modulus of elasticity E are all constants. Give
your solution in terms of E, A, I and R.
5.6 The plane frame shown in Figure 5.12(f) has four different special cases
to be considered. The horizontal member has a moment released at the middle, while
the curved member is circular with its center at node-4 and extending for 90o . Use
vector transformation technique for the inclined roller and analyze the frame using
the DSM. Let H = 4 m, L = 7.5 m, A = 15,000 mm2 , I = 720e6 mm4 , E = 200 GPa,
P = 110 kN and w = 24 kN/m (FPS: H = 12 ft, 22 ft, A = 25 in2 , I = 1750 in4 , E =
29,000 ksi, P = 25 kips and w = 2 k/ft).
@seismicisolation
@seismicisolation
@seismicisolation
@seismicisolation
Section II
@seismicisolation
@seismicisolation
@seismicisolation
@seismicisolation
6 Introduction and 1D Finite
Element Analysis
6.1 INTRODUCTION
In Section I, the analysis of structures that are made up of interconnected discrete line
(1D) elements was covered. In this second part, the analysis of continuum structures
that do not necessarily have distinct nodes will be treated.
Analysis of continuum structures can be mathematically formulated in the form
of differential equations with some specified boundary conditions. The closed-form
(analytical) solution of these governing differential equations becomes very difficult
because of the use of complicated or discontinuous geometry of the structure, hav-
ing complex loading, using several materials within the same structure, etc. In such
cases, it would be essential to resort to a numerical solution technique, like the finite
element method, that generates approximate solutions to the problems described in
the form of (ordinary or partial) differential equations.
After studying the chapter, the reader will be able to
DOI:10.1201/9781003329350-8@seismicisolation
@seismicisolation 319
320 Matrix Structural Analysis and the Finite Element Methods
Figure 6.1 shows some common finite elements used in structural analysis. In
1D elements, the cross-sectional area is very small compared to the length of the
element. Accordingly, 1D elements are represented by a line having two end nodes,
as shown in (a) or one/more additional nodes as in (b).
Example 6.1 It is required to determine the perimeter of a circle having a unit di-
ameter (radius = 21 unit).
This is a trivial problem, but assuming that the value of π is unknown, the perime-
ter of the circle (which equals π) can be approximated by the perimeter of a regular
polygon inscribed in the circle.
Analogous to the approximation technique using the finite element method, the
points A, B, C, D, E, ... in Figure 6.2 are the nodes that all lie on the given circle, and
the line segments connecting the adjacent nodes are the elements approximating the
curved line of the circle. The perimeter of the circle as approximated by that of the
n-sided inscribed regular polygon is given by Equation (6.1).
perimeter = π ×1
(6.1)
360o
≈ n × sin 2n
In general, the higher the number of elements, the better the approximation of
the perimeter of the circle would be. Table 6.1 shows the convergence of the approx-
imation, compared with the exact value of π.
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 321
FIGURE 6.2 A Circle with Diameter = 1 to Approximate π (a) Nodes and Elements
and (b) Typical Regular Polygon Inscribed in the Circle.
TABLE 6.1
Approximating π from Inscribed Regular Polygons
No. of sides Perimeter Error, (%)
3 2.598076211 17.301
4 2.828427125 9.968
5 2.938926261 6.451
8 3.061467459 2.550
16 3.121445152 0.641
32 3.136548491 0.161
64 3.140331157 0.040
128 3.141277251 0.010
1000 3.141587486 0.000
10000 3.141592602 0.000
As shown in the preceding example, the finite element method employs dis-
cretization and assembly as the core concept for solving complex engineering prob-
lems. The given problem has infinite degrees of freedom (DOF), while the discretized
model has a finite number of DOF, which is the origin of the name finite element
method.
@seismicisolation
@seismicisolation
322 Matrix Structural Analysis and the Finite Element Methods
6.1.3 AN OVERVIEW
Application Areas
Finite element analysis (FEA) is applicable in a variety of fields where the physical
problem can be described in the form of (partial) differential equations the mathe-
matical solution of which is difficult.
FEM applications include structural stress analysis, vibration and dynamic anal-
ysis, thermal analysis in solid; slope stability and soil structure interactions, seepage
of fluids in soils and rocks; electrical network analysis, electromagnetic analysis,
dynamic analysis of motors as well as heat analysis in electrical equipment; simu-
lation of chemical processes and chemical reaction; climate and wind predictions;
simulation of various human organs, etc. [25, 39, 42].
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 323
with composite or multiple material types. Models in FEM can be easily refined for
improved accuracy of the analysis result by varying the element size and/or element
type. Time dependent and dynamic effects can be included in FEA; likewise, non-
linear effects can also be properly accommodated. The computation in the FEM re-
quires a lot of time especially as the mesh becomes finer. Therefore, a good-capacity
computer – both in memory and speed – will be needed to obtain an analysis result
within a reasonable time [7, 25].
Linear Nonlinear
[F] = [K] × [d] [F] = [K] × [d]
(6.2)
[F] ̸= f (d) [F] = f (d)
[K] ̸= f (d) [K] = f (d)
Some common cases of nonlinear analysis are geometric non-linearity (in which
the deformation is large and the relation between displacement and strain is nonlin-
ear), material non-linearity (when the stress and strain relationship of the material
is not linear), boundary or contact non-linearity (when the displacement boundary
condition is displacement dependent) and dynamic problems (when the structure is
subjected time-dependent actions or deformations) [3, 9, 26, 42].
@seismicisolation
@seismicisolation
324 Matrix Structural Analysis and the Finite Element Methods
Error Sources
There are three categories of error sources in the finite element computations. The
first is modeling error, which is due to the simplifying assumptions in the mathe-
matical models of the actual structure. For example, when using beam elements, it
is assumed that the cross-sections stay planar and do not change in shape. The sec-
ond is called discretization error, which is due to piece-wise approximation that can
be minimized by using higher-order shape functions or smaller elements. The final
type is numerical error, which occurs due to the limited number of significant digits
stored by the computer.
Finite Volume
The Finite Volume Method (FVM) is another numerical method to transform and
solve partial differential equations into discrete algebraic equations over finite vol-
umes. The FVM is widely used in modeling fluid flow problems as computational
fluid dynamics. The development of the FVM is attributed to its CFD application at
the Imperial College in 1970s [12, 43].
There are many mesh-free methods, but one of the earliest application of the method
is the smoothed particle hydrodynamics in 1977 by Libersky. Some of the reasons for
the development of this method are: low accuracy of stresses especially at element
boundary; difficulty in adaptive analysis; limitation in the analyses of problems like
large deformation, crack growth and material rupture [24].
6.2 3D ELASTICITY
The governing differential equation is derived mostly through equilibrium and com-
patibility relationships in structural analysis. Figure 6.3 shows a solid differential
element found within a stressed structure. The equilibrium equations are given in
@seismicisolation
@seismicisolation
326 Matrix Structural Analysis and the Finite Element Methods
Equations (6.3), in which, Xb ,Yb and Zb are body forces in the element along the
three coordinate axes.
∂ σx ∂ τyx ∂ τzx
+ + + Xb = 0
∂x ∂y ∂z
∂ τxy ∂ σy ∂ τzy
+ + +Yb = 0 (6.3)
∂x ∂y ∂z
∂ τxz ∂ τyz ∂ σz
+ + + Zb = 0
∂x ∂y ∂z
Displacement functions in a structure along the x, y and z directions are usually
expressed as u, v and w, respectively. Figure 6.4 shows the deformed configuration
of the 3D stress-block in the X–Y plane only. Accordingly, the strain–displacement
relationship for the 3D element in the linear elasticity case is given by the set of
equations in Equation (6.4).
∂u ∂v ∂w
εx = , εy = , εz = ,
∂x ∂y ∂z
(6.4)
∂u ∂v ∂u ∂w ∂v ∂w
γxy = + , γxz = + , γyz = +
∂y ∂x ∂z ∂x ∂z ∂y
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 327
1−ν ν 0 0 0
σx ν εx
σ ν 1−ν ν 0 0 0
εy
y
ν 1−ν 0 0 0 εz
σz E ν
= × (6.6)
τ (1 + ν)(1 − 2ν) 0
1−2ν
xy 0 0 2 0 0
γxy
0 1−2ν
τxz 0 0 0 2 0 γxz
1−2ν
τyz 0 0 0 0 0 2
γyz
−ν −ν
εx 1 0 0 0 σx
ε −ν 1 −ν 0 0 0 σ
y y
εz 1 −ν −ν
1 0 0 0 σz
= × (6.7)
γ E 0 0 0 2(1 + ν) 0 0 τ
xy xy
γxz 0 0 0 0 2(1 + ν) 0 τxz
γyz 0 0 0 0 0 2(1 + ν) τyz
⇒ [ε] = [D]−1 × [σ ]
@seismicisolation
@seismicisolation
328 Matrix Structural Analysis and the Finite Element Methods
x
u = d1 + · (d2 − d1 )
L
x x
= (1 − ) · d1 + · d2
L L
= N1 · d1 + N2 · d2 (6.8)
" #
d1
= [N1 N2 ] ·
d2
= [N] · [d]
x
N1 = (1 − )
L
x
⇒ N2 =
L
" ! #
x x
N = [N1 N2 ] = 1−
L L
A distinction needs be made between u – the continuous displacement function
over the element and d – the (unknown) displacement vector prescribed at the nodes.
The nodal displacements vector d is termed as the known-unknowns in the rest of this
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 329
book for obvious reasons.1 The functions N1 and N2 are the linear shape functions
for the nodes 1 and 2, respectively. They do not depend on the known-unknowns;
they are always dependent on the element’s geometry, the location of the selected
nodes for the element and the coordinate system used. Using a similar procedure,
corresponding shape functions can be derived for quadratic or higher-order interpo-
lation.
If an element contains more than two nodes along the same axis, the shape func-
tions can be derived using the Lagrange Interpolation Polynomial (product quotient)
given in Equation (6.9).
j=n
x−xj
Ni = ∏ (6.9)
j=1 xi − x j
i̸= j
The general characteristics of the n shape functions of a given element are listed
as follows:
• Ni = 1 at node i; Ex. N1 = 1 at node #1
• Ni = 0 at node j such that j ̸= i; Ex. N1 = 0 at node #2
• ∑ni=1 Ni = 1 anywhere on the element.
In general, the element stiffness matrix is obtained using Equation (6.10), see
[3, 9, 25, 42, 48] for the derivation of this equation.2
Z
k= BT · D · B dv (6.10)
V
1 The d vector is unknown nodal displacements, yet it is used to express the displacement function over
the element u, as if it were known. That’s why the name known-unknowns is fitting.
2 In FEM, the element stiffness matrix is commonly denoted by k. Recall that s was used exclusively
in Section I of this book; both notations will be used hereafter interchangeably to refer to the element
stiffness matrix.
@seismicisolation
@seismicisolation
330 Matrix Structural Analysis and the Finite Element Methods
Z Z
f =P + N T · Xb dv + N T · T dS (6.11)
V S
PREPROCESSING
• Step 1. Idealize the Problem Domain The given problem needs to be
idealized based on engineering judgment; the governing equation must be
known or established. The main aim is to simplify a real engineering prob-
lem into a problem that can be solved by FEM. Purlin and rafters are re-
placed by the load they exert on the truss, supporting girders by appropriate
supports, as provided in Figure 6.6.
• Step 2. Discretize Sub-divide the solution domain into finite elements, i.e.,
into elements and nodes. These types of structures are said to be naturally
discretized, elements and nodes are clearly identifiable, as show in Figure
6.7.
• Step 3. Select an Interpolation Function Assume an interpolation (shape)
function to represent the physical behavior of an element. For a two-noded
truss member, a linear interpolation function describes the displacement
over the element in terms of the nodal displacements, as given in Figure
6.8.
• Step 4. Develop Element Equations Derive relationships between the un-
known and given parameters at the nodes of the elements; for example,
u = N1 · d1 + N2 · d2 and f = k · d, where f and d are the nodal force and
displacements of the element. The following relationship shows the element
stiffness equation of a truss member.
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 331
FIGURE 6.6 Idealization of a Plane Truss: (a) Actual Structure with Full of Details
and (b) Idealized Truss Model for FE Analysis.
@seismicisolation
@seismicisolation
332 Matrix Structural Analysis and the Finite Element Methods
out sufficient number of such restraints, the structure becomes unstable; for
example K ∗ is singular since no boundary condition has been introduced.
Singular Non-singular
(6.12)
[F]∗ = [K]∗ × [U]∗ ⇒ [F] = [K] × [U][1ex]
SOLUTION
• Step 7. Solve for the Primary (nodal) Unknowns Solve the resulting set
of simultaneous equations to obtain the unknown nodal displacements.
POSTPROCESSING
• Step 8. Compute Other Values of Interest Obtain secondary or derived
values of interest using the nodal results computed, such as support reac-
tions, member forces, stresses, strains, etc.
• Step 9. Interpret the Results Plot graphs of the different results, and assess
(estimate) errors.
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 333
@seismicisolation
@seismicisolation
334 Matrix Structural Analysis and the Finite Element Methods
10 syms L EI real
11
[ 3 2 ]
[ L L ]
[---- ----]
[3*EI 2*EI]
[ ]
[ 2 ]
[ L L ]
[---- -- ]
[2*EI EI ]
[12*EI -6*EI ]
[----- ------]
[ 3 2 ]
[ L L ]
[ ]
[-6*EI 4*EI ]
[------ ---- ]
[ 2 L ]
[ L ]
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 335
A concise tutorial on how to use the octave symbolic package is also available
on the Octave Wiki-site [38].
6.7 1D FE ANALYSIS
A bar (1D) element is a structural element in which the longitudinal dimension
(length) is much larger than the cross-sectional dimension. It resists an internal axial
force along its longitudinal dimension, shown in Figure 6.11.
A bar element has at least two nodes (start node i and the end node j), a coordinate
axis X directed from i to j, a cross-sectional area A(x) and a modulus of elasticity E.
Forces fi and f j as well as the displacements di and d j are assumed to be prescribed
(as known-unknowns) at the two nodes of the element. The element may also be
subjected to an arbitrary loading q(x) applied longitudinally.
Because the member, the loading and the displacements are directed along the
member axis (X), structures of this type are termed as 1D problems. Beams, grid
structures, plane or space trusses, plane or space frames have usually similar pris-
matic elements. Still, they are not 1D problems, since they require more than one
axis to describe at least one of the following: geometry, loading or the displaced
configuration of the structure.
Governing equation(s) are differential equations that describe a given problem in
a mathematical form which must be satisfied for every part of the given structure.
For a 1D – (bar-) element, the governing equation can be derived using equilibrium
of an infinitesimal element taken out of the bar as shown in Figure 6.11(c) and based
on the following general assumptions:
FIGURE 6.11 (a) A 1D Bar Element and Loading (b) Two-Noded (Linear) Finite
Element and (c) Actions on a 1D Infinitesimal Element.
@seismicisolation
@seismicisolation
336 Matrix Structural Analysis and the Finite Element Methods
∑ Fx = 0
!
∂ σx
σx + · dx · A(x) + q(x) · dx − σx · A(x) = 0
∂x
!
∂ σx ∂ σx
∴ + q(x) · dx = 0 ⇒ + q(x) = 0
∂x ∂x
Let u(x) be the displacement function over the bar; the strain is then given by
ε = ∂∂ ux . Using Hook’s law, σ = Eε and from the equilibrium of the infinitesimal
element, the governing differential equation is given by Equation (6.14).
!
∂ ∂u
E · A(x) · + q(x) = 0 (6.14)
∂x ∂x
Since the problem involves only a single coordinate axis x, the partial differen-
tial equation becomes the 2nd-degree order ordinary differential equation given in
Equation (6.15).
!
d du
E · A(x) · + q(x) = 0 (6.15)
dx dx
For the complete description of a given problem in this form, appropriate (dis-
placement and force) boundary conditions should also be specified together with the
differential equation. This form of problem description (as a differential equation
along with the corresponding boundary conditions) is called the strong form of the
problem. The solution of the governing differential equation is obviously the dis-
placement function u(x).
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 337
The following is the relationship provided in the integral Equation (6.10): The
stiffness matrix of a two-noded bar element with constant E and A is obtained as
follows. Note that the resulting stiffness matrix is isentical to the one given under the
DSM in Chapter 4.
Z
k = BT · D · B dv
V
−1
" # Z L
L
= 1
· E · [ −1
L
1
L] · A dx
0
L
−1
" #
E ·A 1
=
L −1 1
x − x2 x − x3 3x 2x2
N1 = · = 1− + 2
x1 − x2 x1 − x3 L L
x − x1 x − x3 4x 4x 2
N2 = · = − 2
x2 − x1 x2 − x3 L L
x − x1 x − x2 − x 2x2
N3 = · = + 2
x3 − x1 x3 − x2 L L
@seismicisolation
@seismicisolation
338 Matrix Structural Analysis and the Finite Element Methods
Z
k = BT · D · B dv
V
Z L
= E ·A BT · B · dx
0
7 −8 1
E ·A
= −8 16 −8
3L
1 −8 7
Example 6.2 Given the linearly tapered bar shown in Figure 6.13(a), it is required
to compare the exact displacement function with different FE solutions. Use E =
100 GPa, L = 2 m, P = 80 kN, A0 = 0.6 cm2 , AL = 1 cm2 to:
(a) Derive the governing differential equation (SF), and find the analytical (exact)
solution of the DE, i.e., find u(x)
(b) Determine a numerical solution using the finite element method with the fol-
lowing set of mesh:
• Two linear elements of equal lengths vs a single quadratic element
• Eight linear elements of equal lengths vs four quadratic element
(c) Plot all solutions together and compare the results
SOLUTION
(a) Let’s assume common units of m for length and N for force for this problem. Area
is varying linearly and it is given below in m2 :
A(x) = A0 + (AL − A0 ) · Lx
= (6 + 2x) · 10−5
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 339
FIGURE 6.13 (a) Tapered Bar Under Axial Load P, (b) Two Linear Elements and
(c) Single Quadratic Element.
Integrating once, and noting that EA dudx is the internal force (which equals P),
results in:
du
106 · (6 + 2x) · = C1 = P
dx
Rewriting this equation and further integrating gives the solution u as shown
below:
106 dx
· du =
80, 000 (6 + 2x)
1
12.5u = ln |6 + 2x| +C2
2
@seismicisolation
@seismicisolation
340 Matrix Structural Analysis and the Finite Element Methods
ln (1 + x/3)
u=
25
The displacement at the free-end equals 0.020433 m. Assuming the bar has an
average uniform cross-sectional area of ((1 + 0.6)/2)e − 5, the approximate dis-
PL
placement at the free-end becomes AE = 0.2 m. Let’s investigate how FE analysis
fare.
(b)i. Figure 6.13(b) shows the two linear elements mesh of the given tapered bar.
The stiffness matrices of the two linear elements is computed as follows.
For the first element:
1 −1 Z 0.5L 1 −1
" # " #
E
k1 = ((6 + 2x) · 10−5 ) dx = 7 · 106 ·
0.5L −1 1 0 −1 1
The assembled stiffness matrix and the load vector, where R is the support reac-
tion, are given as follows.
7 −7 0 R
K = 106 · −7 16 −9 A = 0
0 −9 9 80, 000
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 341
The displacement functions over the tapered bar (u1 for the first half and u2 for
the second half), are obtained as follows:
" #
0 2x
u1 = N1 N2 · =
0.01143 175
" #
0.01143 14x + 4
u2 = N2 N3 · =
0.02032 1575
Figure 6.13(c) shows the single quadratic element mesh of the given tapered bar.
The stiffness matrices of a quadratic element is computed as follows.
Z L
k = BT · D · B A · dx
0
Z L
= E· BT · B ((6 + 2x) · 10−5 ) dx
0
24 −28 4
106
K= −28 64 −36
3
4 −36 32
This matrix is already the assembled stiffness matrix of the given bar; the load
vector for the three nodes is as given in the previous case [R, 0, 80, 000]T . Applying
the boundary condition that d1 = 0, the solution is as follows.
#−1 "
−36
" # " # " #
d2 64 0 0.01149
−6
= 3 × 10 · · = m
d3 −36 32 80, 000 0.02043
@seismicisolation
@seismicisolation
342 Matrix Structural Analysis and the Finite Element Methods
·10−2
2 Exact
Two Linear FEs
One Quadratic FE
1.5
Displacement u (m)
0.5
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Length x (m)
The displacement function over the tapered bar for this case is thus obtained as
follows.
0
3x(10 − x)
u = N1 N2 N3 · 0.01143 =
2350
0.02032
Figure 6.15 shows the stress diagrams in the bar for the three cases.
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 343
Exact
Stress σ × 1000 MPa
Two Linear
1.2
One Quadratic
0.8
(b)ii. Using similar approach used in the above solution, the stiffness matrices
for the eight linear and four quadratic elements are obtained as shown in the follow-
ing tables.
Member
x1 x2 le ki x1 x2 le ki
−25 −29
" # " #
L L 25 2L 3L L 29
1 0 3
8 8 −25 25 8 8 8 −29 29
27 −27 31 −31
" # " #
L 2L L 3L 4L L
2 4
8 8 8 −27 27 8 8 8 −31 31
Member
Member
x1 x2 le ki x1 x2 le ki
−33 −37
" # " #
4L 5L L 33 6L 7L 37
5 7 0
8 8 8 −33 33 8 8 −37 37
35 −35 −39
" # " #
5L 6L L 7L L 39
6 8 L
8 8 8 −35 35 8 8 −39 39
@seismicisolation
@seismicisolation
344 Matrix Structural Analysis and the Finite Element Methods
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 345
Member x1 x2 x3 le ki
87 −100 13
L L L 106
1 0 · −100 208 −108
8 4 4 3
13 −108 95
101 −116 15
L 3L L L 6
10
2 · −116 240 −124
4 8 2 4 3
15 −124 109
115 −132 17
L 5L 3L L 106
3 · −132 272 −140
2 8 4 4 3
17 −140 123
129 −148 19
3L 7L L 106
4 L · −148 304 −156
4 8 4 3
19 −156 137
@seismicisolation
@seismicisolation
346 Matrix Structural Analysis and the Finite Element Methods
Summary of the eight linear elements and four quadratic elements solutions com-
pared to the exact solution (in mm) is as shown the following table.
This result shows that as the number of finite elements used in the analysis is
higher, the FE result approaches the exact result; similarly, the higher the order of
the element (quadratic instead of linear), the better the approximation.
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 347
The corresponding Octave4 code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 %% Example 6.2 - Tappered 1D Bar Analysis
2 %% 1D Finite Element Method
3 clear, clc
4 warning("off")
5 %% The Symbolic package in Octave is used
6 %% to perform calculus operations like
7 %% differentiation and integration.
8
12 P = 80000; %% in N
13 E = 100e9; %% in N/m2
14 L = 2; %% in m
15
16 s = [1 -1;-1 1];
17 A = (6 + 2*x)*1e-5 %% in m2
18 % (a) %%%%%%%%%%%%%%%%%%%%%%%%%%%
19 % Exact solution
20 u = log(1+x/3)/25;
21
24 % (b) %%%%%%%%%%%%%%%%%%%%%%%%%%%
25 % 2 Linear elements
26 le = L/2;
27 k1 = double(int(A,x,0,le)*E/le*s); %% Element-1
28 k2 = double(int(A,x,le,2*le)*E/le*s); %% Element-2
29
35 D1 = inv(K(2:3,2:3)) * [0;P]
36 le = 1;
37 u1 = x/le*D1(1)
4 This example uses the Symbolic package to perform differentiation and integration. Scilab doesn’t
have this kind of Computer Algebra System (CAS), hence in Scilab differentiation and integration may
need to be performed manually.
@seismicisolation
@seismicisolation
348 Matrix Structural Analysis and the Finite Element Methods
38 u2 = [(L-x)/le (x-le)/le]*D1
39
47 x1 = 0; x2 = L/2; x3 = L;
48 % Shape function for 3-noded (quadratic) bar element;
49 N(1) = (x - x2)/(x1 - x2)*(x - x3)/(x1 - x3);
50 N(2) = (x - x1)/(x2 - x1)*(x - x3)/(x2 - x3);
51 N(3) = (x - x1)/(x3 - x1)*(x - x2)/(x3 - x2);
52
53 expand (N);
54
58 % Expression to be integrated
59 EXPR = B'*E*B*A;
60
73 X = [0;L/2;L]; % x-array
74 D_exact = log(1+X./3)/25;
75
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 349
86 % (c) %%%%%%%%%%%%%%%%%%%%%%%%%%%
87 % 8 Linear elements
88 K8 = zeros(9);
89 le = L/8;
90 for i=1:8
91 b = i*le; a = b - le;
92 ke = double(int(A,x,a,b))*E/le^2*s;
93 K8(i:i+1,i:i+1) = K8(i:i+1,i:i+1) + ke;
94 disp(ke/1e6);
95 endfor
96
97 disp(K8/1e6)
98
113 B = diff(N,x);
114
117 ke = double(int(Expr,x,a,b));
118 j1 = 2*i-1; j2 = 2*i+1;
119 K4(j1:j2,j1:j2) = K4(j1:j2,j1:j2) + ke;
120 disp(3*ke/1e6);
121 endfor
122
123 disp(K4/1e6)
124
@seismicisolation
@seismicisolation
350 Matrix Structural Analysis and the Finite Element Methods
v = a1 + a2 · x + a3 · x2 + a4 · x3
(6.17)
dv
θ = = a2 + 2a3 · x + 3a4 · x2
dx
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 351
The following matrix relation is obtained using the four known-unknowns (v1 θ1
at x = 0 and v2 θ2 at x = L).
1 0 0 0 a1 v1
0 1 0 0 a θ
2
2 1
3 × =
1 L L L
a3 v2
0 1 2·L 3·L 2
a4 θ2
Solving this equation for a1 to a4 in terms of the known-unknowns, we obtain
the following coefficients.
v1
a1
θ1
a2
= 3v 2θ1 3v2 θ2
1
a3 − 2 − + 2−
L L L L
2v1 θ1 2v2 θ2
a4 − + −
L3 L2 L3 L2
Back substituting this into 6.17 and rearranging, we get the expression for v in
terms of the nodal displacements v1 , θ1 , v2 and θ2 as follows.
@seismicisolation
@seismicisolation
352 Matrix Structural Analysis and the Finite Element Methods
3x2 2x3
N1 1 − +
L2 L3
2x2 x3
N2
x− + 2
L L
= (6.19)
3x2 2x3
N3 −
L2 − L3
x 2 3
x
N4 − + 2
L L
The strain displacement matrix B of a beam element is derived as follows.
dv
u = −y ·
dx
du
εx =
dx
d2v
= −y ·
dx2
ε is thus given by the 2nd derivative of the shape functions as shown below.
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 353
d2v
B =
dx2
1
B = [(12x − 6L) L(6x − 4L) (6L − 12x) L(6x − 2L)]
L3
The stiffness matrix of a beam element is obtained to be as given in Equation
(6.20), which is identical to the one given in Equation (4.4) earlier in Chapter 4.
Z L
k = BT · (EI) · B dx
0
12EI 6EI 12EI 6EI
L3 − 3
L2 L L2
6EI 4EI 6EI 2EI
−
(6.20)
L2 L2
L L
=
12EI 6EI 12EI 6EI
− − − 2
L3 L2 L3 L
6EI 2EI 6EI 4EI
−
L2 L L2 L
SOLUTION
The analytical solution shows that the support reactions, mid-span (max) deflection
and the joint rotations at the supports are computed using the appropriate equations
as follows.
@seismicisolation
@seismicisolation
354 Matrix Structural Analysis and the Finite Element Methods
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 355
The nodal load vector at the free joints A j is obtained from equivalent nodal
loads as given below.
k in
−400
−40
k
Aj =
0 k in
400 k in
The following results are obtained by solving the modified stiffness equation S j j ×
D j = A j for the unknown displacements D j .
d2 −0.021739 rad
d3 −1.630435 in
Dj = =
d4 0 rad
d6 0.021739 rad
40.00 kips
0.00 kips in
=
0.00 kips
2400.00 kips in
The numerical solution found using the finite element method is exactly identi-
cal to the analytical one. If additional intermediate results are required, more node
shall be inserted as necessary and the analysis is performed in the same manner as
demonstrated here.
The corresponding Scilab code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 // Example 6.3 - Beam Structure
2 // Direct Stiffness Method
3 clc; clear
4 // Common units for analysis: Force in kip, Length in in
@seismicisolation
@seismicisolation
356 Matrix Structural Analysis and the Finite Element Methods
12 // Length, in
13 L = 20*12;
14
18 //////////////////////////////////////////////////
19 //// Analytical solution
20 Mmax = w*L^2/8;
21 ymax = 5*w*L^4/(384*EI);
22 angA = w*L^3/(24*EI);
23 //////////////////////////////////////////////////
24
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 357
50 Aj = zeros(2*N,1);
51
6.8 PROBLEMS
@seismicisolation
@seismicisolation
358 Matrix Structural Analysis and the Finite Element Methods
value of π up to 10−6 accuracy? Note that a polyparab segment intersects with the
circle at three locations (at its ends and the center of the segment).
6.2 The tapered bar shown in Figure 6.18 is subjected to only an axial force P at
the free end. Compute and compare the different displacement solutions based on the
following cases.
• Derive the governing differential equation (SF) and find the analytical so-
lution (uexact )
• Use the FEM to determine a numerical solution by dividing the bar into
five equal segments (finite elements) respectively as follows:
• Two-noded five elements (2N5)
• Three-noded five elements (3N5), respectively
2
Also compute the TPE for each of the three cases. Use L = 2.5 m, A = 5 − 2x L cm2 ,
E = 200 GPa, P = 180 kN; note that x is measured to the right from the support. (FPS:
2 2
L = 7.5 ft, A = 2 − 0.75x
L in , E = 30,000 ksi, P = 40 kips.)
6.3 Consider the tapered bar given in Problem 6.2. Solve the problem if a variable
distributed load q = 0.6(x) kips/ft is acting instead of the point load P. Use L = 7.5
@seismicisolation
@seismicisolation
Introduction and 1D Finite Element Analysis 359
2
ft, A = 2 − 0.75x
L in2 , E = 29,000 ksi. Note that x is measured to the right from the
2
support. (SI: L = 2.5 m, A = 5 − 2xL cm2 , E = 200 GPa and q = 26(x) kN/m.)
6.4 Consider the tapered beam shown in Figure 6.18(c), which has a constant mo-
ment of inertia E and width b while the depth reduces from 2 h at node 1 to h at node
2. Determine the stiffness matrix of the beam using Equation (6.10); note that the
shape function is provided in Equation (6.19). Provide your solution in terms of E,
L, b, and h.
6.5 For the tapered beam provided in Problem 6.5c, consider node 1 is fixed while
an upward force of P is applied at node 2. Determine the exact displacement and
rotation at node 2 and compare these with the result obtained using the stiffness
matrix derived in Problem 6.5. Take L = 2.5 m, h = 5 cm, b = 5 cm and E = 15 GPa.
(FPS: L = 8 ft, h = 2 in, b = 2 in and E = 2200 ksi.)
6.6 For the fixed beam in Figure 6.18d subjected to the given triangular loading,
determine the location and magnitude of the maximum vertical displacement using
the finite element method (use a mesh of elements and convert the load on each
element into equivalent nodal load). How many equal-sized beam elements would be
required to bring down the error below 1e−3? Use w = 1.1 k/ft, L = 9 ft, E = 1450
ksi and I = 500 in4 . (SI: w = 15 kN/m, L = 3 m, E = 10 GPa and I = 300e6 mm4 .)
6.7 Analyze the fixed beam in Problem 6.6 using the finite element method and de-
termine the support reactions using two, four and eight elements.
6.8 Analyze the simply supported beam given in Figure 6.18e using the finite element
method. Use only the five elements as shown in the figure. Identify the node corre-
sponding to the highest vertical displacement and compare the result with the exact
location of maximum vertical displacement. Take w1 = 10 kN/m, w2 = 15 kN/m, E =
110 GPa, L = 6 m, I = 15e6 mm4 . (FPS: w1 = 32 kips/ft, w2 = 45 kips/ft, E = 16,000
ksi, L = 18 ft, I = 2500 in4 .)
6.9 Analyze the cantilever curved member given in Figure 6.18f using the finite
element method and determine the displacements along 1, 2 and 3 for only two, four
and eight elements. Compare the analysis results with the exact values. Note that the
curve has a radius of R and subtends a 90o angle. Use th following data: p1 = 20
kips, p2 = 45 kips, m3 = 10 kip-ft, E = 20,000 ksi, R = 10 ft, I = 1500 in4 . (SI: p1 =
80 kN, p2 = 200 kN, m3 = 15 kN-m, E = 140 GPa, R = 3 m, I = 620e6 mm4 .)
6.10 A three-noded (quadratic) bar element with a length L and constant axial rigid-
ity AE has displaced of 0.1, 0.02 and −0.2 at nodes 1, 2 and 3, respectively. Assuming
the origin of the coordinate system is at node 1 and the middle node is at the center,
determine the displacement equation u over the element in terms of x and L. Also,
compute the member forces at the three nodes in terms of AE, x and L.
6.11 A beam element having a length L and constant flexural rigidity EI has under-
gone the nodal displacement shown in the table below. Assuming the origin of the
@seismicisolation
@seismicisolation
360 Matrix Structural Analysis and the Finite Element Methods
coordinate system is at node 1, determine the displacement equation u over the ele-
ment for each case in terms of x and L. Also, determine the displacement and rotation
at the center and the member end actions in terms of EI and L.
Node-1 Node-2
Case
v1 θ1 v2 θ2
1 0.1 0 0.2 0
2 0.1 −0.002 −0.2 0.001
3 0 .0005 −0.1 0
4 −0.05 −0.00125 0 0
5 0 0 0.002(L) 0.003
@seismicisolation
@seismicisolation
7 2D Finite Element Analysis
7.1 INTRODUCTION
Two-dimensional (2D) structures are flat plates subjected to in-plane actions. They
are assumed to have very small thickness, t compared to their lateral dimensions.
To describe a point within the plate, two coordinates are required, hence 2D, see
Figure 7.1. It is assumed that the loading and support conditions as well as material
properties are symmetric about the middle surface of the plate. The area at the middle
surface is considered for a finite element analysis, while the value of the thickness
would be used in the computation of the stiffness matrix of the elements [7, 32].
After studying this chapter, the reader will be able to
• Identify and model 2D membrane problems
• Understand the difference between plane-stress and plane strain conditions
• Derive the equations for three-node (constant strain triangle – CST, linear)
triangles
• Use area coordinates to derive element equations of CSTs
• Compute the equivalent nodal loads for surface and body forces
• Derive the equations for axisymmetric three-node triangular elements
• Derive the equations for six-node (LST, quadratic) triangles
• Derive the equations for rectangular and quadrilateral elements
• Perform numerical integration for 1D and 2D elements using Gaussian
quadrature
• Create higher-order (quadratic and cubic) elements
• Use Scilab or Octave to analyze simple 2D problems
• Understand the general steps in using any appropriate software to model
and analyze complex 2D problems
Unlike 1D discrete structures in which the nodes and elements are easily iden-
tifiable (they are “naturally” discretized), 2D structures are continuum structures,
and they don’t usually possess clearly marked nodes and elements. To analyze a 2D
structure in the finite element method, the structure needs to be discretized (meshed)
by creating nodes and elements, as shown in Figure 7.2. In so doing, the continuous
(infinite) displacement over the plate area is approximated by the displacements at
the finite number of nodes created. It is clear that the larger the number of nodes and
elements used in the mesh, the closer the result would be to the continuum solution.
Stress components in 2D structures is composed of the three stresses in the plane
of the plate as shown in Figure 7.3.
The 2D strain components have been shown earlier in Figure 6.4. The stress and
strain vectors in 2D are given by Equation (7.1). In the elastic analysis of 2D struc-
DOI:10.1201/9781003329350-9@seismicisolation
@seismicisolation 361
362 Matrix Structural Analysis and the Finite Element Methods
FIGURE 7.2 2D Plate Structure: (a) Meshed Plate (b) Typical Triangular Element.
@seismicisolation
@seismicisolation
2D Finite Element Analysis 363
tures, a 3 × 3 constitutive matrix [D] will be used to relate these two vectors such that
[σ ] = [D] × [ε].
σx εx
[σ ] = σy [ε] = εy (7.1)
τxy γxy
1−ν 0 0 0
σx ν ν εx
σ
y
ν
1−ν ν 0 0 0
εy
1−ν 0 0 0 εz
0 E ν ν
= ×
τ (1 + ν)(1 − 2ν) 0
1−2ν
xy 0 0 2 0 0
γxy
0
0 1−2ν
0 0 0 2 0 γxz
0 1−2ν
0 0 0 0 0 2
γyz
FIGURE 7.4 Tapering Plate (with a Hole) as Typical Plane Stress Problem.
@seismicisolation
@seismicisolation
364 Matrix Structural Analysis and the Finite Element Methods
ν
εz = − · (εx + εy )
1−ν
E
σx = (εx + ν · εy )
1 − ν2
E
σy = (εy + ν · εx )
1 − ν2
E
τxy = · γxy
2(1 + ν)
Re-writing the last three expressions in matrix form, the constitutive matrix for a
plane stress case is finally obtained as follows.
1 0
ν
σx εx
E ν 1 0
σy = · ×
2
εy
1−ν
1−ν
τxy 0 0 γxy
2
(7.2)
1 0
ν
E ν 1 0
⇒D= for plane stress.
1 − ν2
1−ν
0 0
2
Definition 7.2 (Plane Strain Problem) Plane strain is a 2D state of strain in which
the strains directed normallay to the plane of the structure are assumed to be zero;
see Figure 7.23. For a 2D structure in the x–y plane, this implies that the z-strains
εz = γxz = γyz = 0.
These structures actually are 3D and they have a larger dimension perpendicular
to the plane of investigation. They are considered as 2D by taking a unit thickness to
represent the 2D behavior of the structure. Following a similar procedure as that of
the plane stress case, the stress—strain relationship in the plane strain case can also
be derived using Equation (6.7).
@seismicisolation
@seismicisolation
2D Finite Element Analysis 365
The constitutive matrix for the plane strain case is thus given by Equation (7.3).
1−ν 0
ν
σx εx
E ν 1−ν 0
σy = · ×
εy
(1 + ν)(1 − 2ν)
1 − 2ν
τxy 0 0 γxy
2
(7.3)
1−ν 0
ν
E ν 1−ν 0
⇒D= for plane strain.
(1 + ν)(1 − 2ν)
1 − 2ν
0 0
2
u = a1 + a2 · x + a3 · y
(7.4)
v= b1 + b2 · x + b3 · y
@seismicisolation
@seismicisolation
366 Matrix Structural Analysis and the Finite Element Methods
u1
v
1
" # " #
u N1 0 N2 0 N3 0 u2
= · (7.5)
v 0 N1 0 N2 0 N3 v2
u3
v3
Figure 7.7 shows the three shape functions N1 , N2 and N3 as being functions of
a plane surface in x–y.
AREA COORDINATES
The area of a triangle with vertices at (x1 , y1 ), (x2 , y2 ) and (x3 , y3 ) is given by the
following determinant.
1 1 1
1
A = x1 x2 x3 (7.6)
2
y1 y2 y3
For an arbitrary point p(x,y) inside the triangle 1-2-3, the three partial areas
A1 , A2 and A3 are given as follows.
@seismicisolation
@seismicisolation
2D Finite Element Analysis 367
1 1 1 1 1 1 1 1 1
1 1 1
A1 = 2 x x2 x3 A2 = 2 x1 x x3 A3 = 2 x1 x2 x (7.7)
y y2 y3 y1 y y3 y1 y2 y
The area coordinates L1 , L2 and L3 are special area ratios computed for any point
within the triangle. They attain values between 0 and 1 (0 ≤ Li ≤ 1) as computed
using Equation (7.8), in which the areas A1 , A2 and A3 are provided in Figure 7.7.
Area coordinates are used to linearly interpolate values within the triangle, in terms
of the three nodal values.
A1
L1 =
A
A2
L2 = (7.8)
A
A3
L3 =
A
The shape functions for a CST are the same as the area coordinates discussed
above and they are given in Equation (7.9).
1
N1 = L1 = (α1 + β1 x + γ1 y)
2A
1
N2 = L2 = (α2 + β2 x + γ2 y) (7.9)
2A
1
N3 = L3 = (α3 + β3 x + γ3 y)
2A
The coefficients α, β and γ are all constants that depend on the locations of the
three nodes of the CST and is given as follows.
@seismicisolation
@seismicisolation
368 Matrix Structural Analysis and the Finite Element Methods
α1 = x2 · y3 − y2 · x3 ; β1 = y2 − y3 ; γ1 = x3 − x2
α2 = x3 · y1 − y3 · x1 ; β2 = y3 − y1 ; γ2 = x1 − x3 (7.10)
α3 = x1 · y2 − y1 · x2 ; β3 = y1 − y2 ; γ3 = x2 − x1
Example 7.1 For the three-noded triangular element shown in the Figure 7.9, com-
pute the three shape functions N1 , N2 and N3 at point P. If the area is subjected to
a temperature field such that T1 = 60o F, T2 = 80o F and T3 = 90o F, estimate the
temperature at a point P (50, 40) in.
SOLUTION
The shape functions are computed using the area coordinates as follows.
@seismicisolation
@seismicisolation
2D Finite Element Analysis 369
Total area of the triangular region and each part areas are:
1 1 1 1 1 1
1 1
A = x1 x2 x3 = 15 70 40 = 1187.5 in2
2 2
y1 y2 y3 20 35 70
1 1 1 1 1 1
1 1
A1 = x p x2 x3 = 50 70 40 = 275 in2
2 2
yp y2 y3 40 35 70
1 1 1 1 1 1
1 1
A2 = x1 xp x3 = 15 50 40 = 625 in2
2 2
y1 yp y3 20 40 70
1 1 1 1 1 1
1 1
A3 = x1 x2 xp = 15 70 50 = 287.5 in2
2 2
y1 y2 yp 20 35 40
A1
N1 = = 0.2316
A
A2
N2 = = 0.5263
A
A3
N3 = = 0.2421
A
The temperature over the area is assumed to vary linearly; hence, the tempera-
ture at point P is obtained as follows.
3
Tp = ∑ Ni · Ti
i=1
@seismicisolation
@seismicisolation
370 Matrix Structural Analysis and the Finite Element Methods
The corresponding Scilab code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 // Example 7.1 - 2D Element
2 // Constant Strain Triangle
3 clc; clear
4 // Common units for analysis: Force - k, Length - in
5
@seismicisolation
@seismicisolation
2D Finite Element Analysis 371
εx = (β1 · u1 + β2 · u2 + β3 · u3 )/2A
εy = (γ1 · v1 + γ2 · v2 + γ3 · v3 )/2A
γxy = (γ1 · u1 + β1 · v1 + γ2 · u2 + β2 · v2 + γ3 · u3 + β3 · v3 )/2A
@seismicisolation
@seismicisolation
372 Matrix Structural Analysis and the Finite Element Methods
The stiffness matrix of a CST under plane stress or plane strain is given by Equa-
tion (7.14).
ZZZ
k = BT · D · B dv
V
ZZ
= BT · D · B (t · dA) (7.14)
A
= BT · D · B · t · A
Example 7.2 For the triangular element given in Example 7.1, compute the stiff-
ness matrix for both the plane stress and plane strain cases. Assume t = 0.1in, E =
29,000 ksi and µ = 0.3.
SOLUTION
The area of the triangle was already computed earlier as A = 1187.5 in2 . The strain-
displacement matrix B is computed as shown below.
β1 = y2 − y3 = −35
β2 = y3 − y1 = 50
β3 = y1 − y2 = −15
γ1 = x3 − x2 = −30
γ2 = x1 − x3 = −25
γ3 = x2 − x1 = 55
−35 −15
0 50 0 0
1
B= 0 −30 0 −25 0 55
2A
−30 −35 −25 50 55 −15
@seismicisolation
@seismicisolation
2D Finite Element Analysis 373
The constitutive matrix D is computed for both plane stress and plane strain
cases as follows.
For plane stress:
1 0
ν
31.8681 9.5604 0
E ν 1 0
= 103 ×
D1 = 9.5604 31.8681 0
1 − ν2
1−ν
0 0 0 0 11.1538
2
1−ν 0
ν
E ν 1−ν 0
D2 =
(1 + ν)(1 − 2ν)
1 − 2ν
0 0
2
39.0385 16.7308 0
= 103 × 16.7308 39.0385 0
0 0 11.1538
The stiffness matrix in kips/in for the plane stress case is given as follows.
k = BT · D · B · t · A
Using the same equation, the stiffness matrix in kips/in for the plane strain case
is given as follows.
@seismicisolation
@seismicisolation
374 Matrix Structural Analysis and the Finite Element Methods
1522.65 770.50 −1577.68 −55.04 55.04 −715.46
770.50 1284.16 −403.59 256.83 −366.90 −1540.99
−1577.68 −403.59 2751.77 −917.26 −1174.09 1320.85
k2 =
−55.04 256.83 −917.26 972.29 −1632.72
1375.89
55.04 −366.90 −1174.09 972.29 1119.05 −605.39
−715.46 −1540.99 1320.85 −1632.72 −605.39 3173.71
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 % Example 7.2 - 2D Element Stiffness
2 % Constant Strain Triangle
3 clc; clear
4 % Common units for analysis: Force in k, Length in in
5
27 %Constitutive matrix
28 % plane stress D1,
29 D1=E/(1-nu^2)*[1 nu 0;nu 1 0; 0 0 (1-nu)/2]
30 % plane strain D2
@seismicisolation
@seismicisolation
2D Finite Element Analysis 375
Example 7.3 For the thin plate shown in Figure 7.10(a) (i) determine the global
stiffness matrix for the structure; (ii) determine the unknown nodal displacements;
(iii) determine the support reactions; and (iv) compute the stress developed at the
centroid of each triangular element. Use E = 210 GPa, ν = 0.3 and t = 1 mm. Use
the two elements mesh given in Figure 7.10(b).
SOLUTION
The first step would be to mesh the plate into smaller finite elements. Consider the
given two CSTs and the four nodes for this case, as shown in Figure 7.10(b). Global
node numbers 1, 2, 3 and 4 are shown circled, while the local node numbers of each
triangle are shown inside each element.
Accordingly, the element connectivity matrix is given as follows. Note that there
are two DOFs at each node of such 2D elements.
The stiffness matrix of each element is computed using Equation (7.14) as fol-
lows, to be multiplied by 103 .
Element #1:
1 2 3 4 5 6
−86.54 −34.62
86.54 0 34.62 0
1
0 30.29 40.38 −30.29 −40.38 0 2
−86.54 40.38 140.38 −75.00 −53.85 34.62 3
k1 =
34.62 −30.29 −75.00 184.13 40.38 −153.85 4
5
0 −40.38 −53.85 40.38 53.85 0
6
−34.62 0 34.62 −153.85 0 153.85
@seismicisolation
@seismicisolation
376 Matrix Structural Analysis and the Finite Element Methods
FIGURE 7.10 (a) Rectangular Plate and Loading and (b) Two CST Elements.
1 2 5 6 7 8
53.85 0 0 −40.38 −53.85 40.38 1
0 153.85 −34.62 0 34.62 −153.85 2
0 −34.62 86.54 0 −86.54 34.62 5
k2 =
−40.38 0 0 30.29 40.38 −30.29 6
−53.85 34.62 −86.54 40.38 140.38 −75.00 7
@seismicisolation
@seismicisolation
2D Finite Element Analysis 377
K = 103
140.38 0.00 −86.54 34.62 0.00 −75.00 −53.85 40.38
0.00 184.13 40.38 −30.29 −75.00 34.62 −153.85
0.00
−86.54 40.38 140.38 −75.00 −53.85 34.62 0.00 0.00
34.62 −30.29 −75.00 184.13 40.38 −153.85 0.00 0.00
×
0.00 −75.00 −53.85 40.38 140.38 0.00 −86.54 34.62
−75.00 0.00 34.62 −153.85 0.00 184.13 40.38 −30.29
−53.85 34.62 0.00 0.00 −86.54 40.38 140.38 −75.00
40.38 −153.85 0.00 0.00 34.62 −30.29 −75.00 184.13
Since the left edge is fixed, the support boundary condition is such that both x and
y displacements at nodes 1 and 4 are zero. The distributed load over the right edge
can be easily converted into concentrated nodal load of magnitude P = (150 MPa ×
600 mm2 )/2 = 45 kN, as shown in Figure 7.11.
Applying the boundary condition, the modified (reduced) stiffness equation of the
plate is given as follows.
@seismicisolation
@seismicisolation
378 Matrix Structural Analysis and the Finite Element Methods
45, 000 140.38 −75 −53.85 34.62 u2
0 −75 184.13 40.38 −153.85 v2
3
45, 000 = 10 × −53.85
×
40.38 140.38 0
u3
The support reactions can be computed from the loading vector of the structure
AS = K × D, shown below.
R1 0 −45
0
18.26
R2
A j 0.5792 45
1
A j2 0.1085 0
= K × = kN
A j3 0.5115 45
A j4 −0.0182 0
R 0 −45
3
R4 0 −18.26
The stresses in the two elements are computed using s = D · B · d of the plate is
given as follows.
@seismicisolation
@seismicisolation
2D Finite Element Analysis 379
Element #1:
−1.25
0 1.25 0 0 0
−3
B1 = 10 × 0 0 0 −1.67 0 1.67
0
0
0.5792
d1 =
0.1085
0.5115
−0.0182
τxy 1
1.84
Element #2:
−1.25
0. 0. 1.25 0. 0.
B2 = 10−3 × 0. −0.1.67 0. 0. 0. 0.1.67
0
0
0.5115
d2 =
−0.0182
0
0
σx 147.54
⇒ σy = D × B2 × d2 = 44.26 MPa
τxy 2
−1.84
@seismicisolation
@seismicisolation
380 Matrix Structural Analysis and the Finite Element Methods
Due to symmetry, it is expected that u2 = u3 and v2 = −v3; but the result shows
slight variation. A much better accuracy will be obtained if the symmetric four-
elements mesh shown in Figure 7.12 is used for the FE analysis.
Mesh refinement improves the result, and Figure 7.13(a) and (b) shows the dis-
placement (u) and the stress (σx ) distribution contour when the plate is meshed into
1024 elements.
The corresponding Scilab code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 // Example 7.3 - 2D Plane stress analysis of plate
2 // Using two CSTs
3 clc; clear
4 // Common units for analysis: Force in N, Length in mm
5
@seismicisolation
@seismicisolation
2D Finite Element Analysis 381
FIGURE 7.13 Displacement u and Stress σx Distribution for 1024 CST Elements.
17
@seismicisolation
@seismicisolation
382 Matrix Structural Analysis and the Finite Element Methods
68 // Reactions
69 As = K*[0;0;d;0;0]
70
@seismicisolation
@seismicisolation
2D Finite Element Analysis 383
73 s2 = D*B2*[0;0;d(3:4);0;0]
74
u = a1 + a2 · x + a3 · y + a4 · x2 + a5 · x · y + a6 · y2
(7.15)
v= b1 + b2 · x + b3 · y + b4 · x2 + b5 · x · y + b6 · y2
The polynomial terms in the displacement field are usually determined from the
Pascal’s triangle shown in Equation (7.16). Accordingly, for the quadratic LST el-
ement, the complete polynomial terms are 1, x, y, x2 , x · y and y2 . The next four
terms shall be included for a cubic element resulting in a 10-terms polynomial for
@seismicisolation
@seismicisolation
384 Matrix Structural Analysis and the Finite Element Methods
In terms of the known-unknowns, the displacement over the LST at any point (x,
y) within the triangle is given as follows.
u1
v1
u
2
v2
u3
" # "
#
u N1 0 N2 0 N3 0 N4 0 N5 0 N6 0 v3
=
v 0 N1 0 N2 0 N3 0 N4 0 N5 0 N6 u4
v4
u5
v5
u
6
v6
(7.17)
The quadratic shape functions of the LST are derived using the area coordinates
of Equation (7.8) and the properties of shape functions (Ni = 1 at i and Ni = 0 at all
other nodes j ̸= i). Thus, Equation (7.18) gives the six shape functions in terms of
the area coordinates discussed in the previous section.
N1 = L1 (2 · L1 − 1); N4 = 4 · L1 · L2
N2 = L2 (2 · L2 − 1); N5 = 4 · L2 · L3 (7.18)
N3 = L3 (2 · L3 − 1); N6 = 4 · L1 · L3
All the shape functions are quadratic functions both in x and y, whose first par-
tial derivatives with respect to x or y becomes linear functions. The name linear-
@seismicisolation
@seismicisolation
2D Finite Element Analysis 385
strain-triangle came from this fact since strains are expressed in-terms of the partial
derivatives of the shape functions as given in Equation (7.19).
! ! !
6 ∂ Ni 6 ∂ Ni 6 ∂ Ni ∂ Ni
εx = ∑ · u i εy = ∑ · vi γxy = ∑ · ui + · vi (7.19)
i=1 ∂x i=1 ∂y i=1 ∂y ∂x
The stiffness matrix of an LST is then given by Equation (7.14) as given below.
ZZ
k=t· BT · D · B dA
A
Example 7.4 For the plate given in Example 7.3 (a) determine the global stiffness
matrix of the plate; (b) determine the unknown nodal displacements; and (c) compute
the stress developed at the centroid of each triangular element. Use two linear strain
triangles as shown in Figure 7.15.
@seismicisolation
@seismicisolation
386 Matrix Structural Analysis and the Finite Element Methods
SOLUTION
As shown in Figure 7.15 the two LSTs the nine node with circled global node numbers
from 1 to 9. Accordingly, the element connectivity matrix is given as follows. Note
that there are two DOFs at each node of such 2D elements.
Element #1 Element #2
Node-1 1 1
Node-2 2 3
Node-3 3 4
Node-4 5 9
Node-5 6 7
Node-6 9 8
Element #1:
1 1 1
1
A = 2 0 800 800 = 240, 000
0 0 600
1 1 1
1
A1 = 2 x 800 800 = 240, 000 − 300 · x − 50 · y
y 0 600
1 1 1
1
A2 = 2 0 x 800 = 300 · x − 400 · y
0 y 600
1 1 1
1
A3 = 2 0 800 x = 400 · y
0 0 y
@seismicisolation
@seismicisolation
2D Finite Element Analysis 387
A1
L1 =
A
A2
L2 =
A
A3
L3 =
A
x2 3·x
N1 = L1 · (2L1 − 1) = − +1
320, 000 800
x2 y2 x·y x y
N2 = L2 · (2L2 − 1) = + − − +
320, 000 180, 000 120, 000 800 600
y2 y
N3 = L3 · (2L3 − 1) = −
32, 000 600
x2 x·y x y
N4 = 4 · L1 · L2 =− + + −
160, 000 120, 000 200 150
y2 x·y
N5 = 4 · L2 · L3 =− −
90, 000 120, 000
x·y y
N6 = 4 · L1 · L3 =− +
120, 000 150
∂N ∂N
and required in the strain–displacement matrix B are derived as follows.
∂x ∂y
∂ N1 x 3
= −
∂x 160, 000 800
∂ N2 x y 1
= − −
∂x 160, 000 120, 000 800
∂ N3
= 0
∂x
∂ N4 x y 1
= − + +
∂x 80, 000 120, 000 200
∂ N5 y
=
∂x 120, 000
∂ N6 y
= −
∂x 120, 000
@seismicisolation
@seismicisolation
388 Matrix Structural Analysis and the Finite Element Methods
and
∂ N1
= 0
∂y
∂ N2 y x 1
= − +
∂y 90, 000 120, 000 600
∂ N3 y 1
= −
∂y 90, 000 600
∂ N4 x 1
= −
∂y 120, 000 150
∂ N5 y x
= − +
∂y 45, 000 120, 000
∂ N6 x 1
= − +
∂y 120, 000 150
x y y y
− + +5 0 0 − 0
80 120 120 120
x 20 y x x 20
0 − 0 − + 0 − +
120 3 45 120 120 3
x 20 x y y x y x 20 y
− − + +5 − + − + −
120 3 80 120 45 120 120 120 3 120
(7.21)
The elasticity (constitutive) matrix for a plane stress case is given below.
1 0
ν
3000 900 0
E ν 1 0 1
D= = 13 · 900 3000 0 (7.22)
1 − ν2
1−ν
0 0 0 0 1050
2
@seismicisolation
@seismicisolation
2D Finite Element Analysis 389
−1/600
0 0 1/600 0 0
0 −1/450 0 0 0 1/450
The corresponding stiffness matrix is thus obtained (just like a CST element) us-
ing Equation (7.14), K = BTc · D · Bc · t · A. But the resulting element stiffness matrix,
shown in Equation (7.23), is incorrect.
k1c =
9.62 0 −9.62 3.85 0 −3.85 0 15.38
−3.37 −4.49
0 3.37 4.49 0 17.95 0
−9.62 4.49 15.6 −8.33 −5.98 3.85 23.93 −15.38
3.85 −3.37 −8.33 20.46 4.49 −17.09 −17.95 68.38
0 −4.49 −5.98 4.49 5.98 0 −23.93 0
−3.85 0 3.85 −17.09 0 17.09 0 −68.38
0 17.95 23.93 −17.95 −23.93 0 95.73 0
15.38
0 −15.38 68.38 0 −68.38 0 273.5
−38.46 0 38.46 −15.38 0 15.38 0 −61.54
0 −13.46 −17.95 13.46 17.95 0 −71.79 0
38.46 −17.95 −62.39 33.33 23.93 −15.38 −95.73 61.54
−15.38 13.46 33.33 −81.84 −17.95 68.38 71.79 −273.5
@seismicisolation
@seismicisolation
390 Matrix Structural Analysis and the Finite Element Methods
−38.46 0 38.46 −15.38
−13.46 −17.95
0 13.46
38.46 −17.95 −62.39 33.33
−15.38 13.46 33.33 −81.84
0 17.95 23.93 −17.95
15.38 0 −15.38 68.38
(7.23)
0 −71.79 −95.73 71.79
−61.54 0 61.54 −273.5
153.85 0 −153.85 61.54
0 53.85 71.79 −53.85
−153.85 71.79 249.57 −133.33
61.54 −53.85 −133.33 327.35
@seismicisolation
@seismicisolation
2D Finite Element Analysis
K1 =
1 2 3 4 5 6 9 10 11 12 17 18
−11.54 −115.38 −46.15
86.54 0 28.85 0 11.54 46.15 0 0 0 1
0 30.29 −13.46 10.1 13.46 0 53.85 −40.38 0 0 −53.85 0 2
28.85 −13.46 140.38 −75 17.95 −11.54 −115.38 53.85 −71.79 46.15 0 0 3
−11.54 10.1 −75 184.13 −13.46 51.28 46.15 −40.38 53.85 −205.13 0 0 4
−13.46 −71.79 −53.85
0 13.46 17.95 53.85 0 0 0 53.85 0 5
11.54 0 −11.54 51.28 0 153.85 0 0 46.15 −205.13 −46.15 0 6
−115.38 53.85 −115.38 46.15 0 0 374.36 −100 0 −100 −143.59 100 9
46.15 −40.38 53.85 −40.38 0 0 −100 491.03 −100 0 100 −410.26 10
0 0 −71.79 53.85 −71.79 46.15 0 −100 374.36 −100 −230.77 100 11
0 0 46.15 −205.13 53.85 −205.13 −100 0 −100 491.03 100 −80.77 12
0 −53.85 0 0 0 −46.15 −143.59 100 −230.77 100 374.36 −100 17
−46.15 0 0 0 −53.85 0 100 −410.26 100 −80.77 −100 491.03 18
(7.24)
391
@seismicisolation
@seismicisolation
392 Matrix Structural Analysis and the Finite Element Methods
A similar procedure is used to determine the six shape functions and their partial
derivatives with respect to x and y for Element #2. Using these values, the strain-
displacement matrix B2 for Element #2 is given by the following expression.
x 5 x y 5
0 0 − 0 − + 0
160 4 160 120 4
B2 = 10−3 0
y x y 5
−5 0 0 0 + −
90 120 90 3
y x 5 x y 5 x y 5
−5 0 0 − − + − − −
90 160 4 120 90 3 160 120 4
y x y y
5− 0 − + 0 −5 0
120 80 120 120
x x x y 20
0 − 0 0 − +
120 120 120 45 3
x y x x y x y 20 y
5− − + − + −5
120 120 120 80 120 120 45 3 120
(7.25)
@seismicisolation
@seismicisolation
2D Finite Element Analysis
K2 =
1 2 5 6 7 8 17 18 13 14 15 16
−13.46 −53.85 −71.79
53.85 0 0 13.46 17.95 0 0 0 53.85 1
0 153.85 11.54 0 −11.54 51.28 −46.15 0 0 0 46.15 −205.13 2
0 11.54 86.54 0 28.85 −11.54 0 −46.15 −115.38 46.15 0 0 3
13.46
0 0 30.29 −13.46 10.1 −53.85 0 53.85 −40.38 0 0 4
−11.54 −13.46 −75 −115.38 −71.79
17.95 28.85 140.38 0 0 53.85 46.15 7
−13.46 51.28 −11.54 10.1 −75 184.13 0 0 46.15 −40.38 53.85 −205.13 8
0 −46.15 0 −53.85 0 0 374.36 −100 −143.59 100 −230.77 100 17
−53.85 0 −46.15 0 0 0 −100 491.03 100 −410.26 100 −80.77 18
0 0 −115.38 53.85 −115.38 46.15 −143.59 100 374.36 −100 0 −100 13
0 0 46.15 −40.38 53.85 −40.38 100 −410.26 −100 491.03 −100 0 14
−71.79 46.15 0 0 −71.79 53.85 −230.77 100 0 −100 374.36 −100 15
53.85 −205.13 0 0 46.15 −205.13 100 −80.77 −100 0 −100 491.03 16
(7.26)
393
@seismicisolation
@seismicisolation
matrix K is obtained as given in Equation (7.27).
394
By “selectively adding” K1 and K2, the 18 × 18 assembled structure stiffness
1 2 3 4 5 6 7 8
140.38 0 28.85 −11.54 0 25.00 17.95 −13.46
@seismicisolation
@seismicisolation
2D Finite Element Analysis
9 10 11 12 13 14 15 16 17 18
−115.38 46.15 0 0 0 0 −71.79 53.85 0 −100 1
53.85 −40.38 0 0 0 0 46.15 −205.13 −100 0 2
−115.38 53.85 −71.79 46.15 0 0 0 0 0 0 3
46.15 −40.38 53.85 −205.13 0 0 0 0 0 0 4
−71.79 −115.38 −100
0 0 53.85 46.15 0 0 0 5
0 0 46.15 −205.13 53.85 −40.38 0 0 −100 0 6
0 0 0 0 −115.38 53.85 −71.79 46.15 0 0 7
0 0 0 0 46.15 −40.38 53.85 −205.13 0 0 8
−100 −100 0 −143.59
374.36 0 0 0 0 100 9
−100 491.03 −100 0 0 0 0 0 100 −410.26 10
0 −100 374.36 −100 0 0 0 0 −230.77 100 11
−100 0 −100 491.03 0 0 0 0 100 −80.77 12
0 0 0 0 374.36 −100 0 −100 −143.59 100 13
0 0 0 0 −100 491.03 −100 0 100 −410.26 14
0 0 0 0 0 −100 374.36 −100 −230.77 100 15
0 0 0 0 −100 0 −100 491.03 100 −80.77 16
−143.59 100 −230.77 100 −143.59 100 −230.77 100 748.72 −200 17
100 −410.26 100 −80.77 100 −410.26 100 −80.77 −200 982.05 18
395
@seismicisolation
@seismicisolation
396 Matrix Structural Analysis and the Finite Element Methods
To convert the uniformly distributed load on the face 2–3 into an equivalent nodal
load at the global node numbers 2, 6 and 3, the third part of Equation (6.11) is used
according to the S coordinate shown in Figure 7.17.
The corresponding shape function is derived as follows.
s − s2 s − s3 (s − 300) × (s − 600)
N1 = · =
s1 − s2 s1 − s3 180, 000
s − s1 s − s3 s × (s − 600)
N2 = · =
s2 − s1 s2 − s3 −90, 000
s − s1 s − s2 s × (s − 300)
N3 = · =
s3 − s1 s3 − s2 180, 000
N = [N1 , N2 , N3 ]
Z 600
Performing the integration le f t( N T · q · dsright) for the given load q = 150
0
N/mm, the three equivalent loads are obtained to be:
f1 = A j3 = 15 kN
f2 = A j11 = 60 kN
f3 = A j5 = 15 kN
Nodes 1, 4 and 8 are restrained, hence the rows and columns corresponding to
DOFs 1, 2, 7, 8, 15 and 16 need to be removed to obtain the modified stiffness matrix
of the structure as shown below.
@seismicisolation
@seismicisolation
2D Finite Element Analysis
K1 =
3 4 5 6 9 10 11 12 13 14 17 18
−75 −11.54 −115.38 −71.79
140.38 17.95 53.85 46.15 0 0 0 0 3
−75 184.13 −13.46 51.28 46.15 −40.38 53.85 −205.13 0 0 0 0 4
17.95 −13.46 140.38 0 0 0 −71.79 53.85 −115.38 46.15 0 −100 5
−11.54 51.28 0 184.13 0 0 46.15 −205.13 53.85 −40.38 −100 0 6
−115.38 −100 −100 −143.59
46.15 0 0 374.36 0 0 0 100 9
53.85 −40.38 0 0 −100 491.03 −100 0 0 0 100 −410.26 10
−71.79 53.85 −71.79 46.15 0 −100 374.36 −100 0 0 −230.77 100 11
46.15 −205.13 53.85 −205.13 −100 0 −100 491.03 0 0 100 −80.77 12
0 0 −115.38 53.85 0 0 0 0 374.36 −100 −143.59 100 13
0 0 46.15 −40.38 0 0 0 0 −100 491.03 100 −410.26 14
0 0 0 −100 −143.59 100 −230.77 100 −143.59 100 748.72 −200 17
0 0 −100 0 100 −410.26 100 −80.77 100 −410.26 −200 982.05 18
(7.28)
397
@seismicisolation
@seismicisolation
398 Matrix Structural Analysis and the Finite Element Methods
Solving for the free joint displacements using D j = inv(Km) × A j gives the fol-
lowing values, all in mm.
The stresses (σx , σy , τxy ) for each element at their respective nodes are obtained
using the relationship σ = D · B · d, where B is the strain–displacement matrix to be
evaluated using the (x, y) coordinate of each node in Equations (7.21) and (7.25), D
is the constitutive matrix computed in Equation (7.22) and d is the vector of nodal
displacements provided in Equation (7.29); and Table 7.1 summarizes these nodal
stress computation results.
This result shows that according to the finite element analysis, while displace-
ments must be unique at common nodes, stresses may not be exactly equal at such
nodes, observe the results at global DOFs 1, 3 and 9 in Table 7.1.
The corresponding Octave code showing the complete solution steps is given in
the listing below.
@seismicisolation
@seismicisolation
2D Finite Element Analysis 399
TABLE 7.1
Nodal Stresses of the Two-LSTs Plate
Element #1 Element #2
Global
σx σy τxy Local σx σy τxy Local
1 157.13 9.70 9.14 1 147.93 44.38 8.40 1
2 141.98 −4.51 −6.01 2
3 153.85 −3.53 −0.91 3 151.21 −36.87 4.70 2
4 147.90 44.37 −15.32 3
5 149.56 2.60 1.56 4
6 147.91 −4.02 −3.46 5
7 149.56 3.75 −5.31 5
8 147.91 44.37 −3.46 6
9 155.49 3.09 4.12 6 149.57 3.76 6.55 4
Scilab/Octave Code
1 % Example 7.4 - 2D Plane stress analysis of plate
2 % Using Two Linear Strain Triangles
3 clc
4 clear all
5 warning off
6
@seismicisolation
@seismicisolation
400 Matrix Structural Analysis and the Finite Element Methods
21 function B = getB(XY)
22 syms x y real;
23 % Total Area for use in Area coordinates
24 A = det([1 1 1;XY(1,1) XY(2,1) XY(3,1); ...
25 XY(1,2) XY(2,2) XY(3,2)])/2;
26 A1 = det([1 1 sym(1); x XY(2,1) XY(3,1); ...
27 y XY(2,2) XY(3,2)])/2;
28 A2 = det ([1 1 sym(1); XY(1,1) x XY(3,1); ...
29 XY(1,2) y XY(3,2)])/2;
30 A3 = det ([1 1 sym(1); XY(1,1) XY(2,1) x; ...
31 XY(1,2) XY(2,2) y])/2;
32
46 simplify(N);
47 % Partial derivatives
48 Nx = diff(N,x);
49 Ny = diff(N,y);
50
65 B1 = getB(XY1);
@seismicisolation
@seismicisolation
2D Finite Element Analysis 401
69 % y - Limits
70 y1 = sym(3)*x/4;
71 Int1 = int(int(fun,y,0,y1),x,0,800);
72
80 B2 = getB(XY2);
81
85 % y - Limits
86 y1 = sym(3)*x/4;
87 Int1 = int(int(fun,y,y1,600),x,0,800);
88
95 % Assembling Element %1
96 for m = 1:12
97 r = con(1,m);
98 for n = 1:12
99 c = con(1,n);
100 disp([r,c]);
101 K(r, c) = K(r, c) + K1(m,n);
102 endfor;
103 endfor;
104
@seismicisolation
@seismicisolation
402 Matrix Structural Analysis and the Finite Element Methods
@seismicisolation
@seismicisolation
2D Finite Element Analysis 403
(a − x)(b − y)
N1 =
4ab
(a + x)(b − y)
N2 =
4ab
(7.30)
(a + x)(b + y)
N3 =
4ab
(a − x)(b + y)
N4 =
4ab
In terms of the known-unknowns, the displacement at any point (x, y) within the
rectangular region is given by 7.31.
@seismicisolation
@seismicisolation
404 Matrix Structural Analysis and the Finite Element Methods
u1
v1
u2
" # " #
u N1 0 N2 0 N3 0 N4 0 v2
= (7.31)
v 0 N1 0 N2 0 N3 0 N4
u3
v3
u4
v4
∂ N1 − (b − y) ∂ N1 − (a − x)
= =
∂x 4ab ∂y 4ab
∂ N2 (b − y) ∂ N2 − (a − x)
= =
∂x 4ab ∂y 4ab
(7.32)
∂ N3 (b + y) ∂ N3 (a + x)
= =
∂x 4ab ∂y 4ab
∂ N4 − (b + y) ∂ N4 (a − x)
= =
∂x 4ab ∂y 4ab
ZZ
k=t· BT · D · B dA
A
Example 7.5 For the plate given in Example 7.3, determine the element stiffness
matrix, nodal displacements and the stresses at the center of considering it as a
single rectangular element.
SOLUTION
The rectangular element has four nodes and eight DOFs (two at each node); see
Figure 7.19.
@seismicisolation
@seismicisolation
2D Finite Element Analysis 405
The shape functions of the rectangular element are determined using Equation
(7.30) as shown below.
(400 − x)(300 − y)
N1 =
480, 000
(400 + x)(300 − y)
N2 =
480, 000
(400 + x)(300 + y)
N3 =
480, 000
(400 − x)(300 + y)
N4 =
480, 000
−300 − y
0 0
400 + x 0 400 − x
@seismicisolation
@seismicisolation
406 Matrix Structural Analysis and the Finite Element Methods
The constitutive matrix D, for a plane stress problem, is given in Equation (6.10).
The stiffness matrix is obtained by integrating each term of the 8 × 8 (BT · D · B · t)
expressions within the limits (−400 to 400) for x and (−300 to 300) for y.
K=
93.59 37.50 −39.74 −2.88 −46.79 −37.50 −7.05 2.88
31.09 −37.50 −61.38 −2.88 −92.47
37.50 122.76 2.88
−39.74 2.88 93.59 −37.50 −7.05 −2.88 −46.79 37.50
−2.88 31.09 −37.50 122.76 2.88 −92.47 37.50 −61.38
−46.79 −37.50 −7.05 2.88 93.59 37.50 −39.74 −2.88
−37.50 −61.38 −2.88 −92.47 37.50 122.76 2.88 31.09
−7.05 −2.88 −46.79 37.50 −39.74 2.88 93.59 −37.50
2.88 −92.47 37.50 −61.38 −2.88 31.09 −37.50 122.76
(7.34)
The equivalent nodal load for the uniformly distributed is 150 × 600/2000 = 45,
to be applied at nodes 2 and 3 to the right.
45
0
⇒ Aj = 45 kN
0
Nodes 1 and 4 are restrained, hence the rows and columns corresponding to
DOFs 1, 2, 7 and 8 are removed to obtain the modified stiffness matrix of the plate
as shown below.
93.59 −37.50 −7.05 −2.88
−37.50 122.76 2.88 −92.47
Km =
−7.05 2.88 93.59 37.50
−2.88 −92.47 37.50 122.76
@seismicisolation
@seismicisolation
2D Finite Element Analysis 407
Solving for the nodal displacements using D j = inv(Km) · A j gives the following
values.
D j1 0.556
D j2 0.089
= (7.35)
D j3 0.556 mm
D j4 −0.089
For all the nodes, the complete structure displacement vector d is given as fol-
lows.
0
0
0.556
0.089
d= mm (7.36)
0.556
−0.089
0
0
The stresses (σx , σy , τxy ) for the element at the center are obtained as given
below using the relationship σ = D · B · d, where B is the strain–displacement matrix
to be evaluated at the center (0, 0), D is the constitutive matrix and d is the complete
vector of nodal displacements provided in Equation (7.36).
σx 150.0
σy = D × B × d = 13.72 MPa (7.37)
τxy 0
The corresponding Octave code showing the complete solution steps is given in
the listing below.
@seismicisolation
@seismicisolation
408 Matrix Structural Analysis and the Finite Element Methods
Scilab/Octave Code
1 % Example 7.5 - 2D Stress Analysis
2 % Using Rectangular Element
3 clc
4 clear all
5 warning off
6 %% Units are in kN and mm
7 E = 210; t = 1; % in kN/mm2, mm
8 v = 3/10; % nu = 0.3
9
@seismicisolation
@seismicisolation
2D Finite Element Analysis 409
49 % Restrained DOFs : 1 2 7 8
50 % Free Joints: 3 4 5 6
51 % The load vector corresponding to the Free joints is:
52 Aj = double([F 0 F 0]')
53
58 for i=1:length(res)
59 d = sort(res,"descend");
60 Km(d(i),:) = []; % Remove rows
61 Km(:,d(i)) = []; % Remove columns
62 endfor;
63
@seismicisolation
@seismicisolation
410 Matrix Structural Analysis and the Finite Element Methods
FIGURE 7.20 Coordinate Systems: (a) Global CS, (b) Local CS, (c) Natural CS.
Xi and Xj in the global coordinate system X–Y which is used to describe all the nodes
and elements of the structure. A local Cartesian coordinate system x–y is used in Fig-
ure 7.20(b), in which the same element now runs from 0 (at node i) to L (at node j).
In Figure 7.20(c), on the other hand, a natural coordinate system s-t is used such that
the element assumes values −1 and 1 at the two end nodes i and j, respectively.
The natural coordinate system has several advantages; to mention a few, it:
• Enables to describe each element in a mesh using a uniform dimensionless
expression irrespective of the element’s location and size
• Makes the derivation of shape functions simple
• Facilitates numerical integration to simplify computations like the stiffness
matrix and nodal load vector
• Is used to describe elements having any non-orthogonal shapes including
those with curved edges
There is always a clear relationship between the global, local and natural coor-
dinate systems. For the 1D element given in Figure 7.20, noting that (X j –Xi ) is the
element length L, the global and natural coordinate systems are related using the
following expressions.
L 2(X − Xi)
X = Xi + · (s + 1) or s = −1 (7.38)
2 L
The linear shape function for the 1D element in terms of the natural coordinate
is given by:
1−s 1+s
Ni = , Nj = (7.39)
2 2
Iso-Parametric Representation
Isoparametric representation is the way in which the same shape function is used to
interpolate the geometry of an element and also its nodal displacements. The shape
@seismicisolation
@seismicisolation
2D Finite Element Analysis 411
functions in the Iso-P case are required to be in the natural coordinate system. The
relationship between X and s given in Equation (7.38) can also be obtained by inter-
polation of the element geometry using X = Ni · Xi + N j · X j as outlined below.
1−s
X = 2 · Xi + 1+s
2 · Xj
Xi +X j X j −Xi
= ( 2 )+( 2 )·s
(7.40)
= (Xi + L2 ) + L
2 ·s
⇒X = Xi + L2 · (1 + s)
n n
u = ∑ Ni · ui v = ∑ Ni · vi
i=1 i=1
@seismicisolation
@seismicisolation
412 Matrix Structural Analysis and the Finite Element Methods
where J = dxds = L/2 is termed as the Jacobian matrix, and it provides the deriva-
tive relationship between the global and natural coordinates.
The stiffness matrix of a two-noded bar element can also be determined using the
natural coordinates as shown below:
Z
k = BT · D · B · A · dx
L
−1
" # Z 1
L
= 1
· E · [ −1
L
1
L] · A · J · ds
−1
L
−1
" #
E ·A 1
L
= 2 2 · s|1−1
L −1 1
−1
" #
E ·A 1
=
L −1 1
This result is the same as that derived previously in Section 6.7.1; showing that
the stiffness matrix is independent of the coordinate system selected for the element.
FIGURE 7.21 Quadrilateral Element: (a) Global CS, (b) Iso-P Mapping in Natural
CS.
@seismicisolation
@seismicisolation
2D Finite Element Analysis 413
(1 − r)(1 − s)
N1 =
4
(1 + r)(1 − s)
N2 =
4
(7.43)
(1 + r)(1 + s)
N3 =
4
(1 − r)(1 + s)
N4 =
4
The corresponding displacement functions u and v as well as the geometry x
and y are obtained by interpolating the four nodal values using the shape functions
derived in Equation (7.43), as shown in Equation (7.44).
x = N1 · x1 + N2 · x2 + N3 · x3 + N4 · x4
y = N1 · y1 + N2 · y2 + N3 · y3 + N4 · y4
(7.44)
u = N1 · u1 + N2 · u2 + N3 · u3 + N4 · u4
v = N1 · v1 + N2 · v2 + N3 · v3 + N4 · v4
@seismicisolation
@seismicisolation
414 Matrix Structural Analysis and the Finite Element Methods
Thus, the partial derivatives of a function f w.r.t x and y are thus given by Equa-
tion (7.47). !
∂f 1 ∂y ∂ f ∂y ∂ f
= · · − ·
∂ x |J| ∂s ∂r ∂r ∂s
! (7.47)
∂f 1 ∂x ∂ f ∂x ∂ f
= · − · + ·
∂ y |J| ∂s ∂r ∂r ∂s
The general relationship to determine the stiffness matrix given in Equation
(6.10) is modified for the isoparametric quadrilateral element as shown in Equation
(7.48). ZZZ
k = B(x, y)T · D · B(x, y) dv
V
ZZ
= B(x, y)T · D · B(x, y) · t dxdy (7.48)
A
Z 1Z 1
= B(r, s)T · D · B(r, s) · t |J|drds
−1 −1
The following example demonstrates the isoparametric formulation using a rect-
angular element.
Example 7.6 For the plate given in Example 7.3, use isoparametric representation
and determine:
a) x, y in terms of r, s; consider the lower left node to be origin of the global CS
b) The Jacobian matrix and its determinant
c) Displacement functions u and v in-terms of r and s
SOLUTION
The isoparametric mapping of the rectangular element is shown in Figure 7.22.
The shape functions of the element in the natural coordinate system are given in
@seismicisolation
@seismicisolation
2D Finite Element Analysis 415
Node 2 is @ (800, 0)
@seismicisolation
@seismicisolation
416 Matrix Structural Analysis and the Finite Element Methods
(b) Computing the partial derivatives, the Jacobian matrix is determined as fol-
lows.
∂x ∂y " #
∂ r ∂ r 400 0
J= =
∂ x ∂ y 0 300
∂s ∂s
∂u 1
= · (−u1 (1 − s) + u2 (1 − s) + u3 (1 + s) − u4 (1 + s))
∂ x 1600
∂u 1
= · (−u1 (1 − r) − u2 (1 + r) + u3 (1 + r) + u4 (1 − r))
∂ y 1200
∂v 1
= · (−v1 (1 − s) + v2 (1 − s) + v3 (1 + s) − v4 (1 + s))
∂ x 1600
∂v 1
= · (−v1 (1 − r) − v2 (1 + r) + v3 (1 + r) + v4 (1 − r))
∂ y 1200
3 ∗ (s − 1) −3 ∗ (s − 1)
0 0
1
B= 0 4 ∗ (r − 1) 0 −4 ∗ (r + 1) · · ·
4800
4 ∗ (r − 1) 3 ∗ (s − 1) −4 ∗ (r + 1) −3 ∗ (s − 1)
@seismicisolation
@seismicisolation
2D Finite Element Analysis 417
3 ∗ (s + 1) −3 ∗ (s + 1)
0 0
0 4 ∗ (r + 1) 0 −4 ∗ (r − 1) (7.49)
4 ∗ (r + 1) 3 ∗ (s + 1) −4 ∗ (r − 1) −3 ∗ (s + 1)
(e) The constitutive matrix D is given in Equation (7.22). All the terms of the
expression (BT · D · B) in Equation (6.10) have quadratic functions in r and s. The
stiffness matrix is obtained by integrating each term of this 8 × 8 expressions within
the limits (−1 to 1) for both r and s.
K=
93.59 37.50 −39.74 −2.88 −46.79 −37.50 −7.05 2.88
31.09 −37.50 −61.38 −2.88 −92.47
37.50 122.76 2.88
−39.74 2.88 93.59 −37.50 −7.05 −2.88 −46.79 37.50
−2.88 31.09 −37.50 122.76 2.88 −92.47 37.50 −61.38
−46.79 −37.50 −7.05 2.88 93.59 37.50 −39.74 −2.88
−37.50 −61.38 −2.88 −92.47 37.50 122.76 2.88 31.09
−7.05 −2.88 −46.79 37.50 −39.74 2.88 93.59 −37.50
2.88 −92.47 37.50 −61.38 −2.88 31.09 −37.50 122.76
(7.50)
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 % Example 7.6 - 2D Element Stiffness
2 % Rectangular Element using Natural Coordinate System
3 clc
4 clear all
5 warning off
6 %% Units are in kN and mm
7 E = 210; th = 1; % in kN/mm2, mm
8 nu = 3/10; % nu = 0.3
9
10 % Coordinates, in mm
11 XY = [0, 0; 800, 0; 800, 600; 0, 600];
12
@seismicisolation
@seismicisolation
418 Matrix Structural Analysis and the Finite Element Methods
15 syms x y r s u1 u2 u3 u4 v1 v2 v3 v4 B real;
16
33 x = simplify(x)
34 y = simplify(y)
35
@seismicisolation
@seismicisolation
2D Finite Element Analysis 419
Z 1 n
I= f (x)dx ≈ ∑ wi · f (xi ) (7.52)
−1 i=1
@seismicisolation
@seismicisolation
420 Matrix Structural Analysis and the Finite Element Methods
TABLE 7.2
Gauss Quadrature Nodes and Weights
n xi wi
1 0 2
1
2 ±√ 1
3
8
0
3 r 9
3 5
±
5 9
s r √
3 2 6 18 + 30
± −
4 7 7 5 36
s r √
3 2 6 18 − 30
± +
7 7 5 36
128
0
225
5 s r √
1 10 322 + 13 70
± 5−2
3 7 900
s r √
1 10 322 − 13 70
± 5+2
3 7 900
limited number of integration points in books [3, 25, 42, 48], and on the internet
[19] for a large set of integration points including the background on how these
values are derived. For the first five Gauss quadrature rules, the integration points
and corresponding weighting values are listed in Table 7.2.
3x2
Z 12
I= dx
4 ln(x − 1)
SOLUTION
Before considering the Gauss quadrature, the limits of integration need to be con-
verted into the range −1 to 1. This can be accomplished by using the coordinate
transformation as discussed earlier in the IsoP section. Accordingly, x and s (global
and natural coordinates) are related as follows.
@seismicisolation
@seismicisolation
2D Finite Element Analysis 421
x − x1 x − 4 s − (−1)
= =
x2 − x1 8 2
⇒ x = 4s + 8
dx
and J = =4
ds
The given integral I expressed in terms of the natural coordinates s becomes as
given below.
Z 12
3x2
Z 1
3(4s + 8)2 n
I= dx = 4 ds ≈ ∑ wi · f (si )
4 ln(x − 1) −1 ln(4s + 7) 1
(4s + 8)2
where: f (s) = 12
ln(4s + 7)
The numerical integration according to the Gauss quadrature is performed in
Table 7.3 for up to five integration points. The result 823.6722774679 is accurate to
10 decimal places obtained, which is computed for 15 integration points.
TABLE 7.3
Numerical Integration Using Gauss Quadrature in 1D
n x f (x) w w ∗ f (x) In
@seismicisolation
@seismicisolation
422 Matrix Structural Analysis and the Finite Element Methods
GAUSS QUADRATURE IN 2D
Consider the double integral – with limits from −1 to 1 for both the variables r and s
– given in Equation (7.53).
Z 1Z 1
I= f (r, s)drds (7.53)
−1 −1
This can be numerically evaluated by integrating first with respect to r and then
with respect to s, as shown in Equation (7.54).
Z 1Z 1
I= f (r, s)drds
−1 −1
Z 1 n
≈ ∑ wri · f (ri , s)ds
−1 i=1
m n
≈ ∑ ws j ∑ wri · f (ri , s j )
j=1 i=1
m n
≈ ∑ ∑ wri ws j · f (ri , s j ) (7.54)
j=1 i=1
where:
m and n are the number of integration points along the axes r and s, respectively.
Example 7.8 Consider the rectangular plate in 7.6. The stiffness matrix was evalu-
ated by integrating the expression B′ · D · B · th · |J| (where th is the thickness and |J|
is the determinant of the Jacobian matrix) within the limits −1 to 1 for both r and s,
as shown in Equation (7.50). The corresponding function to be integrated for k(1,1)
is given by the expression below.
Z 1Z 1
25
28r2 − 56r + 45s2 − 90s + 73 drds
k(1, 1) =
−1 −1 104
Evaluate this integral using a 2 × 2 Gauss quadrature.
SOLUTION
q
For a 2 × 2 Gauss quadrature, the integration points are at ± 13 and the weights
equal 1. The numerical integration of k(1, 1) using a 2 × 2 Gauss quadrature is per-
formed in Table 7.4.
@seismicisolation
@seismicisolation
2D Finite Element Analysis 423
TABLE 7.4
Numerical Integration Using Gauss Quadrature in 2D
(r, s) f (r, s) wr × ws wr · ws · f (r, s) k(1, 1)
− √13 , − √13 43.6602 1 × 1 = 1 43.6602
√1 , − √1 28.1161 1 × 1 = 1 28.1161 93.5897
3 3
√1 , √1 3.1347 1 × 1 = 1 3.1347
3 3
− √13 , √13 18.6787 1 × 1 = 1 18.6787
@seismicisolation
@seismicisolation
424 Matrix Structural Analysis and the Finite Element Methods
FIGURE 7.24 Stresses for Axisymmetric Problem (a) Annulated Rectangular Ele-
ment dx × dr (b) Differential Stress Block dx × dr × dθ and (c) Stress Components
on the Differential Block.
σx
1−ν ν ν 0
εx
σ
r
ν
1−ν ν 0
εr
E
= · ×
σθ (1 + ν)(1 − 2ν)
ν ν 1−ν 0 εθ
1 − 2ν
τxr 0 0 0 γxr
2
1−ν ν ν 0
ν
1−ν ν 0
E
⇒D= for axisymmetric.
(1 + ν)(1 − 2ν)
ν ν 1−ν 0
1 − 2ν
0 0 0
2
(7.55)
Example 7.9 For the three-noded triangular axisymmetric elements shown in the
figure below, determine the element stresses and also the nodal forces. Let E = 105
GPa and ν = 0.25. The dimensions of the element are in mm and the nodal displace-
ments are u1= 0.05 mm, w1 = 0.03 mm; u2 = 0.01 mm, w2 = 0.01 mm; u3 = 0.0 mm,
w3 = 0.0 mm.
SOLUTION
To determine the stresses, first the strain–displacement matrix B need to be eval-
uated, which depends on the shape function of the element. To compute the shape
@seismicisolation
@seismicisolation
2D Finite Element Analysis 425
@seismicisolation
@seismicisolation
426 Matrix Structural Analysis and the Finite Element Methods
3
w = ∑ Ni · wi
i=1
The four strains (εr , εz , εθ and γrz ) are expressed in terms of the known-unknowns
as follows.
∂
εr ∂r 0
ε 0 ∂∂z
" #
z u
= ×
1
εθ r 0 w
γrz ∂ ∂
∂z ∂r
The strain–displacement matrix B is thus derived as follows.
1 1
− 0 0 0 0
60 60
1 1
0 0 0 − 0
50 50
B= 60 − r
(7.56)
50r − 60z z
0 0 0
60r 3000r 50r
1 1 1 1
0 − − 0
60 50 60 50
The B matrix, especially the εθ components are not constant and they are depen-
dent both on r and z. Furthermore, these elements of B become undefined at r = 0. To
compute the stresses over the element, the centroid of the triangular element – (r,z)
= (40,50/3) – is taken as representative point. B computed at the centroid yields the
following.
@seismicisolation
@seismicisolation
2D Finite Element Analysis 427
1 1
− 0 0 0 0
60 60
1 1
0 0 0 − 0
50 50
Bc =
1
1 1
0 0 0
120 120 120
1 1 1 1
0 − − 0
60 50 60 50
The given nodal displacements are d = [0.05 0.03 0.01 0.01 0.0 0.0]T ; using
which, the stresses over the element are obtained as shown below.
[σ ] = [D][Bc ] × [d]
@seismicisolation
@seismicisolation
428 Matrix Structural Analysis and the Finite Element Methods
σr 141.35 60.58 60.58 0
σ 60.58 141.35 60.58 0
z
= 103 ×
×
σθ 60.58 60.58 141.35 0
τrz 0 0 0 40.38
0.05
1 1
− 0 0 0 0
60
60
0.03
1 1
0 0 0 − 0
0.01
50 50
×
1 1 1
0 0 0
0.01
120 120 120
1 1 1 1 0.0
0 − − 0
60 50 60 50
0.0
−76.06
σr
σ −38.37
z
⇒
=
MPa
σθ 18.17
τrz −21.54
The stiffness matrix for an axisymmetric element can be obtained from Equation
(6.10) as follows. ZZZ
k = BT · D · B dv
V
Z 2π ZZ
T
= B · D · B dA dθ
0 A (7.57)
ZZ
= 2π BT · D · B dA
A
Some of the terms in k can not be integrated at r = 0. Thus, the same B at the
centroid is used to compute an approximate element stiffness matrix, as follows.
k = 2πBTc · D · Bc A
@seismicisolation
@seismicisolation
2D Finite Element Analysis 429
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 %% Example 7.9 - Axisymmetric Element
2 %% Stiffness matrix of a 3-noded axisymmetric element
3 clc
4 clear all
5 warning off
6 %% Units are in kN and mm
7 E = 105 % in kN/mm2, mm
8 nu = 3/10;
9
31 simplify(N);
32
33 Nr = diff(N,r);
34 Nz = diff(N,z);
35
@seismicisolation
@seismicisolation
430 Matrix Structural Analysis and the Finite Element Methods
53 [N,B,As] = getB(XY);
54
55 % Structure displacements
56 d = [0.05 0.03 0.01 0.01 0.0 0.0]';
57
65 Kexact = double(int(IntR,40,100))
66
67 f = @(t) 175*pi*(t^3-140*t^2+7500*t-140000)/936/t^2
68 III = quad(f,40,100)
69
@seismicisolation
@seismicisolation
2D Finite Element Analysis 431
84
7.10 PROBLEMS
7.1 The coordinates of three nodded triangular elements are given in the table below.
In each case, determine the shape functions and also the stiffness matrix as a single
plane stress element if E = 72 GPa, ν = 0.29 and thickness = 5 mm (FPS: E = 10,500
ksi, ν = 0.29 and thickness = 0.2 in).
7.2 For the triangular elements in Problem 7.1, further information regarding the
nodal displacements and forces is given in the table below. For each of the five ele-
ments and each of the four load/displacement data, determine the unknown parame-
ters identified in the table? Also compute displacements and stresses at the element’s
centroid.
@seismicisolation
@seismicisolation
432
@seismicisolation
@seismicisolation
B2 2e−3 −0.012 ? ? 0 0.01 ? ? −4e−3 1.2e-3 ? ?
B3 ? ? 22.5 −22.5 ? ? 80 0 ? ? 45 45
B4 0 ? ? 56 0 8e−3 ? ? 0 ? ? −22.5
Matrix Structural Analysis and the Finite Element Methods
2D Finite Element Analysis 433
7.3 Analyze the cantilever plate shown in Figure 7.26a using the finite element
method dividing the plate into two CSTs both along 1–3 and 2–4. Compare the dis-
placement and stress results with that obtained analytically as a cantilever beam.
Use P = 45 kips, E = 30,000 ksi, ν = 0.3, L = 20 in and thickness = 0.5 in. (SI: P =
200 kN, E = 207 GPa, ν = 0.3, L = 500 mm and thickness = 12 mm).
7.4 Solve Problem 7.3 by dividing the plate into two LSTs both along 1–3 and 2–4.
Compare the displacement and stress results with the one obtained in Problem 7.3.
Use the same values for the parameters.
7.5 Solve Problem 7.3 as a single bi-linear rectangular element. Compare the dis-
placement and stress results with those obtained in Problems 7.3 and 7.4. Use the
same values for the parameters.
7.6 Determine the equivalent nodal load and analyze the linear strain triangle
shown in Figure 7.26b as a single finite element. The plate is supported such that
nodes 1, 4 and 2 are restrained against vertical movement while nodes 1, 6 and 3 are
also held against any horizontal movement. Use t = 0.25 in, E = 30e6 psi, ν = 0.3,
w1 = 1.5 ksi and w2 = 2.5 ksi. (SI: t = 6 mm, E = 200e6 GPa, ν = 0.3, w1 = 10 MPa
and w2 = 15 MPa).
@seismicisolation
@seismicisolation
434 Matrix Structural Analysis and the Finite Element Methods
7.7 Derive all the shape functions of the eight nodded rectangular elements
shown in Figure 7.26c.
7.8 The x–y coordinates of quadrilateral elements are given in the table below. In
each case, answer the problems following the table if E = 72 GPa, ν = 0.29 and
thickness = 5 mm (FPS: E = 10,500 ksi, ν = 0.29 and thickness = 0.2 in).
7.10 Perform a 2 × 2 Gauss quadrature to estimate the integral given below over
the quadrilateral area of Problem 7.8 (SI–4 or FPS–4).
Z
3 · y · x3 − 6 · y2 − 12 · x · y + 5 · x
dA
A 2·x+y
7.11 For each of the quadrilateral elements given in Problem 7.8, determine
the strain–displacement B and the stiffness matrix of the elements if used in an axis-
symmetric problem.
@seismicisolation
@seismicisolation
8 3D Finite Element Analysis
8.1 INTRODUCTION
Volume (3D) elements are the most general types of finite elements that are used
to analyze structures without any dimensional simplification. In the case of one-
dimensional (1D) analysis, the cross-sectional areas of the members of a given struc-
ture are assumed to be very small – compared to the length of the members; hence
line (1D) finite elements were used. In the case of two-dimensional (2D) analysis,
the thickness of the plate structure is assumed to be very small – compared to the
other dimensions of the structure; hence, area (2D) finite elements were used. As
an example, a simple beam-like structure that doesn’t fall into a 1D or 2D structure
type is shown in Figure 8.1. In spite of the difficulty associated with geometry and
mesh creation as well as the high computational demand, all kinds of structures can
be modeled using three-dimensional (3D) elements.
After studying this chapter, the reader will be able to
• Identify and model 3D solid problems
• Use volume coordinates to derive element equations of a tetrahedral ele-
ment
• Compute the equivalent nodal loads for surface and body forces in 3D
• Derive the equations for eight-node hexahedral elements
• Perform numerical integration for 3D elements using Gaussian quadrature
• Derive the element equations for a ten-noded tetrahedral element
• Use of Scilab or Octave to analyze simple 3D problems
u= a1 + a2 · x + a3 · y + a4 · z
v= b1 + b2 · x + b3 · y + b4 · z (8.1)
w = c1 + c2 · x + c3 · y + c4 · z
In terms of the known-unknowns, the displacement at any interior point (x, y,
and z) can also be given as provided in Equation (8.2). The strains over a tetrahedral
element – (which depend on the first partial derivatives of the displacements u, v, and
w, see Equation (6.4) – are all constants. Such an element is also called a Constant
Strain Tetrahedral Element (CSTet).
DOI:10.1201/9781003329350-10@seismicisolation
@seismicisolation 435
436 Matrix Structural Analysis and the Finite Element Methods
u1
v1
w1
u2
u N1 0 0 N2 0 N4 0 0
..
v = 0 N1 0 0 ... 0 0 N4 0 · . (8.2)
w 0 0 N1 0 N3 0 0 N4
w3
u4
v
4
w4
@seismicisolation
@seismicisolation
3D Finite Element Analysis 437
VOLUME COORDINATES
The shape functions of a tetrahedral element can be derived in the same way as that
of the constant strain triangle treated in Section 7.3. In place of area coordinates,
volume coordinates will be employed in the case of a CSTet, as discussed below.
The volume of a tetrahedron with vertices at (x1 , y1 , z1 ), (x2 , y2 , z2 ), (x3 , y3 , z3 ) and
(x4 , y4 , z4 ) is given by the determinant in Equation (8.3).
1 1 1 1
1 x1 x2 x3 x4
V= (8.3)
6 y1 y2 y3 y4
z1 z2 z3 z4
For an arbitrary point P (x,y,z) inside the tetrahedron, there will be four partial
tetrahedral elements, as shown in Figure 8.3. The volumes of these four tetrahedral
parts V1 , V2 , V3 and V4 are given as follows.
1 1 1 1 1 1 1 1
1
x x2 x3 x4 1
x1 x x3 x4
V1 = 6 V2 = 6
y y2 y3 y4 y1 y y3 y4
z z2 z3 z4 z1 z z3 z4
FIGURE 8.3 Tetrahedral Element for Volume Coordinates: (a) Point P Inside the
Tetrahedron 1-2-3-4, (b) Part Volume V1 (P-2-3-4), (c) Part Volume V2 (1-P-3-4),
(d) Part Volume V3 (1-2-P-4), and (e) Part Volume V4 (1-2-3-P).
@seismicisolation
@seismicisolation
438 Matrix Structural Analysis and the Finite Element Methods
1 1 1 1 1 1 1 1
1
x1 x2 x x4 1
x1 x2 x3 x
V3 = 6 V4 = 6 (8.4)
y1 y2 y y4 y1 y2 y3 y
z1 z2 z z4 z1 z2 z3 z
The volume coordinates L1 , L2 , L3 and L4 are defined as volume ratios for any
point P within the tetrahedron. These ratios will have values between 0 and 1 (0 ≤
Li ≤ 1) as computed using Equation (8.5), in which the areas V1 , V2 , V3 and V4 are
parts of the total volume shown in Figure 8.3. Volume coordinates are used to linearly
interpolate values within the tetrahedral element, in terms of the four nodal values.
V1 V2
L1 = , L2 =
V V (8.5)
V3 V4
L3 = , L4 =
V V
The shape functions for a CSTet are the same as the volume coordinates discussed
above, and they are given in Equation (8.6).
1
N1 = L1 = (α1 + β1 x + γ1 y + δ1 z)
6V
1
N2 = L2 = (α2 + β2 x + γ2 y + δ2 z)
6V (8.6)
1
N3 = L3 = (α3 + β3 x + γ3 y + δ3 z)
6V
1
N4 = L4 = (α4 + β4 x + γ4 y + δ4 z)
6V
The coefficients αi , βi , γi and δi are all constants that depend on the locations of
the four nodes of the CSTet. They can be obtained from the volume coordinates, as
shown in Equations (8.7)–(8.10).
x2 x3 x4 x1 x3 x4
1
α1 = 6 y2 y3 y4 α2 = − 16 y1 y3 y4
z2 z3 z4 z1 z3 z4
x1 x2 x4 x1 x2 x3
1
α3 = 6 y1 y2 y4 α4 = − 16 y1 y2 y3 (8.7)
z1 z2 z4 z1 z2 z3
1 1 1 1 1 1
β1 = − 16 y2 y3 y4 β2 = 1
6 y1 y3 y4
z2 z3 z4 z1 z3 z4
@seismicisolation
@seismicisolation
3D Finite Element Analysis 439
1 1 1 1 1 1
β3 = − 16 y1 y2 y4 β4 = 1
6 y1 y2 y3 (8.8)
z1 z2 z4 z1 z2 z3
1 1 1 1 1 1
1
γ1 = 6 x2 x3 x4 γ2 = − 16 x1 x3 x4
z2 z3 z4 z1 z3 z4
1 1 1 1 1 1
1
γ3 = 6 x1 x2 x4 γ4 = − 16 x1 x2 x3 (8.9)
z1 z2 z4 z1 z2 z3
1 1 1 1 1 1
δ1 = − 16 x2 x3 x4 δ2 = 1
6 x1 x3 x4
y2 y3 y4 y1 y3 y4
1 1 1 1 1 1
δ3 = − 16 x1 x2 x4 δ4 = 1
6 x1 x2 x3 (8.10)
y1 y2 y4 y1 y2 y3
0 0 0 0 0 0 0 0
β1 β2 β3 β4
0 γ1 0 0 γ2 0 0 γ3 0 0 γ4 0
1 0 0 δ1 0 0 δ2 0 0 δ3 0 0 δ4
B= (8.11)
6V
γ1 β1 0 γ2 β2 0 γ3 β3 0 γ4 β4 0
0 0 0 0
δ1 β1 δ2 β2 δ3 β3 δ4 β4
0 δ1 γ1 0 δ2 γ2 0 δ3 γ3 0 δ4 γ4
@seismicisolation
@seismicisolation
440 Matrix Structural Analysis and the Finite Element Methods
ZZZ
k = BT · D · B dv
V
ZZZ
= BT · D · B dv (8.12)
V
= BT · D · B ·V
Example 8.1 For the tetrahedral element supported and loaded as shown in Figure
8.4, determine the
• Shape functions
• Element stiffness matrix
• Displacements at node 4
• Reactions at the supports
• Stresses over the element
Assume that it is made up of a one element solid structure and E = 29,000 ksi and
µ = 0.3. The nodes 1,2,3 and 4 are located at (0,0,0), (2,0,0), (0,3,0) and (0,0,3)
inches respectively. Take nodes 1,2 and 3 to be pin-supported while the force compo-
nents F4x = 100 kips, F4y = 90 kips and F4z = -175 kips act at node 4.
SOLUTION
The volume of the tetrahedral element is computed using Equation (8.3) as A =
3 in3 . The αi , βi , γi and δi required for the shape functions N as well as the strain-
displacement matrix B are also computed using Equations (8.7) to (8.10) as shown
below.
@seismicisolation
@seismicisolation
3D Finite Element Analysis 441
18 −9 −6 −6
α1 β1 γ1 δ1
0 9 0 0
α β2 γ2 δ2
2
=
α3 β3 γ3 δ3 0 0 6 0
α4 β4 γ4 δ4 0 0 0 6
The shape functions and the strain displacement matrix are, thus, given as fol-
lows.
x y z x y z
N = (1 − − − )
2 3 3 2 3 3
1 1
0 0 0 0 0 0 0 0 0 0
2 2
1 1
0 − 0 0 0 0 0 0 0 0 0
3 3
1 1
0 0 − 0 0 0 0 0 0 0 0
B=
3 3
1 1 1 1
− − 0 0 0 0 0 0 0 0
3 2 2 3
1 1 1 1
− 0 − 0 0 0 0 0 0 0
3 2 2 3
1 1 1 1
0 − − 0 0 0 0 0 0 0
3 3 3 3
@seismicisolation
@seismicisolation
442 Matrix Structural Analysis and the Finite Element Methods
D = 103 ×
0 0 0 11.15 0 0
0 0 0 0 11.15 0
0 0 0 0 0 11.15
The stiffness matrix for the tetrahedral element is obtained using the following
equation and result is shown in Equation (8.13)
K = BT · D · B ·V
@seismicisolation
@seismicisolation
3D Finite Element Analysis
36.71 13.94 13.94 −29.28 −5.58 −5.58 −3.72 −8.37 0 −3.72 0 −8.37
−8.37 −8.37 −5.58 −13.01 −3.72 0 −3.72 −5.58
13.94 25.10 9.29 0
13.94 9.29 25.10 −8.37 0 −8.37 0 −5.58 −3.72 −5.58 −3.72 −13.01
−29.28 −8.37 −8.37 29.28 0 0 0 8.37 0 0 0 8.37
−5.58 −8.37 0 0 8.37 0 5.58 0 0 0 0 0
−5.58 0 −8.37 0 0 8.37 0 0 0 5.58 0 0
K = 103 × k/in
−3.72 −5.58 0 0 5.58 0 3.72 0 0 0 0 0
−8.37 −13.01 −5.58 8.37 0 0 0 13.01 0 0 0 5.58
0 −3.72 −3.72 0 0 0 0 0 3.72 0 3.72 0
−3.72 0 −5.58 0 0 5.58 0 0 0 3.72 0 0
0 −3.72 −3.72 0 0 0 0 0 3.72 0 3.72 0
−8.37 −5.58 −13.01 8.37 0 0 0 5.58 0 0 0 13.01
(8.13)
443
@seismicisolation
@seismicisolation
444 Matrix Structural Analysis and the Finite Element Methods
Since nodes 1,2 and 3 are restrained, the modified structure stiffness matrix is
given by:
3.72 0 0
Km = K(10 : 12, 10 : 12) = 103 × 0 3.72 0
0 0 13.01
The given force vector Aj at node 4 equals [100, 90, −175]T kips. The nodal
displacement is obtained as follows.
100
A j = 90 kips
−175
0.0269
D j = Km−1 ∗ A j = 0.0242 in
−0.0134
@seismicisolation
@seismicisolation
3D Finite Element Analysis 445
The support reactions are obtained from the complete structure action vector As
using the following relationship.
" #
Ar
As = = K ×d
Aj
12.5
−15
−65
−112.5
0
150
=
kips
0
−75
90
100
90
−175
The constant stresses over the tetrahedral element are computed as follows.
−75.
σx
σ −75.
y
σz −175.
Stress = D × B × d = = ksi
τxy 0.
τxz 100.
τyz 90.
The corresponding Scilab code showing the complete solution steps is given in
the listing below.
@seismicisolation
@seismicisolation
446 Matrix Structural Analysis and the Finite Element Methods
FIGURE 8.5 Nodal Forces and Reactions for the Tetrahedral Element.
Scilab/Octave Code
1 // Example 8.1 - 3D Stress analysis
2 // Tetrahedral element using Volume coordinates
3 clear all
4 // Coordinates, in inches
5 X = [0, 0, 0
6 2, 0, 0
7 0, 3, 0
8 0, 0, 3];
9
10 // Material properties
11 E = 29000; nu = 3/10;
12 // Total volume of the ter=trahedron
13 V = 1/6*det([1 1 1 1
14 X(1,1) X(2,1) X(3,1) X(4,1)
15 X(1,2) X(2,2) X(3,2) X(4,2)
16 X(1,3) X(2,3) X(3,3) X(4,3)])
17
18 x = X(:,1);
19 y = X(:,2);
20 z = X(:,3);
21
@seismicisolation
@seismicisolation
3D Finite Element Analysis 447
38
39 Beta(1) = -det([ 1 1 1
40 y(2) y(3) y(4)
41 z(2) z(3) z(4)]);
42
43 Beta(2) = det([ 1 1 1
44 y(1) y(3) y(4)
45 z(1) z(3) z(4)]);
46
47 Beta(3) = -det([ 1 1 1
48 y(1) y(2) y(4)
49 z(1) z(2) z(4)]);
50
51 Beta(4) = det([ 1 1 1
52 y(1) y(2) y(3)
53 z(1) z(2) z(3) ]);
54
55 Gamma(1) = det([ 1 1 1
56 x(2) x(3) x(4)
57 z(2) z(3) z(4)]);
58
59 Gamma(2) = -det([ 1 1 1
60 x(1) x(3) x(4)
61 z(1) z(3) z(4)]);
62
63 Gamma(3) = det([ 1 1 1
64 x(1) x(2) x(4)
65 z(1) z(2) z(4)]);
66
@seismicisolation
@seismicisolation
448 Matrix Structural Analysis and the Finite Element Methods
67 Gamma(4) = -det([ 1 1 1
68 x(1) x(2) x(3)
69 z(1) z(2) z(3)]);
70
71 Delta(1) = -det([ 1 1 1
72 x(2) x(3) x(4)
73 y(2) y(3) y(4)]);
74
75 Delta(2) = det([ 1 1 1
76 x(1) x(3) x(4)
77 y(1) y(3) y(4)]);
78
79 Delta(3) = -det([ 1 1 1
80 x(1) x(2) x(4)
81 y(1) y(2) y(4)]);
82
83 Delta(4) = det([ 1 1 1
84 x(1) x(2) x(3)
85 y(1) y(2) y(3) ]);
86
106
@seismicisolation
@seismicisolation
3D Finite Element Analysis 449
112 0 0 0 0 (1-2*nu)/2 0
113 0 0 0 0 0 (1-2*nu)/2]
114
133 // Stresses
134 S = D*B*d
135
@seismicisolation
@seismicisolation
450 Matrix Structural Analysis and the Finite Element Methods
DERIVATIVE RELATIONSHIPS IN 3D
The set of partial derivatives of a given 3D function f (r, s,t), in which r, s and t are
functions of x, y and z or vise versa, are determined using the chain rule as follows.
∂f ∂ f ∂x ∂ f ∂y ∂ f ∂z
= · + · + ·
∂r ∂x ∂r ∂y ∂r ∂z ∂r
∂f ∂ f ∂x ∂ f ∂y ∂ f ∂z
= · + · + · (8.17)
∂s ∂x ∂s ∂y ∂s ∂z ∂s
∂f ∂ f ∂x ∂ f ∂y ∂ f ∂z
= · + · + +
∂t ∂ x ∂t ∂ y ∂t ∂ z ∂t
In matrix form, Equation (8.17) becomes as shown below, which is used to solve
for the partial derivatives of f w.r.t. x, y and z; see Equation (8.18). The 3 × 3 matrix
containing the partial derivatives of x, y, and z with respect to r, s, and t is called the
Jacobian matrix (J).
@seismicisolation
@seismicisolation
3D Finite Element Analysis 451
∂f ∂f
∂x ∂y ∂z ∂x ∂y ∂z
∂r ∂r ∂r ∂ r ∂ x ∂r ∂r ∂ r
∂ f ∂x ∂y ∂ z ∂ f ∂x ∂y ∂ z
= · ; ⇒ J =
∂ s ∂ s ∂s ∂ s ∂ y ∂s ∂s ∂ s
∂x ∂y ∂z ∂f ∂x ∂y ∂ z
∂f
∂t ∂t ∂t ∂t ∂z ∂t ∂t ∂t
∂f ∂f
∂ x ∂r
∂ f ∂ f
= [J]−1 · (8.18)
∂ y ∂ s
∂ f
∂f
∂z ∂t
∂f ∂y ∂z
∂r ∂r ∂r
∂f ∂y ∂z
∂s ∂s ∂s
∂f ∂y ∂z
∂f ∂t ∂t ∂t
= (8.19)
∂x |J|
∂x ∂f ∂z
∂r ∂r ∂r
∂x ∂f ∂z
∂s ∂s ∂s
∂x ∂f ∂z
∂f ∂t ∂t ∂t
= (8.20)
∂y |J|
∂x ∂y ∂f
∂r ∂r ∂r
∂x ∂y ∂f
∂s ∂s ∂s
∂x ∂y ∂f
∂f ∂t ∂t ∂t
= (8.21)
∂z |J|
@seismicisolation
@seismicisolation
452 Matrix Structural Analysis and the Finite Element Methods
∂u ∂y ∂z
∂r ∂r ∂r
∂u ∂y ∂z
∂s ∂s ∂s
∂u ∂y ∂z
∂u ∂t ∂t ∂t
εx = =
∂x |J|
∂x ∂u ∂z ∂v ∂y ∂z
∂r ∂r ∂r ∂r ∂r ∂r
∂x ∂u ∂z ∂v ∂y ∂z
∂s ∂s ∂s ∂s ∂s ∂s
∂x ∂u ∂z ∂v ∂y ∂z
∂u ∂v ∂t ∂t ∂t ∂t ∂t ∂t
γxy = + = +
∂y ∂x |J| |J|
L M N
(8.23)
= ∑ ∑ ∑ wi · w j · wk · f (ri , s j ,tk )
i=1 j=1 k=1
where: f (ri , s j ,tk ) = (B(r, s,t)T · D · B(r, s,t) · |J|) evaluated at the integration points
wi = weighting value corresponding to ri
w j = weighting value corresponding to s j
@seismicisolation
@seismicisolation
3D Finite Element Analysis 453
@seismicisolation
@seismicisolation
454 Matrix Structural Analysis and the Finite Element Methods
Take E = 200 GPa and µ = 0.3. The dimensions are in cm and consider nodes
1–4 are all pin-supported. Use line load along the edge 6–7 qx = 200 N/mm, the
surface load on the face 5-6-7-8 wz = 20 N/mm2 , F7y = 200 N and F8z = 175 N. Use
the nodal locations in cm as given in the following table:
Node x y z
1 0 0 0
2 2 0 0
3 2 1.5 0
4 0 1.5 0
5 0 0 4
6 2 0 4
7 2 1.5 4
8 0 1.5 4
SOLUTION
The volume of the tetrahedral element is computed using Equation (8.3) as V =
12 cm3 . The αi , βi , γi and δi required for the shape functions N as well as the strain-
displacement matrix B are also computed using Equations (8.7)–(8.10) as shown
below.
The shape functions
The shape functions are determined using Equation 8.14 as follows.
(1 ± r) (1 ± s) (1 ± t)
Ni = × ×
2 2 2
@seismicisolation
@seismicisolation
3D Finite Element Analysis 455
Strain–displacement Relation
The six strains can be obtained using the determinant ratios provided in Equa-
tions (8.19)–(8.21). Since the natural coordinates are used to interpolate the dis-
placements, the corresponding computation for the case of εx is shown below.
∂u ∂y ∂z
∂r ∂r ∂r
∂u ∂y ∂z
∂s ∂s ∂s
∂u ∂y ∂z
∂u ∂t ∂t ∂t
εx = =
∂x |J|
u1
u2
u3
f1 f2 f3 f4 f5 f6 f7 f8 u4
⇒ εx = × (8.25)
80
u5
u6
u7
u8
where
f1 = −(1 − s)(1 − t), f5 = −(1 − s)(1 + t)
@seismicisolation
@seismicisolation
456 Matrix Structural Analysis and the Finite Element Methods
∂x ∂v ∂z
∂r ∂r ∂r
∂x ∂v ∂z
∂s ∂s ∂s
∂x ∂v ∂z
∂v ∂t ∂t ∂t
εy = =
∂y |J|
v1
v2
v3
g1 g2 g3 g4 g5 g6 g7 g8 v4
⇒ εy = × (8.26)
60
v5
v6
v7
v8
where
g1 = −(r − 1) × (t − 1), g2 = (r + 1) × (t − 1)
g3 = −(r + 1) × (t − 1), g4 = (r − 1) × (t − 1)
g5 = (r − 1) × (t + 1), g6 = −(r + 1) × (t + 1)
g7 = (r + 1) × (t + 1), g8 = −(r − 1) × (t + 1)
∂x ∂y ∂w
∂r ∂r ∂r
∂x ∂y ∂w
∂s ∂s ∂s
∂x ∂y ∂w
∂w ∂t ∂t ∂t
εz = =
∂z |J|
@seismicisolation
@seismicisolation
3D Finite Element Analysis 457
w1
w2
w3
w4
h1 h2 h3 h4 h5 h6 h7 h8
⇒ εz = × (8.27)
160
w5
w6
w7
w8
where
h1 = −(r − 1) × (s − 1), h2 = (r + 1) × (s − 1)
h3 = −(r + 1) × (s + 1), h4 = (r − 1) × (s + 1)
h5 = (r − 1) × (s − 1), h6 = −(r + 1) × (s − 1)
h7 = (r + 1) × (s + 1), h8 = −(r − 1) × (s + 1)
Strain–displacement Matrix B
The strain displacement matrix B is a 6 × 24 matrix relating the six strains
(εx , εy , ..., γyz ) and the 24 nodal displacements (u1 , v1 , w1 , u2 , ..., w8 the known-
unknowns). The expressions in Equations (8.25), (8.26) and (8.27) and the three
shear strains (not shown here) need to be placed at their appropriate locations in
the B matrix as shown below so that the strain–displacement matrix will be fully
populated.
−(1 − s)(1 − t) −(1 − s)(1 + t)
B(1, 1) = , B(1, 13) =
80 80
(1 − s)(1 − t) (1 − s)(1 + t)
B(1, 4) = , B(1, 16) =
80 80
(1 + s)(1 − t) (1 + s)(1 + t)
B(1, 7) = , B(1, 19) =
80 80
−(1 + s)(1 − t) −(1 + s)(1 + t)
B(1, 10) = , B(1, 22) =
80 80
Note that all the other terms of the first, like B(1,2) B(1,3), B(1,5) ... equal zero.
Hence, the complete strain–displacement matrix B becomes as shown below.
@seismicisolation
@seismicisolation
458 Matrix Structural Analysis and the Finite Element Methods
B(3, 24)
0
B(1, 22)
B(3, 24) B(2, 23)
0
0
... B(2, 23)
B(1, 22)
0
0
...
...
...
...
...
B(3, 6)
B(3, 6) B(2, 5)
0
0
0
0
B(2, 5)
B(2, 5) B(1, 4)
B(3, 6)
0
0
B(1, 4)
0
0
0
0
B(3, 3)
B(1, 1)
B(3, 3) B(2, 2)
0
0
0
B(2, 2)
B(2, 2) B(1, 1)
0
0
B(1, 1)
B(3, 3)
0
0
0
B=
(8.28)
@seismicisolation
@seismicisolation
3D Finite Element Analysis 459
The very first term of this matrix is, for example, shown below.
1
Kint(1, 1) = 28125(r · s − r − s + 1)2 + 200, 000(r · t − r − t + 1)2 +
39
393750(s · t − s − t + 1)2
Using either the analytical or numerical method of Equation (8.23), the same
result is obtained (within an accuracy of ±5e − 11) for the stiffness matrix of the
Hexahedron, which is given in Equation (8.29).
@seismicisolation
@seismicisolation
460 Matrix Structural Analysis and the Finite Element Methods
The complete nodal load vector Aj at the free nodes is given by:
0
0
300
150
0
300
Aj = N
150
200
300
0
0
475
D j = km−1 · A j
9.84
3.85
1.14
10.90
11.46
5.30
−3
= 10 · mm
5.31
13.16
9.69
3.30
4.04
5.68
@seismicisolation
@seismicisolation
3D Finite Element Analysis 461
The complete structure nodal displacements vector has 24 elements (12 sup-
ported (= 0) and 12 D j s), as shown below.
0
0
0
0
0
0
d= 0
0
0
0
0
0
Dj
0
0
0
4
145.91
165.55 −314.36 −249.78
300 300 300 475 181.98 −248.65 −951.35 −356.98
Support Reactions (N)
3
24.25 −242.50 −227.67
2
1
0 198.60
Applied Forces (N)
8
0
7
0 150 150
0 200
6
5
0
Node
Fx
Fy
Fz
@seismicisolation
@seismicisolation
462 Matrix Structural Analysis and the Finite Element Methods
Note that the moment equilibrium of the element can also be easily verified.
σ = D · Bo · d
−0.284
σx
σ −0.455
y
σz −4.583
⇒ = MPa
τxy 0.085
−1
τxz
τyz −0.667
@seismicisolation
@seismicisolation
3D Finite Element Analysis
k = 103 ×
226.78 102.56 38.46 −101.99 20.51 7.69 −105.7 −102.56 3.85 3.99 −20.51 19.23
102.56
306.55 51.28 −20.51 91.74 25.64 −102.56 −145.58 5.13 20.51 −229.63 10.26
38.46 51.28 149.86 −7.69 25.64 13.39 −3.85 −5.13 −48.01 19.23 −10.26 −34.47
−101.99 −20.51 −7.69 226.78 −102.56 −38.46 3.99 20.51 −19.23 −105.7 102.56 −3.85
20.51 91.74 25.64 −102.56 306.55 51.28 −20.51 −229.63 10.26 102.56 −145.58 5.13
7.69 25.64 13.39 −38.46 51.28 149.86 −19.23 −10.26 −34.47 3.85 −5.13 −48.01
−105.7 −102.56 −3.85 3.99 −20.51 −19.23 226.78 102.56 −38.46 −101.99 20.51 −7.69
−102.56 −145.58 −5.13 20.51 −229.63 −10.26 102.56 306.55 −51.28 −20.51 91.74 −25.64
3.85 5.13 −48.01 −19.23 10.26 −34.47 −38.46 −51.28 149.86 7.69 −25.64 13.39
3.99 20.51 19.23 −105.7 102.56 3.85 −101.99 −20.51 7.69 226.78 −102.56 38.46
−20.51 −229.63 −10.26 102.56 −145.58 −5.13 20.51 91.74 −25.64 −102.56 306.55 −51.28
19.23 10.26 −34.47 −3.85 5.13 −48.01 −7.69 −25.64 13.39 38.46 −51.28 149.86
···
98.01 51.28 7.69 −58.69 10.26 38.46 −56.7 −51.28 19.23 −5.7 −10.26 3.85
51.28 137.89 10.26 −10.26 38.18 5.13 −51.28 −76.64 25.64 10.26 −122.51 51.28
−7.69 −10.26 21.08 38.46 −5.13 −20.23 19.23 25.64 −37.46 −3.85 51.28 −44.16
−58.69 −10.26 −38.46 98.01 −51.28 −7.69 −5.7 10.26 −3.85 −56.7 51.28 −19.23
10.26 38.18 5.13 −51.28 137.89 10.26 −10.26 −122.51 51.28 51.28 −76.64 25.64
−38.46 −5.13 −20.23 7.69 −10.26 21.08 3.85 51.28 −44.16 −19.23 25.64 −37.46
−56.7 −51.28 −19.23 −5.7 −10.26 −3.85 98.01 51.28 −7.69 −58.69 10.26 −38.46
−51.28 −76.64 −25.64 10.26 −122.51 −51.28 51.28 137.89 −10.26 −10.26 38.18 −5.13
−19.23 −25.64 −37.46 3.85 −51.28 −44.16 7.69 10.26 21.08 −38.46 5.13 −20.23
−5.7 10.26 3.85 −56.7 51.28 19.23 −58.69 −10.26 38.46 98.01 −51.28 7.69
−10.26 −122.51 −51.28 51.28 −76.64 −25.64 10.26 38.18 −5.13 −51.28 137.89 −10.26
−3.85 −51.28 −44.16 19.23 −25.64 −37.46 38.46 5.13 −20.23 −7.69 10.26 21.08
463
@seismicisolation
@seismicisolation
464
98.01 51.28 −7.69 −58.69 10.26 −38.46 −56.7 −51.28 −19.23 −5.7 −10.26 −3.85
51.28 137.89 −10.26 −10.26 38.18 −5.13 −51.28 −76.64 −25.64 10.26 −122.51 −51.28
7.69 10.26 21.08 −38.46 5.13 −20.23 −19.23 −25.64 −37.46 3.85 −51.28 −44.16
−58.69 −10.26 38.46 98.01 −51.28 7.69 −5.7 10.26 3.85 −56.7 51.28 19.23
10.26 38.18 −5.13 −51.28 137.89 −10.26 −10.26 −122.51 −51.28 51.28 −76.64 −25.64
38.46 5.13 −20.23 −7.69 10.26 21.08 −3.85 −51.28 −44.16 19.23 −25.64 −37.46
−56.7 −51.28 19.23 −5.7 −10.26 3.85 98.01 51.28 7.69 −58.69 10.26 38.46
−51.28 −76.64 25.64 10.26 −122.51 51.28 51.28 137.89 10.26 −10.26 38.18 5.13
19.23 25.64 −37.46 −3.85 51.28 −44.16 −7.69 −10.26 21.08 38.46 −5.13 −20.23
@seismicisolation
@seismicisolation
3D Finite Element Analysis 465
The corresponding Octave code showing the complete solution steps is given in
the listing below.
Scilab/Octave Code
1 % Example 8.2 - 3D Solid Structure
2 % HEXAHEDRAL ELEMENT
3 clear all; close all; clc;
4 tic() % Time started
5 warning off;
6 pkg load symbolic; % Load sym package
7 syms s r t real; %sym variables as real
8 %% Common units: length in mm, force in kN
9
10 %% GIVEN Parameters
11 %% Nodal coordinates in cm
12 xy = [0 0 0;2 0 0;2 1.5 0;0 1.5 0;
13 0 0 4;2 0 4;2 1.5 4;0 1.5 4]
14
15 v=3/10;
16 E=200e3; %units are in N/mm2
17
18 %% SHAPE FUNCTION N
19 N(1) = (1-r)*(1-s)*(1-t)/8;
20 N(2) = (1+r)*(1-s)*(1-t)/8;
21 N(3) = (1+r)*(1+s)*(1-t)/8;
22 N(4) = (1-r)*(1+s)*(1-t)/8;
23 N(5) = (1-r)*(1-s)*(1+t)/8;
24 N(6) = (1+r)*(1-s)*(1+t)/8;
25 N(7) = (1+r)*(1+s)*(1+t)/8;
26 N(8) = (1-r)*(1+s)*(1+t)/8;
27
28 % Converting Dimension to mm
29 xy *= 10;
30
@seismicisolation
@seismicisolation
466 Matrix Structural Analysis and the Finite Element Methods
40 Z = simplify(sx)
41
47 J = [Xr Yr Zr
48 Xs Ys Zs
49 Xt Yt Zt];
50
74 B(1,3*(i-1)+1) = ux(i);
75 B(2,3*(i-1)+2) = vy(i);
76 B(3,3*i) = wz(i);
77 B(4,3*(i-1)+1) = vy(i);
78 B(4,3*(i-1)+2) = ux(i);
79 B(5,3*(i-1)+1) = wz(i);
80 B(5,3*i) = ux(i);
81 B(6,3*(i-1)+2) = wz(i);
82 B(6,3*i) = vy(i);
83 end
84
@seismicisolation
@seismicisolation
3D Finite Element Analysis 467
85 %% CONSTITUTIVE MATRIX
86 D= E/(1+v)*(1-2*v)*[ (1-v) v v 0 0 0
87 v (1-v) v 0 0 0
88 v v (1-v) 0 0 0
89 0 0 0 (1-2*v)/2 0 0
90 0 0 0 0 (1-2*v)/2 0
91 0 0 0 0 0 (1-2*v)/2]
92
@seismicisolation
@seismicisolation
468 Matrix Structural Analysis and the Finite Element Methods
130 F = reshape(As, 3, 8)
131 %% Each column gives the three forces at each node
132
8.4 PROBLEMS
8.1 The x–y–z coordinates of tetrahedral elements are given in the table below. In
each case, answer the problems following the table if E = 110 GPa, ν = 0.33 (FPS:
E = 16,000 ksi, ν = 0.33).
a) Shape functions
b) Strain displacement matrix
c) Stiffness matrix of the element
8.2 For the tetrahedral elements in Problem 8.1, further information regarding the
nodal displacements (dx , dy , and dz ) and nodal forces ( fx , fy , and fz ) is given in the
table below. For each of the three elements and each of the three load/displacement
data, determine the unknown parameters identified in the table? Also compute the
@seismicisolation
@seismicisolation
3D Finite Element Analysis 469
8.3 Given a six node hexahdral element having its nodes are in mm #1 @ (0, 0, 0),
#2 @ (20, 0, 0), #3 @ (20, 20, 0), #4 @ (0, 20, 0), #5 @ (0, 0, 20), #6 @ (20, 0, 20),
#7 @ (20, 20, 20) and #8 @ (0, 20, 20) [For FPS in inches the nodes are #1 @ (0, 0,
0), #2 @ (0.8, 0, 0), #3 @ (0.8, 0.8, 0), #4 @ (0, 0.8, 0), #5 @ (0, 0, 0.8), #6 @ (0.8,
0, 0.8), #7 @ (0.8, 0.8, 20) and #8 @ (0, 0.8, 0.8)]. As a single solid element:
@seismicisolation
@seismicisolation
470 Matrix Structural Analysis and the Finite Element Methods
b) if the coordinates of the corner nodes (1, 2, 3 and 4) are at (0, 0, 0), (1, 0,
0), (0, 1, 0) and (0, 0, 1) units, while the remaining nodes are at the center
of respective edges
@seismicisolation
@seismicisolation
Beam Deflection
Cantilever Beam Under Uniformly Distributed Loading
w · L3 w
θmax = θx = · (L3 − x3 )
6EI 6EI
w · L4 w
ymax = − yx = − · (3 · L4 − 4 · x · L3 + x4 )
8EI 24EI
P · L2 P · (L2 − x2 )
θmax = − θx = −
2EI 6EI
P · L3 P · (L − 3 · x · L2 − x3 )
3
ymax = yx =
3EI 6EI
@seismicisolation
@seismicisolation 471
472 Beam Deflection
M·L P · (L2 − x2 )
θmax = − θx = −
EI 6EI
M · L2 M · (L2 − 2 · x · L + x2 )
ymax = − yx = −
2EI 2EI
w · L3 w
θ1 = −θ2 = − θx = − (L3 − 6L · x2 + 4 · x3 )
24EI 24EI
5 · w · L4 w · x · (L3 − 2 · L · x2 + x3 )
ymax = − yx = −
384EI 24EI
@seismicisolation
@seismicisolation
Beam Deflection 473
P · a · b · (L + b) P · a · b(L + a)
θ1 = − θ2 =
6LEI 6LEI
P·b
θx1 = − · (L2 − b2 − 3 · x2 )
6LEI
P·b·x
yx1 = · (L2 − b2 − x2 ) 0≤x≤a
6LEI" #
P·b L
yx2 = · (x − a)3 + x · (L2 − b2 ) − x3 a<x≤L
6LEI b
L
For the case where a = :
2
P · L2 P · L2
θ1 = − θ2 =
16EI 16EI
P · L2
θx1 = −
16EI
!
P·x 3 · L2
yx1 = · − x2
12EI 4
L
0≤x≤
2
@seismicisolation
@seismicisolation
474 Beam Deflection
M M
θ1 = (3b2 − L2 ) θ2 = (3a2 − L2 )
6LEI 6LEI
M
θx1 = − (L2 − 3 · b2 − 3 · x2 )
6LEI
M·x 2
yx1 = − (L − 3 · b2 − x2 ) 0≤x≤a
6LEI
M·x 2
yx2 = [(L − 3 · b2 − x2 ) + 3L · (x − a)2 ] a < x ≤ L
6LEI
L
For the case where a = b = :
2
M·L
θ1 = θ2 = −
24EI
!
M L2
θx1 = − 3 · x2
6LEI 4
!
M·x L2 L
yx1 = − x2 0≤x≤
6LEI 4 2
! !2
M L2 L
yx2 = x · − x2 + 3L · x − a≤x≤L
6LEI 4 2
@seismicisolation
@seismicisolation
Fixed-End Actions
Loading Node-1 Node-2
wL2 wL2
M1 = M2 = −
12 12
wL wL
V1 = V2 =
2 2
Pab2 Pba2
M1 = M2 = −
L2 L2
M(2ab − b2 ) M(2ab − a2 )
M1 = M2 =
L2 L2
6Mab 6Mab
V1 = V2 = −
L3 L3
wL2 wL2
M1 = M2 = −
30 20
3wL 7wL
V1 = V2 =
20 20
@seismicisolation
@seismicisolation 475
476 Fixed-End Actions
wa2
M1 = (6L2 − 8aL + 3a2 )
12L2
wa
V1 = (2L3 − 2a2 L + a3 )
2L3
wa3
M2 = − (4L − 3a)
12L2
wa3
V2 = − (2L − a)
2L3
6EI∆ 6EI∆
M1 = M2 =
L2 L2
12EI∆ 12EI∆
V1 = V2 = −
L3 L3
4EIθ 2EIθ
M1 = M2 =
L L
6EIθ 6EIθ
V1 = V2 = −
L2 L2
@seismicisolation
@seismicisolation
FPS vs SI Unit Conversion
Appendix
From To Multiply by
meter (m) to ft 3.28084
Length
f t2 to m2 0.09290
m2 to f t2 10.76387
m2 to in2 1550.00310
kips to kilo-newton (kN) 4.44822
Force/length Force
kN to kips 0.22481
pound/ft (lb/ft) to newton/meter(N/m) 14.59390
pound/in (lb/in) to kilo-newton/meter(N/m) 0.17513
kN/m to lb/ft 68.52178
kN/m to lb/in 5.71015
Moment
@seismicisolation
@seismicisolation 477
@seismicisolation
@seismicisolation
References
1. A. Sengupta. Symbolic Toolbox for Scilab, 2024. https://github.com/sengupta/
scilab-maxima/tree/master.
6. A. Pajankar and S. Chandu. GNU Octave by Example – A Fast and Practical Approach
to Learning GNU Octave. Apress, U.K., 2020.
7. S. W. Lee and P. W. Chung. Finite Element Method for Solids and Structures: A Concise
Approach. Cambridge University Press, 2021.
8. R. W. Clough. Early history of the finite element method from the view point of a
pioneer. International Journal for Numerical Methods in Engineering, 483–487, 2004.
9. R. D. Cook. Finite Element Modelling for Stress Analysis. John Wiley & Sons, Canada,
1994.
10. J. W. Eaton, D. Bateman, S. Hauberg and R. Wehbring. GNU Octave Version 8.2.0 Man-
ual: A High-Level Interactive Language for Numerical Computations, 2022, https:
//docs.octave.org/v8.2.0/.
12. F. Moukalled, et al. The Finite Volume Method in Computational Fluid Dynamics, Fluid
Mechanics and Its Applications. Springer, 2016.
13. C. A. Felippa. A historical outline of matrix structural analysis: a play in three acts.
Computers & Structures, 79(14):1313–1324, 2001.
14. W. McGuire, R .H. Gallagher and R. D. Ziemian. Matrix Structural Analysis. Wiley,
New York, 2015.
15. K. K. Gupta and J. L. Meek. A brief history of the beginning of the finite element
method. International Journal for Numerical Methods in Engineering, 47:3761–3774,
2000.
16. B. Habte. A Computer Program for the Elastic Analysis of Plane Structures. Addis
Ababa University, Unpublished MSc thesis, 1988.
17. J. S. Hansen. GNU Octave: Beginner’s Guide. Packt, Birmingham, UK – Mumbai, India
2011.
@seismicisolation
@seismicisolation 479
480 References
18. C. Jain. Advanced Programming in SCILAB. Alpha Science International Ltd., Oxford,
2017.
19. Mike Pomax Kamermans. Gaussian quadrature weights and abscissae, 2011. https:
//pomax.github.io/bezierinfo/legendre-gauss.html.
22. J. T. Katsikadelis. The Boundary Element Method for Engineers and Scientists – Theory
and Applications. Elsevier, 2016.
23. A. R. Khoei. Extended Finite Element Method Theory and Applications. John Wiley &
Sons, 2015.
24. G. R. Liu. Meshfree Methods — Moving Beyond the Finite Element Method. CRC Press,
Boca Raton, FL, 2010.
25. D. L. Logan. A First Course in the Finite Element Method. Cengage Learning, 2017.
26. D. Madier. Practical Finite Element Analysis for Mechanical Engineering. FEA
Academy, 2020.
27. P. Marti. Theory of Structures: Fundamentals of Framed Structures, Plates and Shells.
Wilhelm Ernst & Sohn, Berlin, 2013.
28. S. T. Mau. Introduction to Structural Analysis: Displacement and Force Methods. CRC
Press, Berlin, 2012.
30. S. Mazumder. Numerical Methods for Partial Differential Equations – Finite Difference
and Finite Volume Methods. Elsevier, U.K., 2016.
31. J. C. McCormac. Structural Analysis: Using Classical and Matrix Methods. John Wiley
and Sons, 2007.
32. K. B. Mustapha. Finite Element Computations in Mechanics with R. Taylor & Francis
Group, Boca Raton, FL, USA, 2018.
33. S. Nagar. Introduction to Octave: For Engineers and Scientists. Apress, NY, 2017.
34. S. Nagar. Introduction to Scilab: For Engineers and Scientists. Apress, 2017.
35. P. Nagarajan. Matrix Methods of Structural Analysis. CRC Press, Boca Raton, FL, 2019.
@seismicisolation
@seismicisolation
References 481
39. E. Onate. Structural Analysis with the Finite Element Method (Linear Statics) Volume 1.
Basis and Solids. International Center for Numerical Methods in Engineering (CIMNE),
2009.
40. M. Paz and W. Leigh. Integrated Matrix Analysis of Structures: Theory and Computa-
tion. Alpha Science International Ltd., Oxford, 2017.
41. T. H. H. Pian. Some notes on the early history of hybrid stress finite element method.
International Journal for Numerical Methods in Engineering, 47:419–425, 2000.
42. S. S. Rao. The Finite Element Method in Engineering. Elsevier Ltd., 2018.
43. A. Runchal. Origins and development of the finite volume CFD method at Imperial Col-
lege. ICHMT International Symposium on Advances in Computational Heat Transfer,
pp. 923–924, 2017.
47. J. D. Todd. Structural Theory and Analysis. The Macmillan Press Ltd., London, 1974.
48. O. C. Zienkiewicz and R. L. Tylor. Structural Analysis withthe Finite Element Method
(Linear Statics) Volume 1. Basis and Solids. Elsevier Ltd., 2013.
49. W. Weaver and J. M. Gere. Matrix Analysis of Framed Structures. Van Nostrand Rein-
hold, New York, 1990.
52. A. Worku. Development of a calibrated pasternak foundation model for practical use.
International Journal of Geotechnical Engineering, 8(1):26–33, 2014.
53. A. Worku & B. Habte. Analytical formulation and finite-element implementation tech-
nique of a rigorous two-parameter foundation model to beams on elastic foundations.
Geomechanics and Geoengineering, 17(2):547–560, 2022.
@seismicisolation
@seismicisolation
@seismicisolation
@seismicisolation
Index
1D governing differential equation 336; other
A numerical methods 340; postprocessing 349;
preprocessing 346; pros and cons 322; 3D
action transformation matrix (BMS) 86
elasticity equation 325–7; 3D elements 325;
axisymmetric problems 363
steps in 330; 2-noded bar element 336–7; 2D
B continuum structure 361–3
flexibility coefficient 10
basic flexibility method 35; solution steps 37
flexibility matrix 13
basic stiffness method 59; solution steps 60
formalized flexibility method 81; beam element
basic structure 59–60
flexibility 82; grid element flexibility 84; plane
beam on elastic foundation 285
frame element flexibility 83; redundant actions
bi-linear rectangular element 403; shape functions
(AQ) 86; space frame element flexibility 85;
of 403; strain-displacement matrix 404
truss element flexibility 82; solution steps 88
brick element see hexahedral element
formalized stiffness method 138; beam element
C stiffness 139; grid element stiffness 141; plane
frame element stiffness 140; solution steps 146;
classical methods 9 space frame element stiffness 142; truss element
compatibility matrix see displacement stiffness 139
transformation matrix
constant strain tetrahedral element (CSTet) 435 G
constant strain triangle (CST) 365; area
coordinates 366; shape function 367; stiffness Gauss quadrature 419–20; in 2D 422
matrix 370–2; strain-displacement matrix 371 governing differential equation 336
constitutive matrix: plane strain element 364;
plane stress element 365; 3D element 327 H
hexahedral element 449; shape functions of 449
D
direct stiffness method (DSM) 196; bar element I
stiffness 197; beam element stiffness 198; grid inclined roller support 288–91
element stiffness 203; plane frame element interpolation function 328; for beam element
stiffness 201; plane truss element stiffness 199; 352; characteristics of 329; linear 332, 410; for
space frame element stiffness 207; space truss tetrahedral element 438
element stiffness 204; spring element stiffness isoparametric representation 410; isoparametric
197; solution steps 210 mapping 412; for 1D elements 410;
displacement transformation matrix (CMS) 140–1 quadrilateral element 412; for 2D elements
412–13
E
equilibrium matrix see action transformation J
matrix
Jacobian matrix 412–13; of hexahedral element
equivalent nodal loads 60, 330
450–1; of quadrilateral element 438
F
K
finite element method 319; application areas 322;
available software 322; beam element 350; kinematic indeterminancy 5
brief history 322; discretization 319; element
stiffness matrix 329; error sources 324; mesh L
319; node 319; quadratic bar element 337–8; linear strain triangle 383; shape functions of 384;
known-unknowns 328; nonlinear analysis 323; strain-displacement matrix 385
@seismicisolation
@seismicisolation 483
484 Index
@seismicisolation
@seismicisolation