Hooke's Law and angular momentum

Little doubt:
how to apply Hooke's Law (F =- k * x) and angular momentum (M =- k * angle) in a connecting square pieces? and these are connected and looking like a long wire.
The program done by rectangles with connections via a joint, such as springs, but they need to be united enough to apply certain laws of physics, such as those cited.
Any tips?

Original thread: https://box2d.org/forum/viewtopic.php?t=6780