D-Q axis theory of thermomagnetic curie motor