Material flow

Hello,

I need to make the visualisation shown in the attached video.

Could someone point me to the steps I need to follow to achieve the desired effect?

How do I create the material flow shown in the video? What tools do I need to use?

Thanks in advance!