A cylinder contains a powder made up two substances - spherical grains of metal and spherical grains of plastic. In between the grains are voids, so that the cylinder is made up of 75% powder grains and 25% air. The cylinder is oriented vertically. It is sealed at the bottom and open at the top.
The cylinder is heated, and the plastic grains start to melt. The air in the voids gets less dense as the temperature increases, and rises. Some of the hot air leaves the cylinder, but some of the air gets trapped in the melting plastic, and forms small pockets of air encased in the now melted plastic.
Would heating the cylinder slowly allow for more of the air to leave the voids before the plastic is melted? Or, would this rising air just be replaced by falling cooler air that fills the voids?