vertical_from_zmax

compas_tna.equilibrium.vertical_from_zmax(form, zmax, kmax=100, xtol=0.01, rtol=0.001, density=1.0, display=False)

For the given form and force diagram, compute the scale of the force diagram for which the highest point of the thrust network is equal to a specified value.

Parameters:
formFormDiagram

The form diagram

forceForceDiagram

The corresponding force diagram.

zmaxfloat, optional

The maximum height of the thrust network (the default is None, which implies that the maximum height will be equal to a quarter of the diagonal of the bounding box of the form diagram).

kmaxint, optional

The maximum number of iterations for computing vertical equilibrium (the default is 100).

tolfloat, optional

The stopping criterion.

densityfloat, optional

The density for computation of the self-weight of the thrust network (the default is 1.0). Set this to 0.0 to ignore self-weight and only consider specified point loads.

displaybool, optional

If True, information about the current iteration will be displayed. Default is False.

Returns:
tuple[FormDiagram, float]

The scale of the forcedensities.