The thermodynamic balance of the Weddell Gyre