Just simple universal solver that I wrote for my online course about destruction techniques (in russian).
This solver implement cloth, wire, particle, some RBD dynamics with support of collisions and self-collisions, constraints, stiffness control.
You may see the source code in the begin of video.

https://vimeo.com/64463947 [vimeo.com]