Magnetic fluid as a continuum with internal degrees of freedom