On the relation between Rayleigh-Bénard convection and Lorenz system