Dynamic measurement of ferrofluid thermal conductivity under an external magnetic field