SWBPIPE · The open manual
Part VI · VerificationVI–B10

Part VI

Verification

B. Elements and loads  ·  From loads to resultants

A straight pipe four metres long is fixed at one end and free at the other. It carries a uniform load of −2.0 N/m over its whole length and a point force of −4.0 N at midspan, both across the pipe. The solver must turn both loads into equivalent end forces and moments, solve for the movement of the free end, and recover the shear and bending moment at midspan.

A cantilever pipe with a uniform load and a midspan point force is checked for equivalent end loads, tip movement and midspan resultants. w P L
Fig. VI–B10.—From loads to resultants

1.Inputs.

Illustrative values, taken from no standard and chosen so the arithmetic can be followed by hand. Most do not describe a real pipe; read them in any consistent set of units.

QuantitySymbolValue
LengthL4.0 m
Elastic modulusE1000.0 Pa
Shear modulusG400.0 Pa
AreaA3.0 m2
Second moment about yIy1.5 m4
Second moment about zIz2.0 m4
Torsion constantJ1.0 m4
Uniform load, global Yq−2.0 N/m
Point force, global YP−4.0 N
Point-force positiona/L0.5
Supports—Node 0 fixed, node 1 free

2.Method.

Each load is turned into equivalent end forces and moments. The uniform load gives qL/2 and qL2/12 at each end. The point load is shared out by the cubic shape functions of a beam element, evaluated at its position.

The free-end displacement and rotation follow from the standard cantilever formulas for a uniform load and for a point load, added together. The midspan shear and moment follow from equilibrium, starting from the shear of 12.0 N and moment of 24.0 N·m at the fixed end.

Fy,i = qL/2 = −4.0 N,   Mz,i = qL2/12 = −2.6666666666666665 N·m   (uniform load)(1)
hi = 1 − 3r2 + 2r3 = 0.5,   θi = L(r − 2r2 + r3) = 0.5   (point load, r = 0.5)(2)
v(L) = qL4/(8EIz) + Pa2(3L − a)/(6EIz) = −0.032 + −0.013333333333333334 = −0.04533333333333334 m(3)
θ(L) = qL3/(6EIz) + Pa2/(2EIz) = −0.010666666666666666 + −0.004 = −0.014666666666666668 rad(4)
Vy(x) = Vy,i + qx + P = 12.0 + (−2.0 × 2.0) + −4.0 = 4.0 N(5)
Mz(x) = Mz,i − Vy,ix − qx2/2 − P(x − a) = 4.0 N·m(6)

3.Results.

Assembled loads, free-end movement and midspan resultants
QuantityExpected
Assembled load, node 0, Uy−6.0 N
Assembled load, node 0, Rz−4.666667 N·m
Assembled load, node 1, Uy−6.0 N
Assembled load, node 1, Rz4.666667 N·m
Free-end displacement in Y−0.04533333 m
Free-end rotation about Z−0.01466667 rad
Midspan shear Vy4.0 N
Midspan bending moment Mz4.0 N·m

The tests check that:

  • The assembled force and moment at the fixed node match the hand values.
  • The free-end displacement and rotation match the hand values.
  • The midspan shear and bending moment match the hand values.
  • All of these quantities are finite.

What it shows. Compared with an independent hand calculation.

Path exercised. The benchmark calls the solver’s components directly: elements, loads, frame solver and stress recovery. It does not go through the program’s own model-to-solve path.

Agreement. Each computed value must match the reference within an absolute difference of 1.0 × 10−9 in the case’s own units; counts and structural outcomes must match exactly. Long values are shown here to seven significant figures; the tests compare the full values in the record.

For the student

The point force sits exactly at the station asked for, and the solver counts it as already passed. That is why the midspan shear is 4.0 N and not 8.0 N. At the free end the same bookkeeping gives zero shear and zero moment, as a free end must.

4.Run it yourself.

cd projects/chirality-piping
cargo test --manifest-path validation/benchmarks/mechanics/Cargo.toml tp_phys_004_load_to_resultant_fixture_assembles_solves_and_recovers

Hand calculation: validation/hand_calcs/mechanics/tp_phys_004_load_to_resultant.md. Test record, with the recorded run of 2026-07-10: mech-tp-phys-004-load-to-resultant.md.

Contents · Part VI · The program: swbpipe.com · MIT licence