Effect of pressure work and viscous dissipation in the analysis of the Rayleigh-Bénard problem