Structural Dynamics / Multi-degree-of-freedom systems
Assembling the matrices
Build global matrices from physical connections and inspect their properties.
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 dynamics reviewer must confirm excitation models, damping, modal assumptions and any comfort or serviceability interpretation. Small displacement alone is not an acceptance criterion.
- Independent validation of the associated interactive implementation, input domain and project applicability remains required; this review checks lesson context and selected calculations, not design certification.
- Verify diaphragm constraints, rotary inertia, mass-lumping scheme and mesh convergence.
- Validate the actual mass formulation, rotational inertia, eccentric coordinates, diaphragm behaviour and mesh refinement. The axial-bar frequency bracket is benchmark-specific.
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
Each storey contributes forces to the floors at its two ends. Add these small contributions to build the global matrix, then use rigid-body and mass checks to inspect the assembly.
By the end of this lesson you should be able to
- Assemble the stiffness matrix of an n-storey shear building
- State the properties every correct M and K must have
- Explain why the matrix is tridiagonal and when it would not be
- Use rigid-body and symmetry checks on an assembled matrix
One storey contributes four stiffness entries
- Orange storey
- Its force depends on u₂ − u₁, so both floor equations contain both coordinates.
- Matrix contribution
- The displayed 2 × 2 block is k₂ times [[1, −1], [−1, 1]]. This assembly rule extends to connected finite-element coordinates.
What you should already know
- Two-degree-of-freedom matrices (Module 9)
- The shear-building idealisation (Module 2)
Assemble from relative deformation
A spring k joining coordinates i and j contributes +k to Kii and Kjj, and −k to Kij and Kji. A spring attached to fixed ground contributes only to its free-coordinate diagonal. For a simple shear building this produces a tridiagonal matrix because only adjacent floors are directly connected. Other structural connections change that pattern.
For the restrained conservative elastic model, positive strain energy requires a positive-definite stiffness matrix. An unrestrained body has legitimate zero-energy rigid movements; a model at an instability can have other zero or negative eigenvalues. Inspect the physical formulation before diagnosing the cause.
For uniform translation r, rᵀMr gives translational mass in that direction. Do not add rotational-inertia entries to a mass total. An ungrounded spring system satisfies Kr = 0. In a grounded shear building, Kr identifies the ground-connected spring. These checks supplement, rather than replace, a load-path review.
Try it
Assembling the matrices, entry by entry
Every number in these matrices has a physical meaning. Change a storey and watch which entries move.
Uncheck to taper mass and stiffness with height.
Reduces that storey's stiffness to 40%.
Mass matrix M(tonne)
| 400 | 0 | 0 |
| 0 | 400 | 0 |
| 0 | 0 | 400 |
Stiffness matrix K(MN/m)
| 1200 | -600 | 0 |
| -600 | 1200 | -600 |
| 0 | -600 | 600 |
Reading these matrices
- M is diagonal because the mass is lumped at the floors: accelerating floor 2 produces no inertia force on floor 3. That is an assumption, not a fact, and it is the shear-building assumption.
- K[i][i] is the sum of the storey stiffnesses above and below floor i, because moving that floor deforms both. Here K[0][0] = 600 + 600 = 1200 MN/m.
- K[i][i+1] is minus the storey stiffness between them. The minus sign says that pushing floor i towards floor i+1 pulls floor i+1 along.
- Every entry more than one floor away is zero, because floor 1 has no direct connection to floor 3 — only through floor 2. That is why the matrix is tridiagonal, and why a real frame with outriggers or bracing is not.
- K is symmetric. It must be: Betti's theorem guarantees it, and a stiffness matrix that is not symmetric has an assembly error in it.
| Mode | T (s) | f (Hz) | Γ | Effective mass | Cumulative |
|---|---|---|---|---|---|
| 1 | 0.365 | 2.74 | 1047.33 | 91.4% | 91.4% |
| 2 | 0.130 | 7.69 | 299.75 | 7.5% | 98.9% |
| 3 | 0.090 | 11.11 | -115.12 | 1.1% | 100.0% |
Total mass 1200 tonnes, all of it accounted for across 3 modes. The first mode alone carries 91% of it.
What this shows: The stiffness matrix entry K[i][j] is the force needed at i to hold every other floor still while floor j moves one unit. That definition, not a formula, is what makes the tridiagonal pattern obvious.
Worked example
Assembling and checking a four-storey building
Given
- Four storeys, masses 400, 400, 380 and 300 tonnes from the ground up
- Storey stiffnesses 600, 600, 520 and 440 MN/m
Find
The matrices, and every check that can be applied to them.
Assumptions
- Shear building: rigid floors, axially rigid columns, mass at floor level
Predict first
A shear-building stiffness matrix is assembled and the third interior row sums to −80 MN/m instead of zero. What has most likely happened?
Practice
A five-storey shear building has every storey stiffness equal to 400 MN/m. Using zero-based indexing, what is the third floor diagonal K[2][2], in MN/m?
Practice
For that five-storey building, what is the top floor diagonal K[4][4], in MN/m, using zero-based indexing?
Worked example
Assembling a three-storey stiffness matrix by hand
Given
- A three-storey shear building
- Each storey has a lateral stiffness of 30 MN/m
Find
The stiffness matrix, and what its pattern means
Summary
- Assemble each spring’s forces into both connected coordinates.
- Tridiagonal structure belongs to adjacent-storey coupling, not every building model.
- Check directional total mass, expected rigid movements and strain energy with the stated constraints.