SMS dit: Thermodynamics of microstructures