simulation#

simulation(network, dt=0.1, force_constants=None, show=False)#

Run a fixed number of steps and return the stability series.

This helper runs the dynamics for 100 steps and returns the list of mean net force magnitudes at each step. It does not plot.

Parameters:
  • network (Network) – The network to simulate.

  • dt (float) – Time step used in Network.step.

  • force_constants – Unused (reserved for future).

  • show (bool) – Unused (reserved for future).

Returns:

list[float] – Mean net force magnitude per step.