Rayleigh–Bénard convection involves the transport of heat from a hot bottom surface to a cold top surface. If the temperature…