waxmorph.simulator.mech_step_sticky

waxmorph.simulator.mech_step_sticky#

waxmorph.simulator.mech_step_sticky(X, R, P, CT, particle_count, dt, X_next, P_next, device='cuda', grad_consist=False, grid=None, *, wnt=None)[source]#

Advance prescribed mechanics using explicit pair derivatives.

The active contact graph is rebuilt with a Warp HashGrid. Optional WNT adds mesenchymal polarity alignment; epithelial polarity position gradients use the componentwise soft-force clamp documented by sticky_sphere_grads(). grad_consist emits replay markers.

Parameters:
  • X (array(ndim=1, dtype=vec3f))

  • R (array(ndim=1, dtype=float32))

  • P (array(ndim=1, dtype=vec3f))

  • CT (array(ndim=1, dtype=uint32))

  • particle_count (int32)

  • dt (float)

  • X_next (array(ndim=1, dtype=vec3f))

  • P_next (array(ndim=1, dtype=vec3f))

  • device (str)

  • grad_consist (bool)

  • grid (HashGrid | None)

  • wnt (array | None)