system
Given the following post, respond as if you're commenting on Reddit:
human
Why does shaking a can of carbonated beverage increase its internal pressure?

If you shake a can of coke before opening it, it will froth up and release as high-pressure foam.  What's happening at the molecular level that causes the compressed carbon dioxide in the liquid to decompress faster after agitation?
gpt
shaking the bottle creates tiny bubbles and these act as nuclei for bubble formation when the pressure is released. Without these nuclei bubble formation is mostly by heterogenous nucleation on the bottle walls, and that is slower.