import math


def RayleighNumber(g, alpha, deltaT, nu, kappa, H):
  """
  Calculate the Rayleigh number:
  
    Ra = g alpha delta T H^3
         -------------------
              nu kappa
  """
  
  return (g * alpha * deltaT * math.pow(H, 3.0)) / (nu * kappa)