Helioseismology
In the same way that we can use pressure waves to probe the interior of the Earth, the motions on the solar surface can tell us how waves are traveling inside. Because their speed depends on the local density and temperature, we can deduce the interior structure of the Sun, and compare it to models.