Thermal simulation of a glass forming process