horizontal_numpy

compas_tna.equilibrium.horizontal_numpy(form, force, alpha=100.0, kmax=100)[source]

Compute horizontal equilibrium.

Parameters
  • form (compas_tna.diagrams.formdiagram.FormDiagram)

  • force (compas_tna.diagrams.forcediagram.ForceDiagram)

  • alpha (float) – Weighting factor for computation of the target vectors (the default is 100.0, which implies that the target vectors are the edges of the form diagram). If 0.0, the target vectors are the edges of the force diagram.

  • kmax (int) – Maximum number of iterations (the default is 100).

Notes

This implementation is based on the following formulation

\[\mathbf{C}^{T} \mathbf{C} \mathbf{xy} = \mathbf{C}^{T} \mathbf{t}\]

with \(\mathbf{C}\) the connectivity matrix and \(\mathbf{t}\) the target vectors.