XPBD

XPBD is a algorithm used to simulate cloth, ropes and soft bodies.

Here are some demos:

Here is a report:

The code is available here