K termodinamiki termomagnetnih strojev