Thermal convection in vertical cylinders. A method based on potentials of velocity