Thermodynamics of thermomagnetic effects and application to magnetic refrigerators and heat pumps | IEEE Conference Publication | IEEE Xplore