A framework for simulating the flotation process