The Finite Element Method for Frames – Theory and Implementation

← All engineering notes

A complete derivation of the frame element, from the principle of virtual work through the element matrices, assembly, solution and post-processing, with the numerical checks that decide whether the resulting numbers can be trusted

1. Introduction

1.1 Purpose and position of the article

A frame analysis can be obtained from commercial software without any knowledge of how the numbers are produced, and in routine design that is usually sufficient. The purpose of this article is the opposite of that convenience: to set out, without gaps, how a frame element is formulated, how the element matrices are assembled and solved, and where the approximations that remain at the end of the calculation come from. The treatment is restricted to the element that is actually used in the two solvers published on this site — a two-node space frame element with six degrees of freedom per node, based on Euler–Bernoulli beam theory — so that every expression written here can be recognised in the behaviour of those programs and checked against them.

The article is intended to be read in sequence. The first half builds the element: the continuous problem, its weak form, the interpolation and the stiffness and load matrices. The second half assembles, solves and interprets the result, and finishes with the two questions that matter in practice — how large the error of the method is, and how a calculation can be verified before it is used.

1.2 Scope and assumptions

The formulation developed here rests on the following assumptions, all of which are also the assumptions of the two solvers:

Plate and shell behaviour, plasticity, stability and the time domain are outside the scope. The free vibration of the same frame, which is a second eigenvalue problem built on the same matrices, is included in chapter 13, because the mass matrix raises questions of its own that a static treatment cannot answer.

1.3 Notation

Symbols follow the usage of the two programs. Lower-case letters are scalar quantities, with the axes identified by a subscript; upper-case letters denote matrices and vectors where the context requires it.

SymbolMeaningUnit
u, v, wdisplacements along the local axes x, y, zm
θx, θy, θzrotations about the local axesrad
N, V, Maxial force, shear force, bending momentN, N, Nm
Mxtorsional momentNm
E, Gmodulus of elasticity, shear modulusPa
A, Iy, Iz, Jarea, second moments of area, torsion constantm², m⁴
L, ξelement length, dimensionless coordinate x/Lm, –
K, kglobal and element stiffness matricesN/m, N/m
M, mglobal and element mass matriceskg, kg
u, Fvectors of nodal displacements and nodal forcesm, N
φ, ω, Tmode shape, circular frequency, natural period–, rad/s, s

1.4 How the article is organised

Chapters 2 to 6 build the element and are entirely analytical: the differential equation of the member, the weak form that replaces it, the shape functions that interpolate the field, and the resulting stiffness and load matrices. Chapters 7 to 11 are numerical: transformation to global axes, assembly, boundary conditions, solution of the linear system and the recovery of the internal forces. Chapter 12 treats the released end, chapter 13 the mass matrix and the eigenvalue problem of free vibration. Chapters 14 and 15 close the argument: what the error of the method consists of, and how a model is verified before its numbers are used. Chapter 16 collects the practical consequences in a short summary.

2. The continuous problem and its exact solution

2.1 The differential equation of a member

The starting point is the member itself. For a prismatic bar of bending stiffness EI, loaded by a transverse distributed load q(x) per unit length, the transverse displacement v(x) of the elastic line satisfies the fourth-order differential equation

d2dx2(EId2vdx2)=q(x)

in which the product EI is the flexural rigidity. The equation contains two nested statements: the curvature of the elastic line is κ = v″ = M/EI, and the equilibrium of a differential element of the member requires that the second derivative of the moment be equal to the applied load. The internal forces follow from the displacement field by differentiation,

M=−EId2vdx2,V=dMdx,q=dVdx

so that a single scalar function of one variable describes the whole bending behaviour of the member. The axial and torsional problems are of second order instead,

ddx(EAdudx)=−px,ddx(GJdθxdx)=−mx

with px the distributed axial load and mx the distributed torque per unit length. The four problems are uncoupled in the Euler–Bernoulli element, which is why the stiffness matrix of a member consists of independent blocks.

2.2 Boundary conditions

The fourth-order equation requires four conditions on each member, two at each end, and they are of two kinds. Essential conditions prescribe the field itself — a deflection or a rotation — and are imposed on the trial functions. Natural conditions prescribe the conjugate force — a shear force or a bending moment — and appear as a free end, or as the interaction with the neighbouring member. A clamped end prescribes a deflection and a rotation; a simply supported end prescribes a deflection and a zero moment; a free end prescribes both forces, both being zero.

The distinction matters for the discretisation that follows. Only the essential conditions are imposed on the approximation; the natural ones are satisfied in the weak sense, that is to say in the average sense of the virtual work, and their accuracy improves as the mesh is refined but is not enforced pointwise. A support restraint in a frame program is an essential condition, and it is therefore satisfied exactly at the node. A zero moment at a hinge is a natural condition, and it is satisfied by the formulation of the element rather than by the restraint of a degree of freedom.

2.3 The closed-form solutions

For a single prismatic member with simple loading the equation above is integrable in closed form, and the results are the ones used to verify any frame program. Three of them are needed later, and they are collected here for reference.

CaseMaximum deflectionMaximum moment
Simply supported, span L, uniform load qδ = 5qL⁴/(384EI) at midspanM = qL²/8 at midspan
Cantilever, length L, tip force Pδ = PL³/(3EI) at the tipM = PL at the support
Cantilever, length L, uniform load qδ = qL⁴/(8EI) at the tipM = qL²/2 at the support

The vertical deflection of the simply supported beam under a uniform load is, in closed form,

v(x)=qx24EI(L3−2Lx2+x3)

which is a polynomial of the fourth degree in x. The observation is not a curiosity: it explains a result that recurs in chapter 6 and that surprises most readers the first time it is met. A cubic Hermite interpolation of the exact solution of a uniformly loaded beam is not exact, because the exact field is quartic. The nodal values obtained with the consistent load vector are nevertheless exact, and the reason is that the cubic expansion can reproduce the exact nodal values of that particular solution, even though it cannot reproduce the field between the nodes.

2.4 Why a frame has no closed solution

A frame is not a single member. The members meet at finite angles, the internal forces of one member are the boundary conditions of the next, and the displacements of the shared node must be compatible between all members that meet there. The problem becomes a system of coupled differential equations whose boundary conditions are unknown at the outset: the moment transmitted by a member into a rigid joint depends on the relative stiffness of everything else attached to that joint. Only for a few geometries — a continuous beam of equal spans, a portal frame with regular properties — can the coupling be resolved in closed form, and then only by exploiting the symmetry of the particular case.

The finite element method replaces the search for an exact function by the search for a finite set of nodal values, and converts the differential equation into a system of algebraic equations in those values. The price is an approximation; the gain is that any geometry, any support arrangement and any load pattern is handled by the same procedure. The rest of this article is that procedure, and the discipline required to know how good the approximation is.

3. The weak form

3.1 The principle of virtual work

The reformulation starts from a statement of equilibrium that is weaker, and more general, than the differential equation. Consider a virtual displacement field δv(x) that satisfies the essential boundary conditions of the problem — zero at a clamped or a supported end — but is otherwise arbitrary. The principle of virtual work states that the internal work performed by the stresses on the virtual deformation equals the external work performed by the applied loads on the virtual displacement,

∫0Lδκ·Mdx=∫0Lδv·qdx+[δv·V+δθ·M]0

The equivalence with the differential equation is established by integration by parts: applied twice to the left-hand side, it produces the fourth derivative of the displacement, and the boundary terms generated by the two integrations reproduce exactly the natural boundary conditions. The weak form is therefore not an approximation but an equivalent statement of the same physics, in which the continuity demanded of the unknown field is reduced from the fourth derivative to the second — a requirement that a piecewise cubic satisfies on each element, and a piecewise linear function does not.

3.2 From the field to the nodal values

The second step is the discretisation proper. The unknown field is expressed as a linear combination of shape functions Ni(x) multiplied by the nodal values ui, and the virtual field is expressed in the same basis,

v(x)≈∑i=1nNi(x)ui,δv(x)=∑i=1nNi(x)δui

with n the number of degrees of freedom of the element. The curvature follows by differentiation as δκ = Bi δui, where Bi is the second derivative of the corresponding shape function. Substituting both expansions into the virtual work statement, and noting that the virtual nodal values are independent of each other and arbitrary, gives one equation for each of them:

∑j=1n[∫0LBiEIBjdx]uj=∫0LNiqdx

which is the element equation k u = f in its most compact form. Both integrals are evaluated analytically once for the element, because the shape functions are polynomials and the section properties are constant along it. The result is a matrix of numbers per element, computed at run time from four quantities only: E, A or I, and the length L.

3.3 What the weak form demands of the interpolation

Two requirements follow from the integrals above, and they decide the choice of the shape functions. The stiffness integral contains second derivatives of the shape functions, which must therefore be square-integrable on the element; this is satisfied by a function that is continuous together with its first derivative, and violated by a function that is continuous alone. The load integral contains the shape functions themselves, and demands nothing more than integrability.

For the axial and torsional problems the differential equation is of second order and the integral contains first derivatives only, so a linear interpolation — continuous, with a discontinuous first derivative at the nodes — is admissible. For bending, the fourth-order equation and the second derivatives in the stiffness integral require a C¹ interpolation: the deflection and the rotation must both be continuous across the element boundaries, because the rotation is the physical quantity that a rigid joint transmits. A linear field for the deflection would make the rotation discontinuous at every node, which is incompatible with a continuous member, and would also give a zero curvature everywhere, and therefore a zero stiffness.

4. Shape functions

4.1 The local coordinate and the degree-of-freedom vector

Each element is described in its own coordinate system, with the origin at node I, the axis x along the member and the length normalised to unity by the substitution ξ = x/L, so that ξ runs from 0 at node I to 1 at node J. The element of a plane frame carries six degrees of freedom, ordered as

u = [ u1  v1  θ1  u2  v2  θ2 ]
      |    |   |    |   |   |
   axial  vert. rot. axial vert. rot.
    at I   at I  at I  at J  at J  at J

and the element of a space frame carries twelve, with the notation u, v, w for the translations and θx, θy, θz for the rotations at each node. The two displacement components and the three rotations are independent interpolation problems; the only coupling between them appears later, in the transformation to global axes.

4.2 Axial force and torsion: linear interpolation

For the axial problem the exact solution of the homogeneous equation is linear in x, so the interpolation that reproduces it is linear as well. The two shape functions

N1(ξ)=1−ξ,N2(ξ)=ξ

satisfy N1(0) = 1, N1(1) = 0 and the reverse for N2, so the nodal values of the interpolated field are the nodal values assigned to it. The strain is constant over the element, ε = (u2 − u1)/L, which is the exact solution for a bar with no distributed axial load and a good approximation for a bar with one. The torsional problem is formally identical, with GJ replacing EA and the rotation θx replacing the axial displacement.

4.3 Bending: the Hermite cubics

The bending problem needs a cubic, because four conditions must be satisfied: the deflection and the rotation at each of the two nodes. The four cubic Hermite polynomials are obtained by requiring that one of the four nodal values be unity and the other three zero. Written in terms of the normalised coordinate they are

N1=1−3ξ2+2ξ3,N2=L(ξ−2ξ2+ξ3)
N3=3ξ2−2ξ3,N4=L(−ξ2+ξ3)

and the transverse displacement within the element is the weighted sum of the four nodal values,

v(ξ)=N1v1+N2θ1+N3v2+N4θ2

The presence of the length in the two rotation functions is not a matter of choice. The nodal values v and θ have different dimensions, and the factor L makes the combination dimensionally consistent; it also keeps the stiffness matrix symmetric, since the derivative of N2 with respect to x equals N1 at the first node. The rotation of the section follows from the derivative of the interpolation,

θ(ξ)=dvdx=1Ldvdξ

and the four functions satisfy N2′(0) = L · (1/1) · (1/L) = 1 and N1′(0) = 0, which is exactly the requirement that the nodal rotation θ1 be reproduced by the derivative of the field at node I.

4.4 Properties of the interpolation

Three properties of this set of functions are used repeatedly in what follows. The interpolation reproduces the nodal values exactly, because Ni(ξj) = δij. It reproduces a rigid-body motion exactly, because the sum of the two deflection functions is unity for every ξ and the sum of the two rotation functions is zero, so a pure translation or a pure rotation produces no deformation and therefore no internal force. And it is complete for the cubic polynomial, which means that any field of degree three or less in x is represented exactly — the reason why a single element gives the exact answer for a cantilever with a tip load, a result demonstrated in chapter 15.

PropertyConsequence
Nodal interpolation, Ni(ξj) = δijthe solved nodal values are the actual displacements and rotations at the nodes
Partition of unity, Σ N1,3 = 1 and Σ N2,4 = 0a rigid-body motion produces no strain and no internal force
Cubic completenessa tip-loaded prismatic cantilever is solved exactly with one element
C¹ continuitythe rotation is continuous across nodes, so a rigid joint transmits moment without a kink

5. The element stiffness matrix

5.1 The axial and torsional blocks

With the linear interpolation of section 4.2 the axial strain is constant, B = dN/dx = [−1/L, 1/L], and the stiffness integral of chapter 3 evaluates in one step:

k_ax = EA / L

                 ┌         ┐
                 │  1   −1 │
                 │ −1    1 │
                 └         ┘

The matrix is singular, as it must be: a bar that translates as a rigid body stores no energy, so a constant displacement vector produces a zero force. It becomes non-singular only when one of its two degrees of freedom is restrained by a support or by the neighbouring member. The torsional block has the same form with GJ/L in place of EA/L, and the same rigid-body property: a member that rotates about its own axis without twisting develops no torque.

5.2 The bending block

The bending strain measure is the curvature, so the strain-displacement matrix is built from the second derivatives of the Hermite functions. Differentiating twice and collecting the terms gives, in the local coordinates,

B1=−6+12ξL2,B2=−4+6ξL,B3=6−12ξL2,B4=−2+6ξL

and the integral of the products Bi EI Bj over the element is a polynomial in ξ of degree two, which is integrated exactly without numerical quadrature. The result for the four degrees of freedom v1, θ1, v2, θ2 contains only four distinct coefficients:

12EIL3,6EIL2,4EIL,2EIL

and each of them has a direct physical reading, which is worth stating explicitly because it allows a quick check of any stiffness matrix at sight:

CoefficientPhysical meaning
12EI/L³the transverse force needed at one end to produce a unit transverse displacement of that end with both rotations held zero; the factor 12 combines the bending of the member with the two end shears
6EI/L²the transverse force produced by a unit end rotation (and the moment produced by a unit end displacement), the coupling between translation and rotation
4EI/Lthe moment needed at one end to rotate that end by unity with the far end held zero — the rotational stiffness of the member
2EI/Lthe moment induced at the far end by the same rotation — the carry-over, exactly half of the direct term

The assembled element matrix for the in-plane bending problem is therefore

v1        θ1        v2        θ2
   ┌                                        ┐
v1 │  12/L³    6/L²    −12/L³    6/L²      │
θ1 │   6/L²    4/L       −6/L²    2/L       │  × EI
v2 │ −12/L³   −6/L²     12/L³   −6/L²      │
θ2 │   6/L²    2/L       −6/L²    4/L       │
   └                                        ┘

The pattern of signs is not arbitrary. The two diagonal terms that correspond to a translation are equal and positive; the two that correspond to a rotation are equal and equal to 4/L; the coupling terms on the anti-diagonal are half of the direct rotational term; and the negative terms are those that connect a displacement at one end with a force at the other, which must oppose each other for the member to carry shear.

5.3 The complete element matrix

Assembling the three independent blocks — axial, bending in the plane, and torsion for the space element — gives the complete matrix of the two-dimensional element, with the degrees of freedom ordered as u1, v1, θ1, u2, v2, θ2:

u1      v1       θ1        u2      v2       θ2
   +----------------------------------------------------+
u1 |  A/L                         -A/L                  |
v1 |         12/L³   6/L²                 -12/L³   6/L²  |
th1|          6/L²   4/L                   -6/L²   2/L   | x E
u2 | -A/L                          A/L                  |
v2 |        -12/L³  -6/L²                 12/L³  -6/L²   |
th2|          6/L²   2/L                   -6/L²   4/L   |
   +----------------------------------------------------+

The matrix is symmetric about the main diagonal, which is a consequence of the symmetry of the underlying integral and not of any choice of signs. It has three zero eigenvalues, one for each rigid-body mode of the plane element — a translation along x, a translation along y and a rotation in the plane — and these are visible by inspection: the sum of the two axial columns multiplied by a constant translation gives zero, and the bending block applied to the vector (1, 0, 1, 0) gives zero, which is the statement that a member translated at both ends without rotating carries no force. A numerical check of any implementation consists precisely of this: multiplying the matrix by each of the three rigid-body vectors and verifying that the result is zero to the last digit. In the two solvers published on this site the check is implicit in the assembly, because a free node with no stiffness is detected as a mechanism and reported before any solution is attempted.

5.4 The space element

The space element of a three-dimensional frame has twelve degrees of freedom, ordered as u, v, w, θx, θy, θz at node I followed by the same six at node J. Its matrix is the assembly of four independent blocks: the axial block EA/L between the two u degrees of freedom; the torsional block GJ/L between the two θx; the bending block of section 5.2 written for the plane x–y, between v and θz, with the second moment Iz; and the same block written for the plane x–z, between w and θy, with the second moment Iy. In compact block form the matrix is

u1    v1    w1   thx1  thy1  thz1  |   u2    v2    w2   thx2  thy2  thz2
   +----------------------------------------------------------------------------+
u1 |  ax                                    -ax                                  |
v1 |       bz    cz          dz                  -bz   cz          dz            |
w1 |             by   -cy         dy                   -by   cy         dy       |
tx1|                   tp                        -tp                             |
ty1|                         ey            cy   -fy             -ey               |
tz1|                               ez   -cz              cz   -fz                |
u2 | -ax                                     ax                                  |
v2 |      -bz   -cz         -dz                  bz   -cz         -dz            |
w2 |            -by    cy        -dy                   by   -cy        -dy        |
tx2|                  -tp                        tp                              |
ty2|                        -ey           -cy    fy             ey                |
tz2|                             -ez    cz              -cz    fz                 |
   +----------------------------------------------------------------------------+

with the coefficients ax = EA/L, tp = GJ/L, bz = 12EIz/L³, cz = 6EIz/L², ez = 4EIz/L, fz = 2EIz/L, and the same four quantities for the second plane with Iy and with the signs of the coupling terms reversed, because a positive rotation θy corresponds to a negative curvature in the plane x–z. The reversal is the only place in the whole formulation where a sign convention has to be remembered, and it is the origin of most of the transcription errors found in hand-written element matrices.

The matrix has six zero eigenvalues in space, one for each rigid-body mode: three translations and three rotations. The property is again a complete check of an implementation, and it is more demanding than in the plane case, because the rotational rigid-body modes exercise the coupling terms between the two bending planes.

5.5 What the Euler–Bernoulli element leaves out

The transverse shear deformation is absent from the kinematics of section 4. In a Timoshenko element the rotation of the section is an independent field, the shear strain is the difference between the slope of the deflection and the rotation of the section, and the stiffness matrix contains an additional flexibility proportional to L/(GAs), where As is the shear area of the section. For a slender member the correction is negligible: the ratio of the shear component to the bending component of the deflection of a cantilever is of the order of (E/G)(I/A)/L², which for a 6 m tube of 168 mm diameter is about 0.3 %.

For a deep member, a short span or a solid section the correction becomes visible, and its systematic omission makes the Euler–Bernoulli element slightly stiffer than the real member. That is the origin of the differences reported in chapter 15: a lattice mast analysed with Timoshenko elements in a commercial program and with the element derived here shows displacements that differ by about 0.1 % of their peak, the Euler–Bernoulli result always being the smaller of the two.

5.6 The torsion constant and the choice of section

The torsional block of the space element is governed by a single quantity, the St. Venant torsion constant J, and it is the property most often entered incorrectly in a frame model, because it is neither the polar moment of area nor a quantity that can be estimated from the bending inertias. The distinction deserves a paragraph of its own.

For a circular tube, and only for a circular section, the torsion constant is twice the second moment of area, J = 2I = Ip, because the polar moment is the torsional stiffness of a circular shaft. For a closed thin-walled section of any other shape, the torsion is carried by a shear flow distributed around the perimeter, and the constant follows Bredt's formula

J=4Am2∮dst

with Am the area enclosed by the mean line of the wall and the integral taken around the perimeter. For an open thin-walled section the constant is of a completely different order of magnitude, being approximately the sum of the contributions of the individual plates,

J≈13∑ibiti3

and the result is smaller than the polar moment by two to three orders of magnitude. An IPE 200 has J ≈ 7.0 cm⁴ against a polar moment Iy + Iz ≈ 2 085 cm⁴, a ratio of about three hundred.

SectionJIy + IzRatio
CHS 168 × 82 580 cm⁴2 580 cm⁴1
SHS 100 × 100 × 6561 cm⁴667 cm⁴0.84
IPE 2007.0 cm⁴2 085 cm⁴1/300
HEA 20021.0 cm⁴3 694 cm⁴1/175

The practical consequences are direct. A member whose torsion matters — a purlin carrying an eccentric load, a crane beam with a rail off the centroid, a member of a curved or helical structure — must be a closed section, or the rotation computed by the model will be far larger than that of the real member, which mobilises the warping stiffness that the element does not represent. Conversely, an open section in a model where torsion does appear is not automatically wrong: the very small J correctly predicts that the member offers almost no resistance, and the rotations obtained are a warning that the real structure must be detailed so that the torsion is avoided rather than carried.

The profile tables published on this site give the torsion constant of every section from the published catalogues rather than from an estimate, and the 3D solver reads those values directly. That is the reason a torsion calculation performed with these programs can be compared with a commercial one at the level of the second digit, as chapter 15 shows, while a calculation that entered J as the polar moment would be wrong by a factor of three hundred in the torsional stiffness of every I-section in the model.

6. Equivalent nodal loads

6.1 The consistent load vector

The right-hand side of the element equation is the integral of the shape functions weighted by the applied load. For a uniform load q acting on the whole element of length L, and for the two bending degrees of freedom at node I, the integrals of the Hermite functions follow from their definition,

f1=∫0LN1qdx=qL2,f2=∫0LN2qdx=qL212

with the same force and the opposite moment at the far node. The load is therefore not converted into two forces of qL/2 at the nodes and nothing else: the consistency of the shape functions generates in addition a pair of end moments of qL²/12, which are exactly the fixed-end moments of a member with both ends clamped. The name is not a coincidence — the vector obtained from the shape functions is the fixed-end action of the load, and for the uniform case it reproduces the classical values, which is a convenient way of remembering it.

6.2 Fixed-end forces for the common cases

LoadEnd forces at I and JEnd moments at I and J
Uniform q over the whole spanqL/2 eachqL²/12, opposite signs
Point force P at distance a from IP(L−a)²(3a+L)/L³ and its complementfrom the standard tables
Trapezoidal, q₁ at I and q₂ at Jstatic moment of the linear distribution(q₁+3q₂)L²/60 and (3q₁+q₂)L²/60
Uniform axial load ppL/2 at each endnone
Uniform torque mmL/2 at each endnone

The trapezoidal case is worth a comment, because it appears whenever a member carries a load that runs from one value to another: a cladding panel, a snow drift, a wind pressure varying with height. The load vector is obtained by integrating the shape functions against a linear distribution, and the result is not the average of the two uniform cases: it is the combination given in the table, which for equal end values reduces to the uniform result. Interpolating between the two uniform results would be a plausible approximation, and would be wrong by several per cent on the moments — one of the small traps of a hand calculation.

6.3 The particular solution and the internal diagram

Between the nodes the internal forces are not obtained by interpolating the nodal values. The displacement field of the element is the sum of the Hermite interpolation of the nodal values and of the particular solution of the member equation for the load that acts on the element. In the two solvers the diagram of a member is computed from the end forces plus that particular solution, which is why the bending moment diagram of a simply supported beam under a uniform load is already correct with a single element, although the deflection between the nodes is not. Two results from the published implementation, both reproducible with the solver, illustrate the point:

Simply supported span 6.00 m, IPE 200, uniform load 10 kN/mDeflection at midspanMoment at midspan
1 element33.07 mm from the diagram (exact 41.36 mm)44.97 kNm (exact 45.00 kNm)
2 elements41.36 mm at the node (exact)45.00 kNm (exact)
4 elements41.36 mm at the node (exact)45.00 kNm (exact)

The moments are right from the first element, because the moment depends not on the interpolation of the deflection but on the equilibrium of the element with its load. The deflection between the nodes is not right with one element, because there is no node at midspan at which the exact value could be enforced, and the cubic interpolation between two zero end deflections underestimates it by about 20 %. The practical rule that follows is the one stated in the user guides: refine the mesh where the deflection is to be read, not where the moment is to be read. The corresponding comparison for a cantilever with a tip force gives the exact answer with a single element, in both the deflection and the moment, because the cubic field contains the exact solution of that problem.

7. Transformation to global axes

7.1 The local axes of a member

The element matrices derived above refer to a coordinate system attached to the member, with x along its axis. A frame requires a single global system in which all members are assembled, and the two are related by a rotation that depends on the geometry of the member. The construction used in the solvers published here is the following. The axis x is the unit vector along the member. A reference direction close to the global vertical is projected onto the plane normal to x; the normalised projection is the local y, and the local z completes the right-handed triad. For a member that is itself vertical, where the projection degenerates, the global X direction is used as the reference instead.

The choice fixes the orientation of the strong axis of an I-section relative to the plane of the frame, and it is the reason a steel member needs a roll angle in the model: the fabricator places the section in a particular orientation, and the analysis must know which. A roll angle φ rotates the local y and z about x according to

y′=ycosφ+zsinφ,z′=zcosφ−ysinφ

and for the sections used in lattice construction — circular tubes and equal angles, for which Iy = Iz — the roll has no influence on the result at all, which is a useful simplification when a large model is being checked.

7.2 The transformation of the element matrices

Let R be the 3×3 matrix whose rows are the local axes expressed in global coordinates. The transformation of a displacement vector is ulocal = T uglobal, where T is the block-diagonal matrix built from four such rotations, one per node and one for the translations and for the rotations. The stiffness matrix of the element referred to the global axes follows as

kg=TTklT,fg=TTfl

and the transformation preserves the eigenvalues of the matrix, because it is an orthogonal change of basis. The property gives another check of an implementation: the three rigid-body modes of the local matrix must remain rigid-body modes of the transformed one, and the strain energy of a given displacement field must be identical in the two systems.

8. Assembly

8.1 The degree-of-freedom map

Assembly is a bookkeeping operation. Every node carries six global degrees of freedom, numbered consecutively; every element contributes its twelve local degrees of freedom to twelve positions in the global vector, and its matrix is added into those positions. An element that connects nodes i and j therefore writes its four blocks into the rows and columns i and j of the global matrix, and the process is repeated for every member of the model. The size of the global matrix is six times the number of nodes, which for the largest example published on this site — a lattice mast of 120 nodes — gives 720 degrees of freedom.

Two properties of the assembled matrix are inherited from the elements and are not consequences of the assembly: it is symmetric, because every element matrix is; and it is positive semi-definite, with as many zero eigenvalues as the structure has rigid-body modes. A structure with three supports and no mechanism has no rigid-body modes at all, and the matrix becomes positive definite once those supports are imposed. A structure with fewer restraints retains some, and the matrix remains singular, which is the mathematical form of the statement that the structure cannot carry that load.

8.2 Sparsity and bandwidth

A node is connected only to the members that meet it, so the corresponding row of the global matrix contains non-zero terms only in the columns of the neighbouring nodes. For a frame of a few thousand members the matrix is therefore overwhelmingly empty, and the fraction of non-zero terms falls as the model grows. A dense solver — the one used in the two programs described here — stores and operates on all the entries, including the zeros, and its cost grows with the cube of the number of degrees of freedom: doubling the model multiplies the solution time by eight. For a few hundred nodes this is irrelevant, and it keeps the code short and dependable. Beyond a few thousand degrees of freedom a banded or a sparse solver becomes necessary, and the assembly stores only the non-zero positions.

8.3 A worked example: two elements, one load

The behaviour of an assembled system is best seen on a case small enough to follow by hand. Take a simply supported beam of span 6.00 m divided into two elements of 3.00 m, both carrying the uniform load of 10 kN/m, and consider only the vertical displacement and the rotation at the middle node. The support conditions remove the vertical displacement at the two outer nodes; the rotations are free everywhere, and the axial degrees of freedom are irrelevant to this load and are removed with the supports.

Each element contributes its bending block to the middle node and to one outer node. At the middle node the element on the left contributes the terms 12EI/L³ and 4EI/L from its far end, and the element on the right contributes the same terms from its near end, so the diagonal of the assembled system at that node is the sum of the two contributions. The load vector at the same node receives the fixed-end force of each element, qL/2 = 15 kN from each side, while the fixed-end moments of qL²/12 = 7.5 kNm appear with opposite signs from the two elements and cancel at the shared node.

Solving the resulting 2×2 system gives a vertical displacement of 41.36 mm and a rotation of 0.0155 rad at the middle node. The displacement is exactly the closed-form value 5qL⁴/(384EI) quoted in chapter 2, and the agreement is not a coincidence: the cubic field can reproduce the exact nodal displacement of this particular problem, and the consistent load vector reproduces the exact nodal forces. The internal forces, recovered as described in chapter 11, give a maximum moment of 45.00 kNm at midspan, again exact. The same calculation performed with the program published on this site returns 41.3573 mm and 45.000 kNm, which is the arithmetic of the paragraph above reproduced by the code.

9. Boundary conditions and stability

9.1 How the restraints enter the system

A support is a degree of freedom whose value is known in advance, in most cases zero. Two implementations are possible. The rows and columns of the restrained degrees of freedom may be deleted from the system, which reduces its size and keeps it well conditioned; or they may be retained and the corresponding equation replaced by the identity, which keeps the numbering of the unknowns unchanged. The second route is convenient when the reactions are required, because the equation that has been replaced is exactly the one from which the reaction is recovered. Both give the same displacements.

9.2 Singularity and mechanisms

If the restraints leave a rigid-body mode free, the stiffness matrix has a zero eigenvalue and the system has either no solution or infinitely many. The practical consequence is not a wrong answer but a failure of the elimination: a zero pivot appears, and the program must stop. In the solvers described here the failure is anticipated rather than discovered: the assembly records which degrees of freedom have received stiffness, and a node with no stiffness in a given direction is reported by name before the solution is attempted. The message identifies the node and the direction, which is usually enough to find the missing member or the missing support.

The distinction between a mechanism and an ill-conditioned structure is worth keeping in mind. A mechanism is a zero eigenvalue: the structure can change shape without any force, and the matrix is exactly singular. An ill-conditioned structure is one in which a mode exists but its stiffness is very small compared with the rest — a long slender cantilever, a member of negligible bending stiffness, a section entered in the wrong units. The matrix is not singular, the solution is obtained, and the displacements of that mode are enormous. The first is caught by the solver, the second only by inspection of the results, which is the reason the deformed shape is drawn and not only tabulated.

10. Solution of the linear system

10.1 Elimination

The assembled and restrained system K u = F is solved by Gauss elimination with partial pivoting, which factors the matrix into a lower and an upper triangular factor in a single sweep. Because the matrix is symmetric, only the lower triangle need be stored, and the factorisation is the Cholesky or LDLT form. The elimination is direct: it produces the answer to machine precision in a finite number of operations, of the order of n³/3 for the factorisation and n² for each additional right-hand side, with n the number of free degrees of freedom.

The last remark explains a practical property of the programs described here. Once the matrix has been factorised, an additional load case costs only a back-substitution, not another factorisation; and the same factorisation serves the subspace iteration of the eigenvalue problem in chapter 13, where the same system is solved several times with different right-hand sides. That is why the modal analysis of a model with 1 600 degrees of freedom is obtained in about one second, while the first static case of the same model takes a fraction of it.

10.2 Measured performance

ModelFree degrees of freedomWhat is solvedTime
IPE 200 beam, 4 elements6one static casebelow 1 ms
Lattice mast of the cross-check in chapter 15720five cases and combinations0.15 s
Lattice frame of 539 nodes, 905 members1 614one static case0.2 s
The same frame, modal analysis1 614six modes, 37 subspace iterations1.1 s

The numbers are those of the implementation in JavaScript running in a browser, and they are quoted to establish the order of magnitude rather than to describe the code: a dense solver at 1 600 degrees of freedom is at the edge of what can be done without a sparse factorisation, and a model of several thousand nodes needs one. The practical consequence is that the mesh can be refined for accuracy without concern up to a few hundred nodes, and that a model of several thousand members is better analysed in parts, or with a program that stores the matrix sparsely.

10.3 Units and scaling

The system is assembled and solved in SI units, with lengths in metres, forces in newtons and moments in newton-metres. The choice matters for the conditioning of the matrix: the stiffness terms of a frame span many orders of magnitude, from the axial EA/L of a stiff column to the rotational 2EI/L of a slender brace, and they are not made worse by an unfortunate choice of units. A section entered in square millimetres instead of square metres scales the stiffness of that member by 10⁶, and the structure appears a thousand times too stiff; the error is invisible in the equilibrium check, which is satisfied exactly by the wrong answer, and is detected only by comparing a deflection with a hand calculation.

11. Post-processing and the equilibrium proof

11.1 End forces

Once the global displacements are known, the end forces of each element are recovered in its local system. For an element without releases the relation is

fl=kl(Tug)−flfe

where the second term is the fixed-end vector of the load applied to that element: the total end force is the elastic force corresponding to the deformation less the part of the load already carried by the member itself. Omitting that second term is one of the classical mistakes of a hand implementation, and it produces a diagram that does not close on the applied load.

11.2 Diagrams along the member

The internal actions at any station follow from the end forces and from the load between the station and the end, and the two solvers draw them at a number of stations along each member. Between two adjacent stations the variation is a polynomial: the axial force and the shear are constant under a uniform load, the moment is linear, and under a triangular load the shear becomes quadratic and the moment cubic. The particular solution of chapter 6 is what makes these shapes correct even when the member consists of a single element.

The sign conventions must be stated, because two of them are in use. The axial force is positive in tension. The shear force and the bending moment are reported as the forces and moments that the member applies to the nodes, and the diagrams are drawn on that convention; a sagging moment under a vertical load on a horizontal beam therefore appears with the sign that corresponds to the compression of the upper fibre, as in the elementary theory of beams.

11.3 Reactions and the equilibrium proof

The reaction at a restrained degree of freedom is the force that the support must apply to keep that degree of freedom at its prescribed value. In the implementation it is recovered from the replaced equation as the internal force at the restrained node less the applied nodal load,

Ri=(Ku)i−Fi

and the six global sums of the reactions and the applied loads must vanish. The residual is a numerical proof of the assembly and of the solution, and it is reported after every analysis in the diagnostics panel of both programs. The values are of the order of 10-12 of the applied load: for the mast of chapter 15, with reactions of 1 561 kN, the residual of the vertical sum is about 4·10-8 N, which is 2·10-14 of the largest force. A residual above about 10-6 indicates a genuine error — a load applied twice, a member of zero length, a release that leaves a mechanism.

The equilibrium check must not be over-read. It proves that the linear system was assembled and solved consistently with the loads that were entered; it does not prove that those loads or those supports are the right ones for the structure. A model with a missing support is usually singular and is caught. A model with a support in the wrong place is not, and the equilibrium will be satisfied exactly by the wrong answer.

12. Released ends by static condensation

12.1 The problem

A real connection is not always rigid. A simple shear connection transmits shear and axial force but almost no moment, and a bracing member pinned at both ends transmits axial force only. In a frame model the corresponding member is given a release at the relevant rotational degree of freedom, and the constraint is that the moment at that end be zero regardless of the rotation that develops there.

The release introduces a degree of freedom whose conjugate force is known — zero — while its displacement is unknown. That is the mirror image of a support, and it is handled by elimination rather than by restraint: the rotation at a released end is not an independent unknown of the global system, but the value that makes the end moment vanish.

12.2 The condensation

Partition the local element equation into the degrees of freedom that are retained and those that are released. Writing the released set as subscript r and the retained set as subscript k, the two blocks are

kkkuk+kkrur=fk,krkuk+krrur=0

The second block gives the released rotation in terms of the retained displacements, ur = −krr−1 krk uk, and substituting it into the first block gives the condensed element matrix

kkk*=kkk−kkrkrr−1krk

which is smaller, fully populated in the remaining degrees of freedom, and exact for the constraint imposed. The operation is the one a hand calculation performs when a hinge is introduced: the rotational stiffness of the member at that end is redistributed over the remaining degrees of freedom.

12.3 Recovery and the risk of over-releasing

After the global solution the released rotation is recovered from the relation above, and the end forces follow from the original, uncondensed matrix, as the elastic force minus the fixed-end vector described in chapter 11. Omitting the recovery step leaves the released rotation at zero and produces a diagram with a moment at a hinge that should not be there.

Two releases on the same member, at the same end and in the same plane, remove the entire rotational stiffness of that member in that plane: the member becomes a two-force element there while remaining a beam in the other plane, and the condensation matrix krr becomes singular. The implementation detects the condition and reports it, because the alternative — inverting a singular matrix — produces numbers of arbitrary magnitude. A release that is physically defensible is almost always a single rotational degree of freedom at a single end.

13. The mass matrix and free vibration

13.1 The consistent mass matrix

The dynamic problem requires a second matrix, which quantifies the inertia of the element. It is obtained from the same shape functions, by integrating the product of the interpolation with itself weighted by the mass per unit length,

mij=∫0LρANi(x)Nj(x)dx

which for the four bending degrees of freedom gives the classical Hermite matrix

v1        θ1        v2        θ2
   +----------------------------------------+
v1 |   156      22L       54      -13L     |
th1|   22L      4L²       13L      -3L²     |  x rho*A*L/420
v2 |    54      13L      156      -22L     |
th2|  -13L     -3L²      -22L       4L²     |
   +----------------------------------------+

and for the two axial degrees of freedom the simpler form

m_ax = ρ A L / 6

                  ┌       ┐
                  │  2  1 │
                  │  1  2 │
                  └       ┘

The torsional term is of the same form with the polar inertia ρIpL/6, where Ip = Iy + Iz, because a twist about the member axis accelerates the material at a distance from that axis. Including the term is what keeps the mass matrix positive definite, and it allows the eigenproblem to be formed without a preliminary condensation of the rotational degrees of freedom.

The matrix is consistent because it is derived from the same interpolation as the stiffness matrix. The alternative is a lumped matrix, in which half of the mass of the member is placed at each node and the rotational degrees of freedom receive nothing; it is diagonal and simpler, but it underestimates the frequencies and leaves the rotations massless, so that they must be eliminated before the eigenproblem can be written in standard form.

13.2 The eigenvalue problem

The free, undamped motion of the assembled structure satisfies

Kφ=ω2Mφ

with φ the mode shape, ω the circular frequency and M the assembled mass matrix. Both matrices are symmetric and, after the supports are imposed, positive definite, so the eigenvalues are real and positive and the eigenvectors are orthogonal with respect to both matrices:

φiTMφj=δij,φiTKφj=ωi2δij

The normalisation is a convention. The solvers published here normalise each mode so that the modal mass is unity, which makes the second relation the definition of the frequency. The natural frequency and the natural period follow as f = ω/2π and T = 2π/ω, and it is the period that enters a seismic check or a vibration assessment.

13.3 Subspace iteration

For a frame of any size the eigenvalues cannot be obtained by hand, and only the lowest few are of interest. The method used in the two programs is subspace iteration, which works with a small set of q trial vectors instead of the whole space, and proceeds in three steps per sweep:

  1. Solve K Y = M X for the block Y, using the factorised stiffness matrix of chapter 10 — the same factorisation, reused, with q right-hand sides.
  2. Project the problem onto the subspace spanned by Y, forming the small matrices Kp = YT M X and Mp = YT M Y, and solve the small generalised eigenproblem by Jacobi rotations — a q × q problem, negligible in cost.
  3. Return to the full space with X = Y Q, and repeat until the eigenvalues stop changing.

The iteration converges to the q lowest eigenvalues, which is the part of the spectrum that matters, and the convergence is from above: the computed frequencies are always higher than the exact ones and decrease towards them, the rate depending on the separation between the modes. The tolerance used in the implementation is a relative change of 10-10 in the eigenvalues, and the number of sweeps is reported with the results, so that a calculation which has not converged can be recognised rather than trusted.

13.4 Participation factors

A mode shape alone does not say how much of the mass of the structure moves with it. That quantity is the effective modal mass, obtained from the modal participation factor

Γd=φTMrd

with rd a vector of ones on the translational degrees of freedom of the direction d and zero elsewhere. The square of the factor, divided by the modal mass, is the mass that the mode mobilises in that direction, and the sum over all modes tends to the total mass of the structure. A sum reaching ninety per cent over the first few modes means that those modes are sufficient for a seismic check in that direction; a sum that stays well below it means that the structure has modes of a kind not yet computed.

13.5 Convergence of the frequencies with the mesh

Because the mass matrix is consistent, the frequencies of a member converge from above as the member is divided into more elements, and the convergence is rapid. For the cantilever of the previous chapters — 6.00 m, IPE 200, fixed at one end — the first frequency is:

Elementsf₁ from the solverError against the exact value
16.6699 Hz+0.48 %
26.6415 Hz+0.05 %
46.6385 Hz+0.003 %
86.6383 Hz+0.0006 %
exact, 3.516/(2π)·√(EI/ρAL⁴)6.6383 Hz—

A single element already gives the frequency to within half a per cent, and four elements to within three thousandths of one per cent. The reason is the completeness argument of chapter 4: the exact mode shape of a uniform cantilever is a combination of trigonometric and hyperbolic functions, but over a short length a cubic represents it well, and the frequency is an integral quantity that is insensitive to a small error in the shape.

14. Accuracy and the sources of error

14.1 Discretisation

The first source of error is the replacement of a continuous field by a finite set of nodal values. Its size depends on what is being read. Nodal displacements and rotations are exact when the element can represent the exact solution at the nodes, which is the case for a tip-loaded cantilever with one element and for a uniformly loaded simply supported beam with two; moments are recovered from equilibrium with the load and are therefore accurate even on a coarse mesh; deflections and slopes between the nodes require the field to be represented, and there a single element can be in error by twenty per cent, as the comparison of chapter 6 shows.

The practical rule is that the mesh must be refined where the field is read. For a frame of distinct members the usual discretisation — one element per member, plus a node wherever a load or a change of section occurs — is adequate for the internal forces and for the nodal displacements. A member whose deflection is to be quoted should be divided into two or four elements, and a member whose second frequency is required into at least four.

14.2 Shear deformation

The Euler–Bernoulli element neglects the transverse shear deformation, and the omission makes it stiffer than a Timoshenko element. The error is systematic, always in the same direction, and small for slender members: the ratio of the shear to the bending component of the deflection of a cantilever of length L is

δsδb=3EIGAsL2

which for a 168 × 8 tube over 4.5 m gives about 0.3 %, and for a deep solid section over 1 m gives several per cent. The comparison with a program that includes shear, reported in section 15.3, puts the global effect on a real lattice structure at 0.1 % of the displacements and below the second digit on the forces.

14.3 Joints, offsets and the stiffness of the connections

Every member of a frame model is connected to its neighbours at a point, and every joint is rigid unless a release is declared. Real connections are neither. They occupy a physical volume, so the centroidal axes of the members do not intersect at a point, and they possess a rotational stiffness that is finite and much lower than that of the member they connect: a gusset plate, a cleat or a simple end plate does not transmit the full moment assumed by a rigid node.

The consequence is a systematic overestimate of the stiffness of the structure, which matters most for sway. In a braced frame the error is negligible. In an unbraced frame the stiffness of the beam-to-column connections controls the sway deflection, and a model with fully rigid joints can underestimate that deflection by ten to thirty per cent. When the connection is known to be semi-rigid, the defensible approach is either to model it with a rotational spring — which this element does not provide — or to bound the answer with two models, one rigid and one with an explicit release, and to design for the envelope.

14.4 Second-order effects

The analysis is written on the undeformed geometry. The axial force in a member changes its lateral stiffness, and in a compression member the effect is a reduction that grows without limit as the force approaches the Euler load. The classical approximation is the amplification factor

α=11−N/Ncr

which for a force of a tenth of the critical load is 1.11 — an eleven per cent amplification that no linear analysis can produce. The checks a design office performs on the results of a linear analysis, such as the sway limitation or the αcr criterion of the codes, exist precisely to detect the models in which this assumption is being violated. For the classes of structure for which the two solvers are intended — braced frames, lattice structures, footbridges, temporary works — the second-order effects are usually modest, but they are never absent: a linear result is a lower bound on the deflections and an upper bound on the buckling resistance.

14.5 Loads applied off the axis

The element receives loads on the member axis. A load applied on a bracket, a crane rail offset from the column centroid or a cladding panel fixed to one flange produces a torsion that the model does not see unless it is introduced explicitly as a distributed or a concentrated torque. The omission is a modelling error of the same class as a missing second-order effect, and it is more treacherous, because the torsion is carried by the St. Venant stiffness of a section that may be an open profile whose torsion constant is a thousand times smaller than its bending inertia.

14.6 An error budget

SourceTypical magnitudeWhere it showsHow to control it
Discretisation of the field between nodesup to 20 % of a deflection read between nodes; below 1 % of the nodal valuesdeflections, slopes, higher modesrefine the mesh where the value is read
Shear deformation (element formulation)0.3 % of the deflection for slender tubes; several per cent for deep or short membersdeflections; negligible in the forcesuse a shear-deformable element for deep members
Joint rigidity10–30 % of the sway of an unbraced framesway, moments at the column basesmodel the connection, or bound the answer
Second order11 % at N = 0.1 Ncr, unbounded at Ncrsway, member momentssecond-order analysis, or the code criterion
Loads off the axis5–50 % of the member forces in torsion-sensitive elementswarping, connection forcesapply the torque explicitly
Units and section dataorders of magnitude if wrongeverywhere, with equilibrium still satisfiedcompare one member with a hand calculation

The table is the honest summary of the method: the analysis solves the model exactly, and the difference between the model and the structure is what the engineer must estimate. The last row is the only one that produces a wrong answer without changing anything in the physics, and it is also the only one that the equilibrium check cannot detect.

15. Verification

15.1 Checks against closed-form solutions

The first level of verification is a comparison with a case that can be solved by hand. Four such cases cover the whole formulation, because between them they exercise the axial, bending and torsional blocks, the consistent load vector and the recovery of the internal forces:

CaseModelExpectedSolver
Cantilever, tip forceL = 6.00 m, IPE 200, P = 10 kNPL³/(3EI) = 176.46 mm; M = 60.00 kNm176.4576 mm; 60.000 kNm, one element
Cantilever, uniform loadthe same, q = 10 kN/mqL⁴/(8EI) = 397.03 mm397.0296 mm
Simply supported, uniform loadthe same, 4 elements5qL⁴/(384EI) = 41.36 mm; M = 45.00 kNm41.3573 mm; 45.000 kNm
First frequency, cantileverthe same, 8 elements3.516/(2π)·√(EI/ρAL⁴) = 6.6383 Hz6.6383 Hz, error 6·10⁻⁴ %

The numbers are those of the implementation published on this site, reproduced by the automated tests that accompany it. They are worth reading as a whole: the axial, bending and torsional behaviour is exact wherever the element can represent the exact solution, and the frequency converges from above as the theory predicts.

15.2 Internal consistency

A model can be verified without any external reference, by requiring it to satisfy properties that must hold for any correct solution. Six checks are available at no cost:

15.3 Comparison with an independent program

The third level, and the most convincing, is a comparison with a second program on the same structure. The example published with the 3D solver is a lattice mast of a real project — 120 nodes, 340 bars, 12 sections of circular tubes and equal angles, fixed at four base nodes, with self weight, a permanent nodal load, a wind case and the corresponding combinations — which was modelled independently in Autodesk Robot Structural Analysis and rebuilt here from the printed report of that analysis. The comparison covers every reaction and every displacement of the five cases:

QuantityRobotFEA Solver 3DDeviation
Σ vertical reactions, self weight138.36 kN138.34 kN0.02 %
Σ vertical reactions, ULS combination197.56 kN197.56 kN0.00 %
Peak horizontal displacement, ULS537.5 mm537.8 mm0.06 %
Largest reaction component−1561.1 kN−1559.9 kN0.08 %
Largest axial force of the 340 bars−1297.7 kN−1292.2 kN0.37 % of the peak

Over the twenty reaction records and the six hundred displacement records the forces agree to 0.07 % and the translations to 0.10 % of their peak; the bending moments and the rotations, which are small quantities in this structure, to about 1.7 % of their own peak. The residual difference is consistent with the formulation difference of section 14.2: the commercial program uses elements that include the shear deformation, this one does not, and the sign of the difference — the displacement computed here is the smaller — is the one that the theory requires.

15.4 A verification protocol

The three levels are complementary, and a calculation that has passed all three can be used. The order in which they are applied matters less than the fact that each of them is applied:

  1. Compare one member of the model with a hand calculation — a cantilever, a simply supported beam, a two-force member — and check the deflection and one internal force.
  2. Confirm that the equilibrium residual is at the level of the machine precision, and read the diagnostics panel for warnings about releases, mechanisms or unconnected nodes.
  3. Inspect the deformed shape: it must move in the direction of the load, and the supports must not move.
  4. Compare the total reactions with the total applied load, component by component.
  5. Repeat the first two steps on a refined mesh, and confirm that the answer changes in the direction and by the amount that chapter 14 predicts.
  6. If the structure is important, compare the whole model with an independent program, and explain any difference before accepting the numbers.

The last step is the only one that can reveal a modelling error common to both the calculation and the hand check — a support where the real structure does not have one, an action missing from the load cases. It is also the step that takes the longest, which is why it is worth doing once on a class of structure rather than on every job.

16. Summary

The formulation reduces to a sequence of eight operations, each corresponding to a chapter of this article:

  1. Replace the differential equation of the member by the virtual work statement of chapter 3, which requires only the second derivative of the field and produces the natural boundary conditions as a by-product.
  2. Interpolate the field with the shape functions of chapter 4 — linear for the axial and torsional problems, cubic Hermite for bending — which reproduce the nodal values, the rigid-body motions and the cubic polynomial exactly.
  3. Integrate once per element to obtain the stiffness matrix of chapter 5 and the consistent load vector of chapter 6, both of which depend only on E, A, I, J and L.
  4. Rotate each element matrix to the global axes with the transformation of chapter 7, and add it into the global matrix at the positions given by the connectivity, as in chapter 8.
  5. Impose the essential boundary conditions of chapter 9, and verify that no rigid-body mode remains.
  6. Factorise the matrix and solve for the nodal displacements as in chapter 10, at a cost proportional to the cube of the number of degrees of freedom.
  7. Recover the end forces, the internal diagrams and the reactions of chapter 11, and confirm that the six global equilibrium residuals vanish.
  8. Compare the result with the closed-form cases, with the internal consistency checks and, where it matters, with an independent program, as in chapter 15.

The element derived here is the simplest that can represent a frame, and its limitations are known and bounded: it neglects the shear deformation, it treats the joints as points, it is written on the undeformed geometry, and it assumes that the loads act on the member axis. Within those limits it solves the model exactly, and the comparison of section 15.3 shows that the distance between this implementation and a commercial program based on the same physics is a few tenths of a per cent. The remaining uncertainty is the distance between the model and the structure, and that is a matter of engineering judgement rather than of numerical accuracy.

Where to go next

For the wider theory the standard references remain: the textbook of Cook, Malkus and Plesha for the finite element method as a whole, the treatise of Zienkiewicz and Taylor for its mathematical foundations, the monograph of Bathe for the eigenvalue problems and the subspace iteration, and the classical texts of Livesley and of McGuire and Gallagher for the matrix analysis of frames.