Two parameters at once
Varying one parameter gives a curve. In this step, we'll vary two parameters at once and plot the result as a heatmap. The model is a 24 m Pratt truss, and both its depth and its camber are parameters. We'll use a Grid to solve every combination of six depths and four cambers, then draw a Heatmap that shows the midspan deflection for each combination as a coloured cell. Then, we'll see how a Zip differs. Instead of combining every value with every other, it pairs up the two ranges value by value. Finally, we'll check the stiffest combination in the grid by hand, using the method of sections.
1.0 The model
The model is a 24 m Pratt truss with eight panels, made from circular hollow sections. It's pinned at one end and sits on a roller at the other. Every top-chord node carries 30 kN of dead load and 20 kN of imposed load, with half these values at the two end nodes.
Two parameters set the truss's shape:
dis the depth at the supports, 2.5 m by default.cis the camber, which is how much higher the top chord rises at midspan. It's 1 m by default.
The bottom chord is straight, and the top chord follows a parabola. It's worth looking at how the top-chord nodes are linked to the parameters. Each node's height is set by the expression d + c * f, where f is a number between 0 at the supports and 1 at midspan. For example, the node at quarter span uses d + c * 0.75. Each node has its own value of typed into its expression, so changing alone reshapes the whole top chord.