A bending check
So far, our sheets have compared the solve with a formula. In this step, we'll write our first check, the kind of calculation you'd hand to a colleague to read. Our structure is a simply supported floor beam, acommon member a structural engineer might be asked to check. We've chosen it because the design moment takes one line, so we can concentrate on how the calculation is set out. We'll add the section's properties to the sheet as model values, work out the elastic moment resistance and the utilisation, and see how Markdown, LaTeX and well-chosen units turn a few lines of Python into a calculation someone else can follow.
1.0 The idea
For most of us, a calculation is only really useful if someone else can follow it. In practice, this means following three habits. Each step should say what it's doing before it does it, the formulas should be written the way an engineer writes them, and the numbers on the page should be in the units an engineer expects to read. A notebook is well suited to this. The Markdown cells hold the explanation and the formulas, written in LaTeX, and each line of Python does one step of the arithmetic, so the working can be checked line by line.
There's also one new kind of variable in this step. Parameters and observables come from the model's parametric setup, but a check also needs properties that aren't parameters, such as a section's depth or a steel's yield strength. A model value is one of these properties, added to the sheet with a Python name. It's read from the model every time the cell runs, so if you change the section, the check uses the new section's properties.
2.0 The model
Our model is a single 7.2 m member, a UB 305 x 127 x 48 in S355, pinned at one end and on a roller at the other. It carries a uniformly distributed design load of 18 kN/m in a load case called ULS design load. We've applied the design load directly, already factored, to keep this step about the check rather than the load combinations. We'll use load combinations in step 4. The model has one observable, , the largest moment in the beam by magnitude.