Linear stability analysis and cfd simulation of double-layer rayleighbénard convection