Based on the quantum confinement-luminescence center model, to ensembles of spherical silicon nanocrystals (nc-Si) containing two kinds of luminescence centers (LCs) in the layers surrounding the nc-Si, the relationship between the photoluminescence (PL) and the thickness of the layer is studied with the excitation energy flux density as a parameter. When there is no layer surrounding the nc-Si, the electron-heavy hole pair can only recombine inside the nc-Si, then the PL blueshift with reducing particle sizes roughly accords with the rule predicted by the quantum confinement model of Canham. When there presences a layer, some of the carriers may tunnel into it and recombine outside the nc-Si at the LCs to emit visible light. The thicker the layer is, the higher the radiative recombination rate occurred outside the nc-Si will be. When the central scale of the nc-Si is much smaller than the critical scale, the radiative recombination rate outside the nc-Si dominates, and visible PL will be possible for some nc-Si samples with big average radius, greater than 4 nm, for example. When there is only one kind of LC in the layer, the PL peak position does not shift with reducing particle sizes. All these conclusions are in accord with the experimental results. When there are two or more kinds of LCs in the layer, the PL peak position energy and intensity swing with reducing particle sizes.