Final Element Structural Analysis On An Excel Spreadsheet
Final Element Structural Analysis On An Excel Spreadsheet
Final Element Structural Analysis On An Excel Spreadsheet
SPREADSHEET
INTRODUCTION
Finite Element (FE) software is an essential tool for most structural design engineers, and
at the cost of most commercial FE software, it had better be essential. The commercial FE
software used by many engineering firms will provide you with more computer-output
than you could read in a month and more than you can understand in a year. Commercial
programs are great for impressing clients, and great for performing extensive analysis
when really needed. But in design of frame-type structures, rarely is all that power and
output really needed.
Understanding FE theory allows the user to in many cases forego commercial software and
use more basic software, such as the FE spreadsheet. In 10 years of private practice, I have
relied almost exclusively on a FE spreadsheet for analyzing frame-type structures. That
spreadsheet is presented in this course as a teaching tool and as a practical, effective design
tool. The spreadsheet is limited to 2-dimensional frames of about 50 nodes, but if a
problem is within that range it is easier to use, easier to understand, easier to port, easier to
check and much less expensive than commercial programs.
In 25 years of engineering, I have never seen a design that was flawed because the designer
failed to generate enough computer output. I have never seen a structure that was
inadequate because the designer didn’t use enough nodes in his analysis model. I have
never seen an analysis that was erroneous because there weren’t enough digits to the right
of the decimal point. For most frame-type structure problems, use of commercial FE
software results in too much output, too many nodes, and too many insignificant digits.
When you buy a new car, you go for a drive before you read the owners manual. In a
similar fashion, in this course you will download and use the FE spreadsheet before you
learn the underlying theory. Since theory is easier to understand as an explanation of a tool
we can use than as a hypothesis of one we could create, we will first learn how to use the
FE spreadsheet, then use theory to explain how it works.
Section 1: Description of the Finite Element Spreadsheet:
Two spreadsheet workbooks in Microsoft Excel format are provided for download as a part
of this course. They are both FE spreadsheets; one is a training sheet with just 5 nodes and
5 members, the other is a sheet for practical use with 16 nodes and 37 members. Each
workbook consists of three sheets:
1. a documentation sheet,
2. a FE analysis sheet,
3. a plot sheet.
1. The documentation sheet gives an overview of the structure of the FE spreadsheet and a
list of the basic underlying assumptions.
2. The FE analysis sheet provides all the formulas and calculations to solve frame-type 2D
static problem. Required inputs are:
• node coordinates,
• member node-to-node connectivity,
• member properties,
• support conditions,
• and loadings.
Calculated output (on the same sheet) is:
• support reactions,
• node displacements,
• member end forces,
• all intermediate calculations.
3. The plot sheet that shows node and member geometry to assist in verifying model input.
The structure model and input are annotated in Figure 1A. On this spreadsheet, the
number of nodes is set at 5 and the number of members is set at 5. All nodes must be
connected and all members must be used. If a problem requires more nodes or more
members a larger version of the spreadsheet is required. If a problem requires fewer than 5
nodes or members this spreadsheet may be used, with the extraneous nodes and members
inactivated. This is in contrast to typical commercial FE programs, in which the user
selects the number of nodes and members.
To inactivate a member, set properties Axx and Izz to near zero. In some cases the values
can be set to zero, but in most cases setting properties to zero will result in a spreadsheet
“!NUM” error message. To inactivate a node, connect to it only with inactivated members.
The Figure 1 problem requires 5 nodes but only requires 4 members so member 5 is
inactivated by setting its properties to near zero.
Calculated results are annotated in Figure 1B. Be careful of sign convention with respect to
output. Coordinate axes are per right hand rule (per the Definitions section previously and
as shown in Fig 1B.), and results follow accordingly. Note also that consistent units must
be used.
The Figure 1 Example has input of node-point loads of 2.0, 3.0 and 4.0 at nodes 2, 3 & 4
respectively. The resulting maximum moment is 60 at member 3, end “i”, maximum
deflection is 0.95 at node 3.
Section 5: Truss Example on the FE Spreadsheet ~ [Ref: Figure 2]
Figure 2 Example is a triangular truss, with a vertical 3.0 load and a horizontal 2.0 load,
both at node 3.
A truss is essentially a frame with no flexural resistance. Therefore, to analyze a truss the
member moment of inertia needs to be set near zero (it cannot be set to zero or an Excel
error message “#NUM!” will result). To mirror Figure 2 results, copy the input from Fig.
2 to your spreadsheet. Verify that your output matches Fig 2.
Note that each node is at the end of at least one member (no nodes are unconnected). To
see the effect of having an unconnected node, change member 5 connectivity from 5-2 to
3-2 (by changing cell B21 from “5” to “3”) such that node 5 is not connected to any
members. Output values all change to “!NUM” error message.
Note that node 1, 4 & 5 can have the same coordinates (0,0), but that you can’t connect a
member between two identical nodes because the member will have zero length. To see
the effect of a zero length member, change node 4 ordinates from (0,0) to (10,0) such hat
it has the same coordinates as note 2. Output values all change to “#DIV/0!” error
message.
The result summary for the Figure 2 truss example is that node 3 has calculated
deflections of 0.003 vertical and 0.002 horizontal. The maximum member axial force is
3.54 in member 3.
Section 6: Beam on Elastic Foundation with Uniform Member Load ~ [Ref: Fig 3]
The Figure 3 example is a beam on spring supports. Each support node has a k_y spring
value of 80. The beam has varying uniform member loads per Figure 3. To mirror
results, copy the input data to your working spreadsheet. Verify that your output matches
Fig. 3. Note that Member Data, “Uni_Load” input cells (G17-G21) are for inputting a
uniform load perpendicular to the local x-axis of the member (in the local y-direction).
The input/output sections of the FE spreadsheet are divided into two categories: “Node
Data” and “Member Data”. Nodes can have supports, applied forces, and deflections.
Members have properties, end forces, and can have distributed load. Member end forces
are at node locations and are not necessarily maximum values for that member
Resulting deflections for this example vary from –1.0 to –1.8 and maximum moment is
324 at member 2, end “j”. Note that maximums may be greater between nodes. If more
detail is required, use more nodes or further analyze critical members as a component
problem.
Section 7: 16-Node Building Example with Member End Release ~ [Ref: Fig 4 & 5]
Previous examples have been limited to a few nodes and a few members to demonstrate
the functionality of the spreadsheet. Most design problems require more nodes and
members. Figures 4 & 5 show a 16-node, 37-member spreadsheet, which is a functional
size for a number of structural design problems. The particular problem shown is a
building frame with two 1000 horizontal loads and some –50 uniform member loads.
Maximum deflections are –1.7 in the y-direction and 9.9 in the x-direction. Reactions at
node 1 are FY = –1500 & FX = -637. Reactions at node 14 are FY = 4500 & FX =-1363.
[rad]
NODE DATA: Support Springs Input Forces Support Reactions Output Deflections
Node x y k_rot k_y k_x Mom FY FX Mom FY FX Rot Dy Dx
1 0 0 999999 999999 0 -1500 -637.2 -0.22 0.0 0.0
2 0 15 0 0 0.0 -0.21 0.2 3.2
3 0 30 1000 0 0 0.0 -0.17 0.4 6.1
4 0 40 0 0 0.0 -0.14 0.4 7.6
5 0 50 0 0 0.0 -0.11 0.5 8.9
6 0 60 1000 0 0 0.0 -0.09 0.5 9.9
7 10 60 0 0 0.0 -0.07 -0.2 9.8
8 20 60 0 0 0.0 -0.07 -0.9 9.7
9 30 60 0 0 0.0 -0.09 -1.7 9.6
10 30 50 0 0 0.0 -0.12 -1.5 8.5
11 30 40 0 0 0.0 -0.13 -1.3 7.2
12 30 30 0 0 0.0 -0.13 -1.1 5.9
13 30 15 0 0 0.0 -0.20 -0.6 3.3
14 30 0 999999 999999 0 4500 -1362.8 -0.23 0.0 0.0
15 0 30 0 0 0.0 -0.02 0.4 6.1
16 20 30 0 0 0.0 -0.06 -0.2 5.9
1 2 3 4 5 6
The stiffness matrix is square with size equal to the number of DOF. The number of
nodes determines the number of DOF and thus the stiffness matrix size. The number of
members is not a factor. Matrices larger than 51x51 may be accommodated with the use
of an add-in function such as “Minverse.EXT” (a free add-in available on the internet)
allows up to 256x256 matrix, thus allowing an 85-node spreadsheet. Also, more recent
versions of Excel may allow larger matrices.
Be wary of thinking that 45 nodes are just not enough for your problems. I have never
seen a design that was flawed because the designer used too few nodes. Conversely, I
have seen numerous designs that were flawed because the computer model was too large,
too complex, and too difficult to visualize and check.
This FE spreadsheet can be an effective tool for analysis, but is can be equally effective
in checking output from large complex problems, either by condensing the problem into a
small approximation that the spreadsheet can handle, or be analyzing parts from within
the large problem.
In the broader realm of FE analysis, the system is generally continuous and the model is
discretized. Examples would be bending in a flat plate or fluid flow around an
obstruction. In these examples, the system is continuous, the model is discretized, and
the precision of the solution varies with the refinement of the model. A very fine mesh
with a number of small elements will more accurately capture the system behavior than a
course mesh.
The FE spreadsheet performs the following steps using Excel functions (without macros
or VBA programming):
• Calculates member local stiffnesses
• transforms local stiffness to global stiffness components,
• sums global stiffness components to formulate the global stiffness matrix
• inverts the global stiffness matrix
• multiplies the inverted stiffness matrix * node forces to calculate node deflections
• calculates member end forces from node deflections
The basic equation relating local member end-forces with end-deflections is:
(6.1) f = k * d, in expanded form becomes:
mz _ i 4 EI / L 6 EI / L ^ 2 0 2 EI / L − 6 EI / L ^ 2 0 dz _ i
vy _ i 6 EI / L ^ 2 12 EI / L ^ 3 0 6 EI / L ^ 2 − 12 EI / L ^ 3 0 dy _ i
vx _ i 0 0 AE / L 0 0 − AE / L dx _ i
mz _ j 2 EI / L − 6 EI / L ^ 2 0 4 EI / L 6 EI / L ^ 2 0 dz _ j
vy _ j 6 EI / L ^ 2 − 12 EI / L ^ 3 0 6 EI / L ^ 2 12 EI / L ^ 3 0 dy _ j
vx _ j 0 0 − AE / L 0 0 AE / L dx _ j
Knowing local member properties and geometry we can calculate the local stiffness
matrix k for each member per Equation 6.1 above.
Knowing the geometric relationship between local and global coordinates for each
member allows use to transform each stiffness matrix from local to global coordinates.
In the FE Spreadsheet, the local member axis defines the local x-axis, while the global
horizontal axis is the X-axis. If the local x-axis is aligned identically with the global X-
axis, then local stiffness = global stiffness. For all other cases, where the local member
axis is not aligned with the global X-axis, local stiffness does not equal global stiffness.
A coordinate transformation is required to calculate the relationship between local and
global properties, with that transformation being a function of the angle between the “x”
and “X” axes.
Once all member stiffness matrices are transformed to a global reference (ie: k_T is
calculated for each member), global stiffness at each node can be calculated by summing
the global stiffness of each member that is connected to that node. For example, if
members 3, 4 & 5 connect at joint 10, and their X-force stiffnesses are 1, 2 & 3 kips/ft
respectively, the global stiffness factor for joint 10 would be the sum of the stiffnesses, or
6 kips/ft. The stiffness of each node is calculated by summing the contributing stiffness
elements from each k_T matrix, then all the node stiffness values are assembled to form
the global stiffness matrix, K.
Note that if a node is a support point, there is an external or global support stiffness that
must be added to the k_T sum for that node. In the FE spreadsheet, all supports must be
entered as support “springs”. As in real structures, there is no infinitely rigid support, but
absolute fixity can be approached by inserting very high support spring values.
The known applied global forces are assembled into the force vector, F.
Recalling equation (6.2), F = K * D; we have now calculated F & K so D is the only
unknown. To solve for D pre-multiply by K-1, where K-1 = the inverse of K.
K-1 * F = K-1*K * D, but since K-1*K is the identify matrix, this simplifies to
(6.2) K-1 * F = D
Inherent in the formulation of the stiffness equations is linear elastic theory, with all its
assumptions, particularly that stress and strain are related in a linear fashion, deflections
are small and materials are isotropic and homogeneous. Also note that the elements or
members in this spreadsheet are limited to axial and flexural strains, shear strains are
assumed to be negligible and are not calculated.
Section 13: Benefits, Uses and Limitations of the Finite Element Spreadsheet:
Ease of Use and Minimal Learning Curve:
Most engineers are familiar with, if not adept with spreadsheet software. For those who
are regular spreadsheet users, the FE spreadsheet has a minimal learning curve. It only
makes sense to incorporate Finite Element analysis into an environment in which so
many engineers are already comfortable.
With the FE spreadsheet, analysis can be performed on any machine with corresponding
spreadsheet software. The spreadsheet is all-inclusive using formulas and Excel
functions. There are no macros and no VBA programming, no password protection, no
hardware locks, and no license restrictions. In contrast, commercial FE analysis can only
be performed on machines with the FE software, and that software nearly always has
hardware lock, password or licensing restrictions.
Integration of Data:
Design data for a project is often voluminous and could typically include items such as
material properties, structure geometry, loading tabulation, quantity summaries, cost
estimates and more. That data is often kept on a series of spreadsheets. As an exception,
the actual analysis data from a FE program is typically not kept on a spreadsheet. It is
common that input-data and output-results from the FE analysis are ported to or from
spreadsheets, but the actual analysis and results resides in the FE software.
With the FE spreadsheet, all data, including analysis and results, can all be integrated into
one spreadsheet workbook. Consider for example, design of a 3-story building. The
designer could have the project design details on a series of spreadsheets (a workbook),
such as:
1. Structural framing properties (member properties, material properties, etc)
2. Loads (Structure dead load, live loads, equipment loads, etc)
3. Cost Estimate
4. Finite Element Analysis (member forces, stresses, etc)
The data can all be linked to assure continuity of design in the event of a design change.
For example, change the loading of floor-2 from 50 psf to 150 psf on the loading sheet,
the FE sheet shows you need to upsize beam weight by 30 plf, the DL weight is increased
on that sheet and the cost estimate interactively reflects the new weights.
This is in contrast to using commercial structural analysis software that is not seamlessly
integrated into the Excel workbook for the project. Changes need to be updated manually
across different programs.
Ease of Checking:
The FE spreadsheet is all-inclusive with respect to input, equations, intermediate
calculation steps and final output. Each step and calculation can be checked in minute
detail. In contrast, commercial software is a black-box. You see the input and output,
but little of what is in between.
The Excel Spreadsheets provided with this course are believed to be accurate, but use
thereof shall be at the users risk. Results of the software should be independently
checked (as when making any calculations or using any software). The user is cautioned
that the spreadsheet original shall be saved and only copies used for calculations. The
formulas in the spreadsheet have minimal protection, so it would be easy to inadvertently
(or intentionally) revise the formulas.