Choosing a section
Every sheet so far has read the model. In this step, we'll use a sheet to change it. Our structure is a simply supported beam that fails its deflection check. We can work out the second moment of area the beam needs by hand, so we know in advance which sections should pass, and we'll choose from a short list of five catalogue sections. We'll solve a copy of the model with each of the five sections, set the results out in a table, and apply the lightest section that passes to the model, as one change you can undo.
1.0 The idea
A sheet never changes the model directly. To change it, a cell takes a copy of the model with sb.model.copy() and changes the copy. The model doesn't change while you do this, because the copy only records a list of edits. When you're ready, await sb.solve(m) solves the copy without saving anything, and await sb.apply(m) makes the copy's edits to the open model as a single change in its history, labelled with the sheet and the cell, so one press of Undo takes it back.
The edits are made by the editor, with the same checks as everywhere else in Structure Bench. If any one of them can't be made, for example a section that isn't in the catalogue, Structure Bench doesn't make any of them and identifies every problem. Python then raises EditRefused, and the model doesn't change.
2.0 The model
Our model is an 8 m UB 305 x 165 x 40 in S355, pinned at one end and on a roller at the other, under a characteristic uniform load of 10 kN/m in the load case Characteristic load. It's built as two 4 m members joined at a node at midspan, because the solver reports displacements at the nodes, and the midspan node lets us read the deflection there. The model has one observable, , the vertical displacement of the midspan node. The deflection limit is span/360. As in step 4, the check compares the total deflection under the characteristic load with this limit, which is on the safe side of the National Annex's suggestion.