simulation of the thermal expansion of polymers during phase transitions