Skip to content
Engineering Bible

Results appear as you type. Use the arrow keys to move through them and Enter to open one.

Popular

↑ ↓ moveEnter openEsc close

Beam and truss builder

Place supports and loads on a beam or pick a truss, and see shear, bending moment, deflection and member forces update as you drag.

What the simulator shows

In beam mode you build a straight beam from up to five supports and six loads. Drag them along the beam, or set them in the panel. The shear force, bending moment and deflected shape redraw as you move them. The beam can be simply supported, continuous over several supports, propped or fixed at both ends.

In truss mode you pick a Pratt, Howe or Warren truss and load it. Blue members are in tension and red members in compression. Line thickness follows the force, and the most loaded member has an amber halo. Hover over a member, or tab to it, to read its force.

Things to try

  1. Close the overhang. The default beam is 8 m long, on a pin at 0 m and a roller at 6 m. It carries 6 kN/m over its full length and 12 kN at the tip. It hogs by 36.0 kN·m over the roller, and the tip drops 20.6 mm. Drag the roller to 8 m. The hogging moment disappears, and the midspan moment rises to 48.0 kN·m, which is wL²/8. The stress passes the 235 MPa yield strength, and a warning appears.
  2. Add a middle support. With the roller at 8 m, press "Add a support". A roller lands at 4 m. The middle reaction is 30.0 kN, or 1.25 wL for each 4 m span. The beam now hogs by 12.0 kN·m over the middle support, which is wL²/8. The largest deflection falls from 82.6 mm to 2.15 mm.
  3. Balance the overhangs. Go back to the default, remove the 12 kN point load and place the supports at 1.65 m and 6.35 m. The sagging moment is 8.4 kN·m and the hogging moment 8.2 kN·m, about one sixth of the 48 kN·m with the supports at the ends.
  4. Make a mechanism. From the default, remove support 2. One pin cannot stop the beam turning, so the simulator reports a mechanism. Change support 1 to Fixed. The beam becomes an 8 m cantilever, with 288 kN·m at the wall and a stress over six times the yield strength.
  5. Fix both ends. Make both supports Fixed, at 0 m and 8 m, remove the distributed load and drag the 12 kN load to 4 m. The moment is 12.0 kN·m at each end and at midspan, PL/8, and the beam deflects 8.26 mm. Change both supports to a pin and a roller: the moment doubles to 24.0 kN·m and the deflection rises four times, to 33.0 mm.
  6. Compare truss types. Switch to the truss. The Pratt truss of 18 m span, 3 m deep with 6 panels and 60 kN carries 45 kN compression in its top chord and 40 kN tension in its bottom chord. Choose Howe: the diagonals turn to compression and the largest tension, 45 kN, moves to the bottom chord. Halve the depth to 1.5 m and the chord forces double, to 90 kN. Now return to the Pratt truss at 3 m deep and put the whole 60 kN at midspan as one point load. The top chord carries PL/4H = 90 kN, twice its force under the spread load.

The model behind it

Direct stiffness method. The beam is divided into Euler–Bernoulli beam elements. A node sits at both ends, at every support and at every load point. Each gap between them is split so no element is longer than L/24. Every node has two degrees of freedom: the deflection v (upward positive) and the rotation θ (anticlockwise positive). For an element of length l the stiffness matrix is:

        EI  | 12    6l   −12    6l  |
k_e  = ---- | 6l   4l²   −6l   2l²  |   acting on [v1, θ1, v2, θ2]
        l³  | −12  −6l    12   −6l  |
            | 6l   2l²   −6l   4l²  |

A uniform load w on an element becomes the consistent nodal loads −wl/2 and −wl²/12 at the first node, and −wl/2 and +wl²/12 at the second. Point loads and applied moments act directly on their nodes. The element matrices are assembled into K. The supported degrees of freedom are removed and K d = F is solved for the free ones. The reactions follow as R = K d − F at the supported degrees of freedom.

Supports. A pin or a roller stops vertical movement. A fixed support also stops rotation. The model has no axial forces, so a pin and a roller behave the same here. The beam is a mechanism when it has no vertical restraint at all, or only one with no fixed support; then no results are shown. The degree of static indeterminacy is the number of restraints less two, the equations of vertical and moment equilibrium.

Diagrams. Once the reactions are known, shear and moment come from equilibrium of the part of the beam to the left of each section:

V(x) = Σ upward forces left of x − w × (loaded length left of x)
M(x) = Σ F_i (x − x_i) − Σ C_i (anticlockwise couples left of x)   sagging positive

The bending moment diagram is drawn with sagging moment positive, above the axis, as in most textbooks. Many UK designers draw it on the tension side instead, which puts sagging below the beam. The shape is the same either way. Inside each element, deflection follows the cubic Hermite shape functions, plus the term w x² (l − x)² / 24EI for a uniform load. This is the exact Euler–Bernoulli deflection, not an approximation. The deflected shape is drawn with an exaggerated vertical scale, given in its caption. The animation raises the load from zero to its full value and back. The deflection grows in proportion, because the model is linear elastic.

Section and stress. The second moment of area I and the extreme-fibre distance c come from the beam deflection calculator, and so does Young's modulus for each material. The largest bending stress is σ = M c / I at the largest moment, sagging or hogging. The I-section formula ignores the root fillets. It gives 1 846 cm⁴ for a 100 × 200 mm section with an 8.5 mm flange and a 5.6 mm web, about 5 % below the 1 943 cm⁴ tabulated for the IPE 200.

Trusses. The truss comes from the truss calculator, solved by the method of joints with pinned joints and loads at the top-chord joints only. A uniform load W is shared as W/n at each interior top joint and W/2n at the two end joints of a Pratt or Howe truss. A Warren truss takes W/n at each of its n top joints. A point load goes to the top joint nearest to the position you choose. The moving dashes are a visual cue only: they run outward on members being stretched and inward on members being squeezed.

Limits. The material is linear elastic and deflections are small. The beam is prismatic, and the supports are rigid. There are no internal hinges, and shear deformation is ignored, which understates deflection when the span is less than about ten times the depth. Self-weight is not added; include it as a distributed load. Lateral-torsional buckling, shear stress and local buckling are not checked, and truss members are not checked for buckling. For serviceability, compare the deflection with the deflection limits for your use.

Sources. Gere and Goodno, Mechanics of Materials, 8th edition, Appendix G (beam deflections). Young, Budynas and Sadegh, Roark's Formulas for Stress and Strain, 8th edition, Table 8.1. McGuire, Gallagher and Ziemian, Matrix Structural Analysis, 2nd edition (the beam element stiffness matrix). Hibbeler, Structural Analysis, 10th edition, chapter 3 (trusses) and the chapters on the stiffness method for beams. AISC Steel Construction Manual, Table 3-23 (two equal spans: largest deflection wl⁴/185EI at 0.4215 l from an end).

FAQ

Why does a middle support cut the moment so much?
Moment grows with the square of the span. Two spans of 4 m carry a quarter of the moment of one 8 m span, and the continuity over the support shares the load between them.

What does "statically indeterminate" mean?
The beam has more supports than equilibrium needs. The reactions then depend on how the beam bends, so the simulator uses its stiffness to find them. A propped cantilever is indeterminate to degree 1, and a beam fixed at both ends to degree 2.

Why are Pratt diagonals in tension and Howe diagonals in compression?
The diagonals carry the shear. A Pratt diagonal slopes down towards midspan, so the shear stretches it. A Howe diagonal slopes the other way, so the shear squeezes it. Long members in tension are cheaper, because they cannot buckle.

Can I size a beam with this?
Use it to understand the behaviour and to find the governing moment. A design also needs the code's load factors, lateral-torsional buckling, shear and deflection checks. The steel beam size calculator runs those checks for one span.

Results are estimates. They do not replace the governing code, class or flag requirements, or a check by a competent person.