Understanding solar dynamics