SMS: Thermodynamics of microstructures