A centrifuge can separate components of a fluid by density. They are often used in medicine for tasks such as bloodwork.