Computational Engineering / How the stiffness method works
Assembly and boundary conditions
Assembly adds contributions at shared freedoms.
Lesson review: expert verification remains open
This lesson has received a full-context editorial review and a check of its technical explanations. Selected arithmetic has been checked separately. This is not independent engineering sign-off.
Checks needed for project use
- A computational engineering reviewer must check algorithms, convergence claims, statistical assumptions and numerical examples beyond the cases explicitly recorded.
- Specialist review of each solver formulation, force-recovery load terms and normalised convergence tolerances remains required.
- Independently check transformations, prescribed displacements, equilibrium, conditioning and recovered actions.
These are educational models and exercises. Check their assumptions before using the results. The full technical content and every diagram have not yet been independently verified.
Concrete and steel calculations retain their stated first-generation Eurocode teaching basis. Use the standards and amendments specified for your project; do not mix generations without an appropriate design basis.
Read the lesson register and outstanding review notesWhy this matters
At a shared node, connected elements act on the same displacement variable. Assembly adds their force contributions into the corresponding equation.
By the end of this lesson you should be able to
- Assemble a global matrix by scattering element contributions into their degrees of freedom
- Explain the rigid-body modes of an unrestrained, free-floating elastic assembly
- Apply restraints by striking out rows and columns and say what that asserts
- Recognise a mechanism as a failed factorisation rather than as a mysterious error
Shared-node stiffnesses add in one global equation
- Connectivity
- The two members share the same middle displacement variable.
- Matrix
- The displayed entries follow the spring order left, middle, right. Restraints are applied afterwards.
Add compatible element contributions
Give each active freedom a global number. Place an element’s stiffness entries into the rows and columns for its end freedoms, then add overlapping contributions. A shared node therefore receives stiffness from every connected element.
Supports provide prescribed displacements or other defined constraints. For zero prescribed displacement, solve the reduced free system while retaining the full equations for reaction recovery. For a non-zero settlement, move the coupling term Kfc uc to the free-system load side.
A disconnected or unsupported variable can make the system singular. Establish the physical cause before changing constraints. A reference constraint used to remove an unloaded rigid-body freedom must not conceal a missing physical load path.
Worked example
A prescribed displacement changes the right-hand side
Given
- Two axial springs in series: k1 = 20,000 kN/m and k2 = 10,000 kN/m
- Left support displacement u1 = 0; right support u3 = 0.003 m
- No applied load at the middle node
Find
Find the middle displacement and support force.
Try it
Boundary condition explorer
A three-bar triangle with a vertical load at the apex. Hold and release each support direction and watch what the factorisation does.
Node A restraints
Node B restraints
Remove this planar structure’s three rigid-body modes using suitably positioned and directed restraints. Count alone does not establish stability; the arrangement and any internal mechanisms matter too.
- Restrained directions
- 3
- Equations to solve
- 3
- Factorisation
- succeeded
- Failed at
- —
- Condition number
- 6.7
15.2 of 16 digits under a rough conditioning estimate
Exactly three restraints: statically determinate externally. The reactions follow from statics alone and do not depend on any member stiffness.
- Force in AC
- -100.0 kN
- Force in BC
- -100.0 kN
- Force in AB
- 80.0 kN
compression
compression
tension
Try these
- Release every restraint. The model is free to translate and rotate, and the factorisation reports an unresolved mechanism.
- Hold only Ax and Ay. Two restraints prevent translation and not rotation about A — the structure spins.
- Hold Ax, Ay and By. Three restraints, determinate, and the member forces are what statics gives.
- Add Bx as well. It still solves, the member forces change, and the change came from a restraint the real structure may not have.
What this shows: A mechanism is a failed factorisation with a name attached — the solver can tell you which direction has no stiffness, and that is more useful than adding restraint until it runs.
Check yourself
A first-order linear elastic plane-frame model is fully restrained at both column bases but fails on a zero pivot. Which of these could explain the failure?
Practice
A plane truss has 9 nodes. Each node has 2 translational degrees of freedom. Three degrees of freedom are restrained. How many equations does the reduced system contain?
Practice
Three bars meet at a node. Their axial stiffnesses along the x direction contribute 40 000, 25 000 and 15 000 kN/m to that node's horizontal diagonal entry. What is the diagonal entry, in kN/m?
Check yourself
Why does striking out a row and column represent a support correctly?
Check yourself
A model has too few restraints and the solver reports a zero pivot. What has it found?
Summary
- Assembly adds contributions at shared freedoms.
- Retain coupling from prescribed non-zero movement.
- Investigate singularity before adding restraints.
Sources & further information
NASA NPARC verification and validation tutorial (CFD background on general V&V methods).
Reviewed 19 October 2026: explanations, teaching calculations and figures checked within the recorded course audit. This is not independent engineering approval. Independently check transformations, prescribed displacements, equilibrium, conditioning and recovered actions.