Goal seek
A sweep tells you what happens at the values you chose. In this step, we'll turn the question around and ask Structure Bench to find the value at which something happens. We'll start with a simple example and find the span at which a beam's moment reaches 600 kNm, and the load at which its deflection reaches 30 mm. Both have a one-line closed-form solution, so we can check the Seek node's answer by hand and watch exactly how it searches.
1.0 The idea
Suppose you want the longest span a beam can have before its moment reaches a limit. With a sweep you'd run a Range of spans, read the Table, and interpolate between the two rows either side of the limit. A Seek does that for you, and does it better. It runs a first round of eight points across the bounds you give it and finds the pair of points that brackets the target. Then it runs six more points inside that bracket, five evenly spaced and one where a straight line through the bracket's ends predicts the crossing, and repeats inside the narrower bracket until a point lands within the tolerance. This usually takes several rounds. Every round is an ordinary study, so its points are cached like those of any other study.
Notice that the Seek doesn't use a formula for the moment, or any other information about how the beam behaves. At each trial span, Structure Bench solves the model and returns the observable's value, and the Seek calculates the next spans to try from those values alone. This means you can use a Seek with any parameter that varies continuously, such as a span or a load, and any observable the model reports.
2.0 The model
The model is a simply supported beam, 12 m long by default, made of two elements so that a node sits at midspan. Its section is a UB 533 x 210 x 92 in S355. There are three parameters, which are L, the span (4 to 24 m), wd, the dead load of 10 kN/m, and ws, the imposed load of 15 kN/m. Ten bindings put the midspan node at , the far support at , and the four line-load magnitudes at and . There are also three observables. These are the peak moment anywhere under the ULS combination , the midspan deflection under , and the left reaction under ULS.