Intermediate100 min7 steps
Seeking and scripting
In the Parametric modelling pathway, we swept parameters and read the results as curves and surfaces. A sweep answers one kind of question, what happens at these values? In this pathway, we'll ask the other kind, at what value does this happen? We'll also add some calculation to the canvas itself, with arithmetic nodes on either side of the model and, where arithmetic isn't enough, a few lines of Python.
As an engineer, your questions are often of the second kind. Instead of asking "what is the moment at 12 m?", you might find yourself asking "how long can the span be before the moment reaches the moment capacity of the beam?" Similarly, rather than "how far does it deflect under 15 kN/m?", you might ask "how much load can it take before it deflects 30 mm?" A Seek node answers these questions by searching. Structure Bench solves the model at trial values of a parameter between two bounds, and the Seek narrows in on the value at which an observable meets a target.
If we put a Range beside it, the seek runs once at each point of the sweep, and we can plot the values it finds as a limit curve. We'll also do some calculation on the canvas around the model. An Expression node can, for example, turn a linear sweep into a logarithmic one, or turn a support reaction into the share of the total load that the support carries.
When the calculation needs more than arithmetic, a Script node runs a Python function on the canvas. It can compute what goes into the model, such as a snow load from a site altitude, or turn what comes out into a utilisation or a pad size. In the last step, we'll wire the script's utilisation back into a Seek, which then finds the span at which the utilisation reaches 1.0.
We'll get familiar with this workflow and the new nodes over seven steps, each with its own model. You can open each model and look around its geometry, its studies and the results stored with each study, including the seeks. If you're a member, you can also copy a model and run its studies yourself. By the end of the pathway, you'll be able to: