A multi-phase ferrofluid flow model with equation of state for thermomagnetic pumping and heat transfer