Question 9 of 9: Deriving the stiffness matrix and load vector
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
Paper format. National Exams, May 2017 — 16-Civ-B1 Advanced Structural Analysis. Three hours, CLOSED BOOK (an approved Sharp or Casio calculator is permitted). Answer BOTH Questions 1 and 2, ONLY TWO of Questions 3, 4 or 5, and ONLY TWO of Questions 6, 7, 8 or 9; six questions constitute a complete paper for 100 marks. Marks are printed in the left margin. All nine questions are worked below, because the complete set is the study resource.
Reference texts. R. C. Hibbeler, Structural Analysis, 10th ed. (Pearson) — Ch. 8 influence lines, Ch. 9–10 the force (flexibility) method, Ch. 11 slope-deflection, Ch. 14–16 the stiffness method; A. Kassimali, Structural Analysis, 6th ed. (Cengage) — Ch. 7 deflections by work and energy (Castigliano), Ch. 13 slope-deflection, Ch. 16 sidesway frames; W. McGuire, R. H. Gallagher & R. D. Ziemian, Matrix Structural Analysis, 2nd ed., for the element stiffness matrix used as the independent check. Once the analysis is complete, member design follows CSA A23.3:19, CSA S16:19 and CSA O86:19, with load combinations from NBCC 2020.
Check: sign convention used throughout. End moments $M_{ij}$ are counter-clockwise positive on the member end — the convention that matches the six-degree-of-freedom planar frame element stiffness matrix, so every answer below can be checked against a direct-stiffness solution. Chord rotation is $\psi_{ij}=\left[(\mathbf{D}_{j}-\mathbf{D}_{i})\cdot\mathbf{e}_{2}\right]/L$, where $\mathbf{e}_{2}$ is the member axis turned $+90^\circ$. The fixed-end moment of a downward uniform load is $\mathrm{FEM}_{ij}=+wL^{2}/12$ at the $i$ end and $-wL^{2}/12$ at the $j$ end; for a member released at its far end it becomes $+wL^{2}/8$. Ordinary sagging moments follow as $M_{\text{sag}}(i)=-M_{ij}$ and $M_{\text{sag}}(j)=+M_{ji}$, and all diagrams are plotted sagging positive. Member shear at the $i$ end is $V_{i}=(M_{ij}+M_{ji})/L$ plus the equivalent nodal shear of any span load. Mixing this with Hibbeler's clockwise-positive convention produces clean-looking integers that are wrong, so the convention is stated once and used everywhere.
Question 9: Deriving the stiffness matrix and load vector (24 marks)
Given. Column 1–2 of 6 m built in at 1; beam 2–3 of 12 m carrying $w=12$ kN/m; column 3–4 of 3 m pinned at 4; all members the same $EI$ and axially rigid. Unknowns $\delta$ (translation of joint 3, positive right), $\theta_{2}$ and $\theta_{3}$ (counter-clockwise positive).
Find. The three equilibrium equations and the terms of $[K]$ and $\{P\}$ — the equations are not to be solved.
Both columns are vertical and both joints sit on the same horizontal beam, so the beam chord rotation is exactly zero and the two columns share one sway.
Approach. Express the chord rotations in terms of $\delta$, write the three member moment equations, then assemble the two joint-moment equations and one storey-shear equation and read off the coefficients.
Establish the kinematics. Axial rigidity of the columns fixes $v_{2}=v_{3}=0$, and axial rigidity of the beam gives $u_{2}=u_{3}=\delta$. Hence$$\psi_{12}=-\frac{\delta}{6},\qquad \psi_{23}=0,\qquad \psi_{34}=-\frac{\delta}{3}.$$The beam chord rotation is exactly zero because both of its ends translate horizontally by the same amount and neither moves vertically — a point worth stating explicitly, since it removes $\delta$ from the beam equations altogether.
Write the member equations. The far end of column 3–4 is a pin, so that member takes the modified form:$$M_{12}=\frac{EI}{3}\!\left(\theta_{2}+\frac{\delta}{2}\right),\qquad M_{21}=\frac{EI}{3}\!\left(2\theta_{2}+\frac{\delta}{2}\right),$$$$M_{23}=\frac{EI}{6}\!\left(2\theta_{2}+\theta_{3}\right)+\frac{wL^{2}}{12},\qquad M_{32}=\frac{EI}{6}\!\left(2\theta_{3}+\theta_{2}\right)-\frac{wL^{2}}{12},$$$$M_{34}=EI\!\left(\theta_{3}+\frac{\delta}{3}\right),\qquad M_{43}=0,$$with $wL^{2}/12=12(12)^{2}/12=144$ kN·m.
Part (b): moment equilibrium at joints 2 and 3. Summing member end moments at each joint against the applied joint couple (zero here) gives $M_{21}+M_{23}=0$ and $M_{32}+M_{34}=0$, that is$$EI\left[\tfrac{1}{6}\delta+\theta_{2}+\tfrac{1}{6}\theta_{3}\right]=-144,$$$$EI\left[\tfrac{1}{3}\delta+\tfrac{1}{6}\theta_{2}+\tfrac{4}{3}\theta_{3}\right]=+144 .$$The fixed-end moments appear on the right-hand side with opposite signs, which is the algebraic statement that the uniform load tries to rotate the two joints in opposite senses.
Part (a): the translation equation. There is no applied horizontal load, so horizontal equilibrium of the whole frame requires the two column shears to cancel. Since the equivalent nodal loads of the uniform load are vertical, they do no work in the sway pattern, and virtual work on that pattern gives$$\frac{M_{12}+M_{21}}{6}+\frac{M_{34}+M_{43}}{3}=0 .$$Substituting the member equations,$$EI\left[\tfrac{1}{6}\delta+\tfrac{1}{6}\theta_{2}+\tfrac{1}{3}\theta_{3}\right]=0 .$$This is the equation asked for in part (a).
Part (c): assemble and check symmetry. Collecting the three equations in the order $(\delta,\theta_{2},\theta_{3})$,$$EI\begin{bmatrix}\tfrac{1}{6}&\tfrac{1}{6}&\tfrac{1}{3}\\[2pt]\tfrac{1}{6}&1&\tfrac{1}{6}\\[2pt]\tfrac{1}{3}&\tfrac{1}{6}&\tfrac{4}{3}\end{bmatrix}\begin{Bmatrix}\delta\\ \theta_{2}\\ \theta_{3}\end{Bmatrix}=\begin{Bmatrix}0\\ -144\\ +144\end{Bmatrix}.$$Equivalently, multiplying through by 6,$$\boxed{\;\frac{EI}{6}\begin{bmatrix}1&1&2\\ 1&6&1\\ 2&1&8\end{bmatrix}\begin{Bmatrix}\delta\\ \theta_{2}\\ \theta_{3}\end{Bmatrix}=\begin{Bmatrix}0\\ -144\\ +144\end{Bmatrix}\;}$$The matrix is symmetric, which is the only cheap check available on a hand assembly: if it is not, the translation row has been scaled differently from the moment rows. Term by term the coefficients are $K_{11}=12/h_{1}^{3}+3/h_{2}^{3}$, $K_{12}=6/h_{1}^{2}$, $K_{13}=3/h_{2}^{2}$, $K_{22}=4/h_{1}+4/L$, $K_{23}=2/L$ and $K_{33}=4/L+3/h_{2}$, each recognisable as one of the standard $12EI/L^{3}$, $6EI/L^{2}$, $4EI/L$, $2EI/L$ or $3EI/L$ stiffnesses.
The question stops here by instruction, but it is worth noting what the matrix says. The off-diagonal terms $K_{12}$ and $K_{13}$ are non-zero, so sway and rotation are coupled: unlike a symmetric portal under symmetric load, this frame cannot be solved rotation-first. The larger $K_{13}$ reflects the short 3 m column, which is by far the stiffer of the two against sway.
Question 9 — terms of $[K]$ and $\{P\}$ (common factor $EI$)