static_equilibrium_numpy
- compas_cem.equilibrium.static_equilibrium_numpy(topology, tmax=100, eta=1e-06, verbose=False, callback=None)[source]
Generate a form diagram in static equilibrium using numpy.
- Parameters:
topology (
compas_cem.diagrams.TopologyDiagram
) – A topology diagram.tmax (
int
, optional) – Maximum number of iterations the algorithm will run for. Defaults to100
.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. Ifeta
is hit before consumingtmax
iterations, calculations will stop early. Defaults to1e-6
.verbose (
bool
, optional) – Flag to print out internal operations. Defaults toFalse
.callback (
function
, optional) – An optional callback function to run at every iteration. Defaults toNone
.
- Returns:
form (
compas_cem.diagrams.FormDiagram
) – A form diagram.