Rayleigh-bénard convection in open and closed rotating cavities