Variation of the global electric circuit and Ionospheric potential in a general circulation model