horizontal_numpy
- compas_tna.equilibrium.horizontal_numpy(form, force, alpha=100.0, kmax=100)
Compute horizontal equilibrium.
- Parameters:
- form
FormDiagram
A FormFiagram.
- force
ForceDiagram
A ForceDiagram
- alphafloat, optional
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.
- kmaxint, optional
Maximum number of iterations (the default is 100).
- form
- Returns:
- tuple[
FormDiagram
,ForceDiagram
] The updated form and force diagram. These return values are for compatibility with RPCs.
- tuple[
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.