Resolved and subgrid dynamics of Rayleigh-Bénard convection