At the center of a planet or star, gravitational compression produces heat by the Kelvin–Helmholtz mechanism. This is the mechanism that explains how Jupiter continues to radiate heat produced by its gravitational compression.