Working principle of sand washing machines