CIV-321 · Lesson 6 of 12 · 23 min

Slope-deflection for frames with sway

In a continuous beam the joints rotate but do not translate. In a frame they may also move sideways. A frame braced by walls or diagonal bracing is prevented from swaying, and slope-deflection proceeds exactly as for beams, with one rotation unknown per rigid joint. An unbraced frame, which relies on the bending stiffness of its beams and columns to resist lateral load, sways, and the sway adds new unknowns and new equations. This lesson analyses the garage end frames, which have moment-resisting connections and fixed bases, under wind and roof load.

When does a frame sway?

A frame sways whenever its joints can translate without stretching any member. Treating members as inextensible (lesson 3), a single-bay portal frame has one independent sway: both corners move sideways by the same amount \(\Delta\) because the beam does not change length. A frame with several stories has one sway per story, and a frame with sloping members (a gable frame) has additional, coupled sways. To count the independent sways, replace every rigid joint and fixed support with a pin and count the degrees of freedom of the resulting linkage: each is an independent sway.

Sway occurs under lateral load, of course, but also under gravity load whenever the frame or its loading is unsymmetric. An unsymmetric roof load, a frame with columns of different heights or stiffness, or a single heavy load placed eccentrically all produce sideways movement. A braced frame has its sways prevented by the bracing; the bracing then carries the force that would otherwise cause sway.

Equations for a swaying frame

A single-bay portal frame A, B, C, D with fixed bases and a horizontal load P at roof level; the deflected shape shows both corners moved sideways by Delta, the columns curved in double curvature and the chord of each column rotated by psi equal to Delta over h; free bodies of the two columns show the end moments and the column shears that together balance P.
A sway \(\Delta\) rotates both column chords by \(\psi = \Delta/h\). The extra equation states that the column shears balance the lateral load.

The sway enters the slope-deflection equations of the columns through the chord rotation \(\psi = \Delta/h\), clockwise positive. The beam's chord does not rotate, because both its ends move sideways by the same amount. With one more unknown we need one more equation, and it comes from horizontal equilibrium of the whole story: the shears at the tops of the columns must balance the lateral load applied above the column bases.

For a column with no load along its height, the shear follows from a free body of the column: \(V = -(M_{\text{top}} + M_{\text{bottom}})/h\), with the moments clockwise positive and V positive acting to the left at the top. The story shear equation for a single-bay portal with lateral load P to the right at roof level is

\[\frac{M_{AB} + M_{BA}}{h} + \frac{M_{CD} + M_{DC}}{h} + P = 0\]

If a column carries a lateral load along its height (wind on the wall girts, for example), its free body includes that load, and the shear at its top changes accordingly. If the columns have different heights, each has its own \(\psi = \Delta/h_i\) and its own shear term; the common unknown is \(\Delta\).

The garage end frame under wind

Worked problem

Fixed-base portal frame under lateral load

A garage end frame has fixed bases A and D, columns 20 ft high and a beam of 60 ft span with twice the second moment of area of the columns. A factored wind load of 6.75 kips acts to the right at roof level. Find the end moments and the sway if the columns have \(EI = 100\,000\ \text{kip·ft}^2\).

Show solution
  1. Unknowns: \(\theta_B\), \(\theta_C\) and \(\psi\). There are no span loads, so all fixed-end moments are zero.
  2. Member stiffness factors \(2EI/L\), in units of \(EI_c\): columns \(2/20 = 0.10\); beam \(2(2)/60 = 0.0667\).
  3. \[M_{AB} = 0.10(\theta_B - 3\psi) \qquad M_{BA} = 0.10(2\theta_B - 3\psi) \qquad M_{BC} = 0.0667(2\theta_B + \theta_C)\]
  4. and similarly for \(M_{CB}\), \(M_{CD}\) and \(M_{DC}\).
  5. The frame and load are antisymmetric in the sense that \(\theta_B = \theta_C = \theta\) (both corners rotate clockwise by the same amount). Joint B equilibrium, \(M_{BA} + M_{BC} = 0\), and the story shear equation then give two equations in \(\theta\) and \(\psi\):
  6. \[0.40\theta - 0.30\psi = 0 \qquad \frac{2\big(0.10(3\theta - 6\psi)\big)}{20} + 6.75 = 0\]
  7. Solving: \(EI_c\theta = 135.0\) and \(EI_c\psi = 180.0\ \text{kip·ft}^2\).
  8. \[M_{AB} = M_{DC} = -40.5 \qquad M_{BA} = M_{CD} = -27.0 \qquad M_{BC} = M_{CB} = +27.0\ \text{kip·ft}\]
  9. Sway: \(\Delta = \psi h = 180.0(20)/100\,000 = 0.036\) ft, or 0.43 in.

Answer: Each column carries half the wind, 3.375 kips of shear, with 40.5 kip·ft at its base and 27.0 kip·ft at its top; the beam has 27.0 kip·ft at each end, of opposite sense, so it bends in double curvature with a point of contraflexure at midspan. The inflection points in the columns are at \(40.5/3.375 = 12\) ft above the bases, not at mid-height, because the beam is not rigid enough to fix the column tops. The sway of 0.43 in. is about \(h/560\).

The location of the column inflection points is worth noticing. With an infinitely stiff beam the column tops could not rotate, and the inflection points would sit exactly at mid-height. With a flexible beam they move up toward the beam. Lesson 8 uses this observation to build the portal method, an approximate analysis that assumes inflection points at mid-height of columns and midspan of beams.

Pinned bases: the effect of base fixity

If the same frame had pinned bases, the modified slope-deflection equation would apply to each column, the base moments would be zero, and each column would have to carry its 3.375 kip shear by bending over its full height: the corner moments become \(3.375(20) = 67.5\ \text{kip·ft}\). The sway rises to \(EI_c\psi = 787.5\), a deflection of 0.158 ft or 1.89 in., more than four times the fixed-base value. Base fixity therefore buys a great deal of lateral stiffness, which is why unbraced frames in drift-sensitive buildings often have fixed bases, at the cost of larger footings that can resist moment.

Gravity load and superposition

Under the uniform roof load, a symmetric frame does not sway: \(\theta_C = -\theta_B\) and \(\psi = 0\). The analysis is then a no-sway problem with two rotation unknowns, which symmetry reduces to one.

Worked problem

Combining roof load and wind

The same fixed-base frame carries a factored roof load of 0.82 kip/ft on the beam together with the 6.75 kip wind. Find the corner moments.

Show solution
  1. Roof load alone: \(\text{FEM}_{BC} = -0.82(60)^2/12 = -246.0\) kip·ft. With \(\theta_C = -\theta_B\) and \(\psi = 0\), joint B gives \(0.20\theta_B + 0.0667\theta_B - 246.0 = 0\), so \(EI_c\theta_B = 922.5\).
  2. \[M_{BA} = 0.10(2)(922.5) = 184.5 \qquad M_{AB} = 92.25\ \text{kip·ft}\]
  3. Superpose the wind results: corner B, \(184.5 - 27.0 = 157.5\); corner C, \(184.5 + 27.0 = 211.5\ \text{kip·ft}\). Bases: A, \(92.25 - 40.5 = 51.75\); D, \(92.25 + 40.5 = 132.75\ \text{kip·ft}\) (magnitudes).

Answer: The leeward corner C governs at 211.5 kip·ft and the leeward base D at 132.75 kip·ft. The midspan moment of the beam under roof load is \(369.0 - 184.5 = 184.5\ \text{kip·ft}\), which the wind does not change because its beam moment is zero at midspan.

Superposition is valid because the analysis is linear. In design it is applied with the factors of each load combination: lesson 12 returns to this when the full model is set up. For tall or heavily loaded frames, the sway itself increases the moments (the P-delta effect), and superposition of separate first-order results is no longer exact. Both design standards require second-order effects to be considered for unbraced frames, usually by amplifying the first-order sway moments or by a second-order computer analysis.

Multi-story frames

For a frame of several stories, each story has its own sway \(\Delta_i\) and its own story shear equation: the sum of the column shears just below floor i equals the total lateral load above that level. The office wing, if built as an unbraced two-story, two-bay frame, would have six joint rotations and two sways, eight unknowns in all. That is about the practical limit for hand solution, and it is where moment distribution (lesson 7), approximate methods (lesson 8) and the matrix stiffness method (lessons 9 to 11) take over.

Solving it in code

Sofia's frame program writes the two joint equations and the story shear equation as residual functions, builds the coefficient matrix by evaluating them for unit values of each unknown (valid because they are linear), and solves by Gaussian elimination. Set fixed_bases to False to reproduce the pinned-base results, or change Ic_right to see how an unsymmetric frame sways even under roof load alone.

Portal frame with sway by slope-deflection
# Slope-deflection for a single-bay portal frame with sway (bases A and D, corners B and C)
# Unknowns: EI*theta_B, EI*theta_C and EI*psi (column chord rotation = sway / h). Clockwise positive.
h, L = 20.0, 60.0                  # column height and beam span (ft)
Ic_left, Ic_right, Ib = 1.0, 1.0, 2.0   # relative second moments of area
fixed_bases = True

def gauss(A, r):
    n = len(r); M = [row[:] + [r[i]] for i, row in enumerate(A)]
    for c in range(n):
        p = max(range(c, n), key=lambda k: abs(M[k][c])); M[c], M[p] = M[p], M[c]
        for k in range(c + 1, n):
            f = M[k][c] / M[c][c]
            for j in range(c, n + 1): M[k][j] -= f * M[c][j]
    x = [0.0] * n
    for k in range(n - 1, -1, -1):
        x[k] = (M[k][n] - sum(M[k][j] * x[j] for j in range(k + 1, n))) / M[k][k]
    return x

def end_moments(v, w, P):
    tB, tC, psi = v
    F = w * L ** 2 / 12
    kl, kr, kb = 2 * Ic_left / h, 2 * Ic_right / h, 2 * Ib / L
    if fixed_bases:
        MAB = kl * (tB - 3 * psi); MBA = kl * (2 * tB - 3 * psi)
        MDC = kr * (tC - 3 * psi); MCD = kr * (2 * tC - 3 * psi)
    else:                          # pinned bases: modified equation, base moments zero
        MAB = 0.0; MBA = 1.5 * kl * (tB - psi)
        MDC = 0.0; MCD = 1.5 * kr * (tC - psi)
    MBC = kb * (2 * tB + tC) - F; MCB = kb * (2 * tC + tB) + F
    return MAB, MBA, MBC, MCB, MCD, MDC

def residuals(v, w, P):            # joint B, joint C, and horizontal equilibrium (shear) of the columns
    MAB, MBA, MBC, MCB, MCD, MDC = end_moments(v, w, P)
    return [MBA + MBC, MCB + MCD, (MAB + MBA) / h + (MCD + MDC) / h + P]

def solve_frame(w, P):
    r0 = residuals([0.0, 0.0, 0.0], w, P)       # equations are linear: build them column by column
    A = [[residuals([1.0 if j == i else 0.0 for j in range(3)], w, P)[r] - r0[r] for i in range(3)] for r in range(3)]
    v = gauss(A, [-x for x in r0])
    return v, end_moments(v, w, P)

z = lambda v: round(v, 6) + 0.0
for name, w, P in (("wind 6.75 kips at roof", 0.0, 6.75), ("roof load 0.82 kip/ft", 0.82, 0.0), ("both together", 0.82, 6.75)):
    v, M = solve_frame(w, P)
    print(name)
    print("  EI theta_B = %.2f  EI theta_C = %.2f  EI psi = %.2f  (sway = psi x h)" % tuple(z(t) for t in v))
    print("  MAB %.2f  MBA %.2f  MBC %.2f  MCB %.2f  MCD %.2f  MDC %.2f kip*ft" % tuple(z(m) for m in M))
Output
wind 6.75 kips at roof
  EI theta_B = 135.00  EI theta_C = 135.00  EI psi = 180.00  (sway = psi x h)
  MAB -40.50  MBA -27.00  MBC 27.00  MCB 27.00  MCD -27.00  MDC -40.50 kip*ft
roof load 0.82 kip/ft
  EI theta_B = 922.50  EI theta_C = -922.50  EI psi = 0.00  (sway = psi x h)
  MAB 92.25  MBA 184.50  MBC -184.50  MCB 184.50  MCD -184.50  MDC -92.25 kip*ft
both together
  EI theta_B = 1057.50  EI theta_C = -787.50  EI psi = 180.00  (sway = psi x h)
  MAB 51.75  MBA 157.50  MBC -157.50  MCB 211.50  MCD -211.50  MDC -132.75 kip*ft

The third case is the sum of the first two, line by line: the program confirms superposition. Building equations by evaluating residuals for unit unknowns is a small version of a powerful idea: the columns of the coefficient matrix are the responses to unit displacements, which is the definition of the stiffness matrix in lesson 9.

Common mistakes

  • MistakeIncluding the sway in the beam's chord rotation.

    InsteadIn a single-bay portal both ends of the beam move sideways equally; only the columns have \(\psi \neq 0\).

  • MistakeWriting the story shear equation with the wrong sign for P.

    InsteadDraw free bodies of the columns, write shears from the end moments, and check that the shears oppose the load.

  • MistakeAssuming a symmetric frame under any gravity load does not sway.

    InsteadOnly symmetric load on a symmetric frame avoids sway; an unsymmetric load causes sway.

  • MistakeAssuming column inflection points at mid-height in every frame.

    InsteadThey are at mid-height only if the beam is very stiff; with flexible beams they move toward the beam.

Summary and key terms

  • Each independent sway adds one unknown \(\psi\) or \(\Delta\) and one story shear equation.
  • Column shear: \(V = -(M_{\text{top}} + M_{\text{bottom}})/h\) for an unloaded column.
  • Fixed bases reduce sway greatly: more than four times less for the garage frame.
  • Symmetric frames under symmetric load do not sway; superpose sway and no-sway cases for combined loads.
  • Second-order (P-delta) effects increase sway moments in unbraced frames and must be considered in design.
Sway
Lateral translation of the joints of a frame.
Braced frame
A frame whose sway is prevented by bracing or walls.
Unbraced frame
A frame that resists lateral load by bending of its members and rigid joints.
Story shear equation
Horizontal equilibrium of the columns of a story under the lateral load above.
Inflection point
A point of zero moment where the curvature of a member changes sign.
P-delta effect
The additional moment caused by gravity load acting through the sway displacement.
Drift
The lateral displacement of one level relative to the level below.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. How many independent sways does a three-story, two-bay rectangular frame have?

    Show answer

    Three, one per story.

  2. Why do the beam end moments of the wind case have the same clockwise sign at both ends?

    Show answer

    The beam is bent in double curvature by the rotating corners, so the moments on its two ends act in the same rotational sense.

  3. For the pinned-base garage frame under 6.75 kip wind, what is the moment at each corner?

    Show answer

    67.5 kip·ft, from 3.375 kip shear times 20 ft.

  4. Does an unsymmetric frame sway under symmetric gravity load?

    Show answer

    Generally yes; for example, a portal with one column stiffer than the other.

  5. What happens to the column inflection points as the beam becomes very stiff?

    Show answer

    They move toward mid-height.

  6. Why is superposition of wind and gravity results only approximate for tall unbraced frames?

    Show answer

    Second-order effects make the response nonlinear: gravity load acting through the sway adds moment.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz