form_update_from_force

compas_ags.ags.form_update_from_force(form, force, kmax=100)[source]

Update the form diagram after a modification of the force diagram.

Parameters
  • form (FormDiagram) – The form diagram to update.

  • force (ForceDiagram) – The force diagram on which the update is based.

Returns

None – The form and force diagram are updated in-place.

Notes

Compute the geometry of the form diagram from the geometry of the form diagram and some constraints (location of fixed points). Since both diagrams are reciprocal, the coordinates of each vertex of the form diagram can be expressed as the intersection of three or more lines parallel to the corresponding edges of the force diagram. Essentially, this boils down to solving the following problem:

\[\mathbf{A}\mathbf{x} = \mathbf{b}\]

with \(\mathbf{A}\) the coefficients of the x and y-coordinate of the , \(\mathbf{x}\) the coordinates of the vertices of the form diagram, in Fortran order (first all x-coordinates, then all y-coordinates), and \(\mathbf{b}\) ….

Examples

>>>