static_equilibrium_numpy

compas_cem.equilibrium.static_equilibrium_numpy(topology, tmax=100, eta=1e-05, verbose=False, callback=None)[source]

Generate a form diagram in static equilibrium using a numpy backend.

Parameters
  • topology (TopologyDiagram) – A valid topology diagram

  • tmax (int. Optional.) – Maximum number of iterations the algorithm will run for. Defaults to 100.

  • eta (float. Optional.) – Distance threshold that marks equilibrium convergence. This threshold is compared against the sum of distances of the nodes’ positions from one iteration to the next one. If eta is hit before consuming kmax iterations, calculations will stop early. Defaults to 1e-5.

  • verbose (bool. Optional.) – Flag to print out internal operations. Defaults to False.

  • callback (function. Optional.) – An optional callback function to run at every iteration.