SMS dit: Thermodynamics and heat powered cycles