About FEA – How the Finite Element Method Works

Two solvers, one method

The two FEA modules on this site are applications of the same numerical method, applied to two different idealisations of a structure. FEA Solver 2D analyses plane frames and trusses: every node has three degrees of freedom and every member carries an axial force, a shear force and a bending moment. FEA Solver 3D analyses space frames: six degrees of freedom per node, torsion and bending about both principal axes. Both solve the same linear elastic, static problem — they only differ in what the element is allowed to do.

ModuleModelResultsGuide
FEA Solver 2Dplane frame, 3 DOF per nodeN, V, M and modes (ω, f, T)user guide
FEA Solver 3Dspace frame, 6 DOF per nodeN, Vy, Vz, Mx, My, Mz and modes (ω, f, T)user guide

What the finite element method is

A real structure has an infinite number of material points, so its equilibrium cannot be written as a finite set of equations. The finite element method replaces the structure by a discretisation: a limited number of nodes, connected by elements. Instead of solving for a continuous displacement field, we solve for a limited number of nodal values — the unknowns of the problem.

For a linear elastic structure the result is a system of linear equations, one per degree of freedom:

K·u=F

where K is the global stiffness matrix (how stiff the structure is in every degree of freedom), u is the vector of nodal displacements (the unknowns) and F is the vector of applied loads, converted into equivalent nodal forces.

The method is applied in the same sequence in every program, including the two on this site:

  1. Idealisation — decide which parts of the structure carry the load and how they are supported (a beam, a frame, a truss, bracing only in tension).
  2. Discretisation — place nodes at member ends, supports and load points, and connect them with elements.
  3. Element stiffness — for each element, build the local matrix that relates its end displacements to its end forces.
  4. Assembly — add every element matrix into the global matrix, in the position given by the node numbers.
  5. Boundary conditions — remove the degrees of freedom that the supports restrain.
  6. Solution — solve the linear system for the unknown nodal displacements.
  7. Post-processing — recover the reactions, the member end forces and, from them, the internal force diagrams and stresses.

Each of the seven steps has a mathematical content that this page states only in outline. The derivation of the matrices, the integrals behind them and the numerical consequences are set out in the theory note The Finite Element Method for Frames, which follows the same seven steps and gives the closed-form checks for each of them.

The frame element used here

Both modules use a two-node frame element based on Euler–Bernoulli beam theory: plane sections remain plane and perpendicular to the member axis, and shear deformation is neglected. That is the standard choice for slender steel members, where the length is at least ten times the depth.

The element is described in its own local axes: x along the member, y perpendicular (the "up" direction of the member) and z completing the right-handed triad. In 3D the orientation of y and z is fixed by a roll angle, which is how an I-section is turned so that its strong axis lies in the plane of bending.

QuantitySymbolWhere it comes from
Axial stiffnessEA/Larea A of the section, modulus E of the material
Bending stiffness12EI/L³ and 4EI/L, 2EI/Lsecond moment of area I (Iz or Iy)
Torsional stiffnessGJ/Ltorsion constant J, shear modulus G

The stiffness terms above are the familiar ones from structural analysis; the element matrix simply collects them in a form the computer can assemble. For the 3D element the same bending terms appear twice — once for bending about the local z axis, once about the local y axis — and a torsional term couples the two ends about the member axis:

kG=TTkLT

The local matrix kL is rotated into the global axes by the transformation matrix T, which contains the direction cosines of the member. That is why a model can be drawn in any orientation and still be solved in one global coordinate system.

Loads become equivalent nodal forces

A load applied between two nodes — a uniformly distributed load on a beam, a point load, a moment — cannot be put directly into the vector F, because F only holds values at nodes. The program converts the load into consistent equivalent nodal forces, computed with the same shape functions that describe the member deflection. This is not an approximation of convenience: the resulting nodal forces produce the same work as the distributed load, so the nodal displacements are exact for the element (within the assumptions of the theory). The internal force diagrams are then recovered from the element end forces plus the actual load along the member, which is why the diagrams in these tools are continuous curves and not straight lines between nodes.

A common mistake is to model a distributed load by splitting it into a few nodal forces. The reactions look acceptable but the bending diagram between the nodes is wrong. Enter the load as a member load and let the program build the consistent vector.

End releases

A member end can be released — a hinge in a beam, a pin in a bracing member, a torsion release in a 3D model. Both modules treat releases the rigorous way, by static condensation of the released rotation: the rotation becomes an internal degree of freedom of the element and is eliminated from the global system. The released end moment is then exactly zero, while every other member framing into the same node keeps its full stiffness. Adding a fictitious spring or a very small stiffness instead would pollute the results of the surrounding members.

What FEA Solver 2D computes

The 2D module is intended for the frame that carries the load in one plane: portal frames, roof trusses, bracing in a vertical plane, continuous beams on several supports. Every node has three degrees of freedom — translation in x, translation in y and rotation about z — and every member delivers an axial force N, a shear force V and a bending moment M.

The guide (FEA Solver 2D – user guide) lists the sign conventions, the report sections and two hand-checked examples.

What FEA Solver 3D computes

The 3D module is the same method applied to a space frame: six degrees of freedom per node and twelve per member, so a member can also carry torsion and bend in two planes at once. It is the right tool when the structure is not planar — a two-way frame, a tower, a canopy on four columns, a platform — or when a nominally planar frame has an eccentric or out-of-plane action that must be followed through the members.

The guide (FEA Solver 3D – user guide) documents the local axes and signs, the releases, the load directions, the torsion constant and three closed-form checks.

The theory in five ideas

The five statements below are the whole of the method in outline. Each of them is developed in full, with the matrices written out, in the theory note The Finite Element Method for Frames.

1. Why a matrix

Stiffness is the force required to produce a unit displacement, and for a structure with many degrees of freedom that relation is a matrix: the entry in row i and column j is the force at degree of freedom i caused by a unit displacement at degree of freedom j. Every structural problem, however complex, is then the single equation K·u = F, and the whole of the finite element method is a systematic way of filling K and F from the members of the model. (chapter 3)

2. What the element matrix contains

A frame member is described by four numbers that recur in every stiffness matrix ever printed: EA/L for the axial stiffness, 12EI/L³ for the transverse stiffness of a member held against rotation at both ends, 4EI/L for the moment needed to rotate one end, and 2EI/L for the moment that the same rotation induces at the other end. Every other entry of the matrix is one of these four, with the sign and position that equilibrium dictates. Recognizing them is what allows a stiffness matrix to be read rather than trusted. (chapter 5)

Coefficients in the bending blockPhysical meaning
12EI/L³force at one end for a unit translation of that end
6EI/L²force produced by a unit rotation (and the moment produced by a unit translation)
4EI/Lmoment to rotate one end with the other held fixed
2EI/Lmoment carried to the far end by that rotation

3. Why the loads become nodal forces

A load applied between two nodes cannot be put into a system of equations whose unknowns are nodal values, so it is converted: the shape functions weight the load and produce an equivalent set of nodal forces and moments. For a uniform load those are qL/2 at each end and qL²/12 at each end — the fixed-end forces of the member. The conversion is exact in the sense that the nodal displacements it produces are those of the real member, and it is the reason a beam with one element per span still gives the correct bending moments. (chapter 6)

4. Why the answer is only as good as the model

The program solves the model exactly; the error lies between the model and the structure. Three approximations are always present — the members are divided into elements and the field between the nodes is interpolated, the shear deformation is neglected, and the joints are treated as points of zero size with infinite rotational stiffness. A fourth appears when the axial force is large enough to change the stiffness of the member. Knowing the order of magnitude of each is what separates a number that can be used from a number that cannot. (chapter 14)

5. Why the eigenvalues matter

The same matrices answer the dynamic question: the structure vibrates in shapes φ that satisfy K·φ = ω²·M·φ, where M is the mass matrix assembled from the same shape functions as the stiffness. The smallest eigenvalue gives the fundamental period T = 2π/ω, the number at which a seismic spectrum is read and with which a machine or a footfall excitation is compared. The eigenvalue problem is solved by subspace iteration on the same factorised stiffness matrix used by the static analysis. (chapter 13)

Which one should I use?

SituationUseWhy
Frame or truss in one plane, loads in that plane2Dfewer degrees of freedom, simpler model, faster to check by hand
Two-way frame, tower, canopy, platform3Dout-of-plane action and torsion cannot be represented in 2D
Torsion of the member is significant (eccentric loads, curved members)3DMx exists only in the 3D element
Quick check of a single member2D (or the Beam solver)the element is the same, the model is smaller
Natural frequencies and periods neededeither one — the modal analysis is in both modulesmasses are entered the same way in both

A planar frame modelled in 3D with the out-of-plane degrees of freedom restrained gives exactly the same results as the 2D model — this is one of the automated checks of the 3D module.

Natural frequencies and mode shapes

Both solvers also answer the dynamic question behind every vibration problem: at which frequencies does the structure want to move? The static problem assembles a stiffness matrix K; the dynamic one assembles, in the same way, a mass matrix M, and the free, undamped motion satisfies an eigenvalue problem:

K·φ=ω2·M·φ

The eigenvector φ is a mode shape — the form the structure takes when it vibrates — and the eigenvalue gives its circular frequency ω. The two quantities engineers use follow directly: the natural frequency f = ω / 2π in Hz and the natural period T = 1 / f = 2π / ω in seconds.

Where the mass comes from

The mass of the model is not the same thing as the loads, and the two are entered separately:

This is the "special load" of a dynamic analysis: a mass with no direction and no load case. It is added to the self mass, and the sum is what the eigenproblem sees.

What is reported

ColumnMeaning
ω [rad/s]circular frequency of the mode
f [Hz]frequency, f = ω / 2π
T [s]natural period, T = 2π / ω
Γx, Γy, Γz [kg]modal participation factor, φT·M·r
m* [%]effective modal mass of the mode, as a fraction of the total mass acting in that direction
Σm* [%]cumulative effective mass — when it reaches about 90 % in a direction, the set of modes is sufficient for a seismic check

The mode shapes are drawn on the canvas, scaled to a visible amplitude, and can be animated: the structure oscillates about its equilibrium position in the form of the selected mode.

A check you can reproduce

Take a steel cantilever 6.00 m long, A = 20 cm², I = 1000 cm⁴, E = 210 GPa, ρ = 7850 kg/m³, fixed at one end and split into eight members. The first bending frequency of a cantilever is known in closed form:

f1=3.5162π·EIρAL4

With these numbers EI = 2.10·106 N·m², ρA = 15.7 kg/m and L4 = 1296 m4, so f1 = 5.685 Hz and T1 = 0.1759 s. Both solvers return f1 = 5.68498 Hz — a relative error of 2·10-6. Simply supported over the same span the same beam gives f1 = (π/2)·√(EI/ρAL4) = 15.958 Hz (T1 = 0.0627 s). These are the automated checks of the modal solver.

What the period tells you in practice

Typical values from the models shipped with the two modules, so that the orders of magnitude are familiar:

ModelT1f1First mode
2D demo portal frame, 6.00 × 4.00 m, S3550.2446 s4.088 Hzsway in the plane
3D demo space frame, 6.00 × 6.00 m, h = 4.00 m0.4109 s2.433 Hzhorizontal translation (a degenerate pair, X and Y)
3D tower example0.1717 s5.82 Hzsway of the shaft

Method and limits

The natural period is the number that decides whether a structure is sensitive: it tells you where the resonant frequencies of the excitation are (machines, footfall, wind) and it is the first input of a seismic analysis, where the spectrum is read at T1.

A typical workflow

  1. Section properties. Take A, Iy, Iz (and J for 3D) from the profile tables on this site, or compute them with the section properties calculator if the section is not a standard one.
  2. Geometry and material. Build the nodes and members, assign the section and the steel grade. The two solvers keep everything in SI units internally and display kN, m, kNm and N/mm².
  3. Supports. Restrain at least what the real structure restrains — and nothing more. A support that does not exist in reality hides a mechanism and makes the whole model look stiffer than it is.
  4. Loads and cases. Put permanent, variable and wind actions in separate load cases, then combine them with the factors you need (for example 1.35·G + 1.5·Q).
  5. Solve and read. The solver returns displacements, reactions and the member diagrams. The Diagnostics panel reports the equilibrium residual and any warning about releases or mechanisms.
  6. Check, then design. Compare one member by hand, then take the internal forces into the code checks — for steel members the combined stress verification tool does the Eurocode 3 part with the forces read here.

Reading the results

SymbolMeaningSign convention
Naxial forcetension positive
Vy, Vzshear forces on the local y and z axespositive along the local axis
Mxtorsional moment about the member axisright-hand rule about local x
My, Mzbending moments in the local x-z and x-y planessagging positive in the respective plane

The reactions follow the global axes: three forces and three moments per supported node in 3D. Displacements are reported per node and per degree of freedom, so a support that was meant to be fixed but is moving is visible immediately.

Checks before you trust a model

How the solvers were checked against commercial software

A lattice mast from a real project — 120 nodes, 340 bars, 12 sections (circular tubes and equal angles), fixed at four base nodes, with self weight, a permanent nodal load and a wind case plus the ULS/SLS combinations — was modelled in Autodesk Robot Structural Analysis and rebuilt here from the printed report with the same geometry, sections, supports and loads (the procedure is described in the FEA Solver 3D user guide). The two solutions agree:

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 in 340 bars−1297.7 kN−1292.2 kN0.37 % of the peak

Across all 20 reaction records and 600 displacement records the forces agree to 0.07 % and the translations to 0.10 % of their peak value; bending moments and rotations to about 1.7 % of theirs. What is left is the difference between the two finite elements: Robot includes shear deformation, these solvers use Euler–Bernoulli beams and are therefore slightly stiffer. That is the level of agreement to expect — and the reason the numbers from these pages can be used with confidence for the elastic analysis they are meant for.

What these solvers do not do

Where FEA is used in practice

The method is used whenever the internal forces cannot be found from simple statics alone — that is, for anything statically indeterminate, and for anything where the stiffness of the members decides how the load is shared. Typical applications of the frame element described here:

In all of these the finite element analysis answers one question — what are the internal forces and displacements? — and the code checks answer the next one: is the member strong enough for them.

Going further