Worked example · Truss

King-post truss with a point load

A five-bar king-post truss with 3-4-5 geometry, so every force comes out as a round number. It is statically determinate: the method of joints gives the bar forces, and the unit-load method gives the deflection.

Given
Span and rise
8 m span, 3 m rise (rafters 5 m long)
Load
P = 60 kN, downward, at the middle of the bottom chord
Supports
Pinned at one end, roller at the other
Bars
Pinned–pinned truss bars, A = 20 cm²
Material
Steel, E = 210 GPa
Axial stiffness
EA = 420 000 kN
Axial force diagram of a king-post truss under a 60 kN load: 40 kN tension in the bottom chord, 50 kN compression in the rafters and 60 kN tension in the king post.
Axial force diagram and reactions, exported from OpenFrame as SVG.

Hand calculation

  1. 01

    By symmetry each support carries half the load.

    R = P / 2 = 30 kN

  2. 02

    At the loaded joint the king post is the only bar with a vertical component.

    N = P = 60 kN (tension)

  3. 03

    Vertical equilibrium at a support gives the rafter force, with sin θ = 3/5.

    N = −R / sin θ = −30 / 0.6 = −50 kN = −5P / 6 (compression)

  4. 04

    Horizontal equilibrium at the same joint gives the bottom chord force, with cos θ = 4/5.

    N = 50 · 0.8 = 40 kN = 2P / 3 (tension)

  5. 05

    The deflection under the load follows from the unit-load method.

    δ = Σ N²L / (EA · P) = (2 · 50² · 5 + 2 · 40² · 4 + 60² · 3) / (420 000 · 60) = 1.929 mm

Hand calculation against OpenFrame

QuantityFormulaBy handOpenFrameUnitDifference
Support reactionR = P / 230.00030.000kNexact
Bottom chord (tension)N = 2P / 340.00040.000kNexact
Rafter (compression)N = −5P / 6-50.000-50.000kNexact
King post (tension)N = P60.00060.000kNexact
Deflection under the loadδ = Σ N²L / (EA·P)1.9291.929mmexact

Computed with openframe-cli 0.1.0. “exact” means a relative difference below 1e-9.

All bar forces and the deflection match the hand calculation. For longer trusses the Geometry menu can generate a parametric truss instead of drawing every bar.

Build it in the app

  1. 01Press N and place the four nodes: two supports 8 m apart, the middle of the bottom chord and the apex 3 m above it.
  2. 02Press M and draw the five bars, then set their type to truss bar and assign the section and steel.
  3. 03Press S and add a pinned support at one end and a roller at the other.
  4. 04Press L and apply a nodal force of 60 kN downward at the middle of the bottom chord.
  5. 05Press F5 to solve and switch on the N diagram: tension and compression are drawn on opposite sides.

Or run the project file

The project file opens in the desktop app and runs in the command-line tool. The browser version does not open project files, so build the model there with the steps on the left.

king-post-truss.json
$ openframe-cli analyze king-post-truss.json

Check it yourself

The app opens in a browser tab with a demo frame already loaded. Nothing to install, no account, and your model stays on your computer.

Launch the app

Scope notes

  1. 1.Linear elastic material only: no yielding, plasticity or cracking.
  2. 2.Not a design-code check: results are forces, moments, displacements, reactions and buckling factors, not Eurocode or AISC utilization ratios.
  3. 3.Second-order analysis is valid for moderate rotations; imperfections are entered by the user.
  4. 4.Elastic buckling gives the modes of the perfect structure in the plane of the model.