Improving a numpy implementation of a simple spring network
问题 I wanted a very simple spring system written in numpy. The system would be defined as a simple network of knots , linked by links . I'm not interested in evaluating the system over time, but instead I want to go from an initial state, change a variable (usually move a knot to a new position) and solve the system until it reaches a stable state (last applied force is below a given threshold). The knots have no mass, there's no gravity, the forces are all derived from each link's current