Observables and results
In step 1, the sheet read the model's inputs (its length and its load) and one reaction from the solve. In this step, we'll look at the two ways a sheet reads the results of a solve. Our structure is a continuous beam over two equal spans, chosen because it has moments of both signs and three reactions that aren't equal, so we'll need to be careful about which number we're reading and what its sign means. We'll read the hogging moment over the middle support and the largest sagging moment through two named observables, read the three reactions directly from the results, check that they add up to the load, and find where the largest sagging moment occurs.
1.0 The idea
A sheet can read a result in two ways. The first is through an observable, a result you've asked Structure Bench to watch, such as a reaction, a displacement or the largest moment in a member. Once an observable has a Python name, it appears in the Variables panel and a cell reads it as v.<name>, exactly as it reads a parameter. An observable is the right choice for the handful of numbers a calculation is built around, because it has a name you can read in the cell and it's listed in the report's Inputs table.
The second is through sb.results, which holds every result set of the last solve. From a result set, a cell can read any reaction, any displacement, and the forces at a series of positions along any member. This is the right choice when you want more than a handful of numbers, or numbers you didn't think to name in advance.
2.0 The model
Our model consists of three nodes and two members. Each member is a 5 m UB 305 x 165 x 40 in S355, and the beam is continuous over the middle node, so the two members are rigidly connected there. The left node is pinned and the middle and right nodes are on rollers. A uniformly distributed load of 15 kN/m acts downwards over both spans, in the load case .