A new framework for simulation of heat treatments. (21st December 2010)