SMS: Thermodynamics of pharmaceutical systems