SWBPIPE · The open manual
Part VI · VerificationVI–C10

Part VI

Verification

C. Stress recovery  ·  Station sweep in requested order

A straight pipe 4.0 m long has a known shear of 4.0 N and a bending moment of 8.0 N·m at its I end. A uniform load of −2.0 N/m acts over its middle half. Stations are requested at 0.75, 0.25, 0.5 and 1.0 of the length, deliberately out of order. Does the solver return the right shear, moment and bending stress at each station, and in the order asked?

Shear, moment and stress at four stations requested out of order; checks the values and that the requested order is kept. w 0.25L 0.5L 0.75L L L
Fig. VI–C10.—Station sweep in requested order

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
I-end shearVy,i4.0 N
I-end bending momentMz,i8.0 N·m
Uniform local y loadq−2.0 N/m
Load spana/L to b/L0.25 to 0.75
Requested station fractionsx/L0.75, 0.25, 0.5, 1.0
AreaA3.0 m2
Section modulus about zZz2.0 m3

2.Method.

The load runs from a = 1.0 m to b = 3.0 m. For a station at distance x from the I end, only the part of the load at or before x is active. The shear and moment follow from the I-end values and the active load.

The axial force is zero at every station, so the axial stress is zero. The bending stress is the moment divided by the section modulus. Pressure is not supplied.

active length = max(0, min(x, b) − a)(1)
lever = x · (active length) − (active end2 − a2) / 2(2)
Vy(x) = Vy,i + q · (active length)(3)
Mz(x) = Mz,i − Vy,i x − q · lever(4)
σb,z = Mz / Zz,   σaxial = 0.0 / 3.0 = 0.0(5)

3.Results.

Expected values in the requested order
IndexStation x/LVyMzBending stress about zAxial stress
00.750.0 N0.0 N·m0.0 Pa0.0 Pa
10.254.0 N4.0 N·m2.0 Pa0.0 Pa
20.52.0 N1.0 N·m0.5 Pa0.0 Pa
31.00.0 N0.0 N·m0.0 Pa0.0 Pa

The tests check that:

  • Both the internal-force sweep and the stress sweep return four stations.
  • Each result carries its requested fraction, in the order 0.75, 0.25, 0.5, 1.0, and is labelled by its position in the request.
  • The shear, moment and bending stress at each station match the table.
  • The axial stress is exactly zero at every station.
  • No station result is blocked, and each carries the standard review flags.

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 fraction, force, moment and stress must match the hand calculation to within an absolute difference of 1.0 × 10−9 in its own units. Counts, labels, the zero axial stress and the review flags are checked exactly. Long values are shown here to seven significant figures; the tests compare the full values in the record.

For the student

At 0.75 of the length, where the load ends, both shear and moment fall to zero, and they stay zero to the free end. Nothing acts on the pipe beyond that point, so the free body on that side carries no load. A station sweep that shows this is a quick check on the boundary condition.

4.Run it yourself.

cd projects/chirality-piping
cargo test --manifest-path validation/benchmarks/stress/Cargo.toml station_sweep_stress_fixture_preserves_order_and_recovers_stresses

Hand calculation: validation/hand_calcs/stress/tp_phys_007_station_sweep_stress.md. Test record, with the recorded run of 2026-07-10: stress-tp-phys-007-station-sweep-stress.md.

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