Zaslat SMS: Principles of Metallurgical Thermodynamics