Part III
The Method in SWBPIPE
A. The 3D beam model
SWBPIPE solves the problem of Part II by the direct stiffness method. The centerline is divided into elements that meet at nodes. Every node has six degrees of freedom, three movements and three rotations, in the order ux, uy, uz, θx, θy, θz. The stiffness matrix relates twelve end movements to twelve end forces and moments. Assembly combines the element matrices into one system for the line. The solution gives the movements of the nodes.
The classical force method of Part II F solves the same problem by another method. The bend element below uses the same flexibility integrals.
This part separates beam theory from the supported software routes at revision
462f66975d. The ordinary route publishes preview-physics-1 semantics.
Models 0.3.0 and 0.4.0 can select exact_straight_pressure_v2;
model 0.4.0 requires that route for load/reference states. Where the program does not
yet compute it that way, a mark headed Today says so and links to the
status of this edition.
1.Axes.
Each element has its own axes. Local x runs from the first node to the second. Local y comes from the element’s reference direction, with its x component removed. Local z completes a right-handed set. For a round straight pipe, the reference direction selects the reporting axes for forces and moments. It does not change the stiffness.
The direction cosines transform the element stiffness to global axes:
where T repeats the 3 × 3 direction-cosine matrix four times along its diagonal. The inclined member case checks this transformation.
A reference direction must be entered on every pipe, although it does not change a round section’s stiffness.
2.Straight pipe.
A straight element carries axial force, torsion and bending about both local axes. Its section comes from the nominal outside diameter Do and nominal wall t, with Di = Do − 2t:
J is the torsion constant, equal to the polar moment for a circular tube. Stiffness and weight use the nominal wall. Corrosion and other allowances reduce the section used for stress only, as the codes require (Part II K).
For bending in the local x–y plane, with the degrees of freedom ordered vi, θz,i, vj, θz,j, an element of length L has the stiffness
| 12 | 6L | −12 | 6L |
| 6L | 4L2 | −6L | 2L2 |
| −12 | −6L | 12 | −6L |
| 6L | 2L2 | −6L | 4L2 |
In the x–z plane, movement-rotation terms change sign. A positive θy lowers the z coordinate ahead of it. The axial and torsional terms are EA/L and GJ/L.
The element is an Euler–Bernoulli beam, with no shear deformation. A program that includes shear deformation can predict more flexibility for short, heavy legs (Status). A mill tolerance, if entered, is taken off the wall for stiffness and weight as well as stress (Status).
3.Bends.
The curved bend element uses a flexibility formulation, as in the classical methods. With one end fixed, unit-load moments and forces define the flexibility at the other end. The formulation integrates these terms around the arc of radius R. The flexibility factor k multiplies the bending terms (Part II E):
Here, M is the in-plane bending moment. The out-of-plane bending moment is M′. The product mapping applies the same user-entered k in both planes. The element interface can accept separate factors.
The formulation evaluates the integrals in closed form and inverts the 6 × 6 flexibility matrix. Equilibrium transfers the result to a 12 × 12 stiffness matrix between the tangent points. Weight is applied along the arc. The expansion loop records a bending-only reference at k = 1, 5, 10 and 20.
On the ordinary preview-physics-1 route, a bend component can declare
solver_consumption=curved_bend_macro_element. The product-physics
entrypoint then realizes a curved element. It replaces the
straight chord stiffness and uses the declared geometry, material and finite positive
user factor k. Missing or inconsistent geometry blocks the solve. The legacy
mechanics_geometry_only mode retains chord mechanics. A bend drawn on screen does not establish which mode the model uses
(Status).
The program does not derive k
from geometry. Model 0.2.0 runtime tests exercise this ordinary curved mode.
The exact_straight_pressure_v2 route for models 0.3.0 and 0.4.0
supports straight circular members only. Nonzero legacy pressure is refused.
Arc end and station values do not establish a governing arc stress maximum.
The ordinary route withholds the stress headline when a model contains an arc.
4.Rigid elements, expansion joints and tees.
Rigid elements. In the engineering model, valves, flanges and other stiff components use elements much stiffer than the adjoining pipe. Their weight acts at their center of gravity.
Expansion joints replace the pipe over their length with the joint’s own axial, lateral, angular and torsional stiffness. A joint without tie rods transmits pressure thrust to the adjoining pipe and anchors. The thrust equals pressure times effective area. Tie rods carry the thrust across a tied joint.
Tees join the header and branch at a common node; the branch SIF is applied with the branch section modulus.
Rigid component geometry and weight fields do not establish a rigid solver element or an applied component weight (Status). The ordinary route can replace a pipe span with an explicitly selected joint stiffness element. A nonzero lateral stiffness over a finite span is refused because its moment equilibrium is unqualified (Status).
This refusal contains the joint defect; it does not repair the formulation. Axial, angular and torsional joint stiffness alone are outside that specific refusal. Broad joint, pressure and component composition remain unfinished. A tee still lacks a general flexible branch element (Status).
5.Assembly and solution.
Each element adds its stiffness to the model system, Ku = F. Elimination removes rigidly restrained degrees of freedom. Prescribed movements contribute to the reduced load. For a properly restrained model the reduced K is symmetric and positive definite. The sparse direct method reorders equations by reverse Cuthill–McKee and factors the matrix as LDLT.
A zero, negative or relatively small pivot can indicate an unconstrained mechanism. Numerical admission also requires the applicable integrity checks. A dense solve is available as a check.
No support is ever assumed. A model with no supports, or one missing a material, an orientation or a unit, is not solved, and the message names what is missing.
The current structural path applies numerical integrity and formation gates. A successful factorization alone does not qualify the model or every recovered quantity. Earlier mechanisms could produce rotations of 109 radians or more (Status).
Model 0.4.0 supports explicit rigid boundary translations and rotations on its straight-member route. It refuses spring base motion and device preload/reference laws (Status). Published scope and desktop output availability remain separate.
6.What comes back.
Solved movements give restraint reactions, R = Ku − F. Recovery also gives element end forces and moments, plus section forces at the quarter points and middle. Reaction attribution and output limits are stated below. Element forces are recovered as the element stiffness times its end movements, less the equivalent loads that were applied to its nodes.
Ordinary preview-physics-1 results publish six signed support components
where the action can be attributed. Ambiguous coincident rigid actions are withheld.
Historic precision-1 records retain force norms without moments;
they remain readable but are not current or eligible for rules, reports or export
(Status).
Checked by: cantilever, branch assembly, loads to resultants, intermediate points, one linear static path, torsion.