Numerical study of periodically heated wall effect on natural convection in an enclosure