Mechanism of rotational hysteresis energy in Sm-Fe-N permanent magnets