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 known I-end shear of 4.0 N and bending moment of 8.0 N·m. 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 recovery return the correct shear, moment and bending stress at each station in that order?

This page preserves a recorded benchmark and its expected values. The dated run below is not a new run of the current product.

These calculations recover separate mechanics stress components. Component recovery does not establish a combined stress maximum or code stress.

Independent numerical comparison. The recorded test exercises a benchmark crate. It does not exercise the desktop product route.

Four stations are requested out of order. The case tests shear, moment and stress values and retention of the requested order. 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 case record describes these checks:

  • 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 labeled 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, the load ends. Shear and moment become zero and stay zero to the free end. No load acts beyond that station, so the free body on that side carries no load. This station sweep tests that boundary condition.

4.Recorded command.

This command belongs to the archived source at 462f66975d36cd10d5b8455193ada9517d28d353. Use a checkout of that exact revision. This edition did not run the command. The recorded result does not establish current product support.

git checkout --detach 462f66975d36cd10d5b8455193ada9517d28d353
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