Intermediate195 min10 steps
The Python Calc Sheet
Most of the pathways on Structure Bench end each step with a hand check written on the page. We solve a model, read a number from the results, and work out the same number with a formula to make sure we trust it. That's a good habit, but the check is written on the page rather than saved with the model. If you change the span or the load, the hand check doesn't change with it.
In this pathway, we'll move the hand check into the model. The Calc Sheet is a Jupyter notebook that's saved with your model and opens beside the canvas, with Markdown cells for the explanation and Python cells for the arithmetic. Python reads the model's parameters, observables, section and material properties and the results of the last solve, and every number arrives as a quantity with its unit attached. So, a calculation written in a sheet can be run again whenever the model changes, and someone else can read it and check it. We'll write calculations that start from a solve, so they're still correct after the model changes.
We'll work through ten steps, each with a structure of its own. Steps 1 to 5 use small models whose results you can predict (a cantilever, three beams and a truss), so we can concentrate on the sheet. Steps 6 and 7 then use the sheet on a space frame roof of 2,435 members and a four-storey frame of 248 members. These are far too many members to check one at a time by hand.
Each step's model opens beside the page, read-only, with a static Calc Sheet pane open on the step's sheet and the outputs we saved when we ran it. If you're a member, you can copy the model into one of your own projects, where the live sheet runs for real. A copy starts without the sheet's outputs, so the first step in every copy is to solve the model and press Run all. This is by far the best way to learn - you'll learn much more by running and changing the cells yourself than by reading them!
Each step’s model opens beside the page, read-only, with the Calc Sheet pane open on the step’s sheet and the outputs we saved when we ran it. The sheet you see here is a static copy: it shows those outputs but doesn’t run. To get the most from the pathway, press Copy to my projects under the model. The model beside the page becomes your own copy, where the sheet runs for real and you can work through Things to try. Copying models needs a Structure Bench membership. By the end of the pathway, you'll be able to: