A centrifuge is a device used to separate components of a mixture on the basis of their size, density, the viscosity of the medium, and the rotor speed.