Generation of available potential energy and the energy cycle during the global weather experiment