A Generalized Two Dimensional Quasigeostrophic Model Of Thermal Convection