waxmorph.emulator.mech_step_sticky_differentiable

waxmorph.emulator.mech_step_sticky_differentiable#

waxmorph.emulator.mech_step_sticky_differentiable(tape, X, R, particle_count, dt, f_net, grid=None)[source]#

Record mechanics with frozen topology.

Pair discovery remains outside the tape; radii participate in recorded force arithmetic. Inactive position rows retain identity gradients. The caller seeds X_out.grad and replays tape.

Parameters:
  • tape (Tape)

  • X (array)

  • R (array)

  • particle_count (int)

  • dt (float)

  • f_net (array)

  • grid (HashGrid | None)

Return type:

array