Solution (source code)

= Solution

Cooling from above makes dense cold fluid overlie lighter warm fluid, so the upper boundary layer is unstable and can mix the interior. Assume high <Rayleigh number>, rapid interior mixing, constant properties, negligible wall heat capacity and a quasi-steady cooling flux obeying the <four-thirds convective heat-transfer law>. Write $\theta(t)=T_{\rm bulk}(t)-T_0$ and use a coefficient $C$ appropriate to this single cooling boundary. The volumetric heat capacity is $\rho c_p=k/\kappa$, so the area-wise heat balance is
$$
\frac{kh}{\kappa}\dot\theta=-Ck\left(\frac{g\beta}{\nu\kappa}\right)^{1/3}\theta^{4/3}.
$$
With $K=C\kappa[g\beta/(\nu\kappa)]^{1/3}/h$, integration gives <convective cooling under the four-thirds heat-transfer law>:
$$
\boxed{T_{\rm bulk}(t)=T_0+\left[(\Delta T)^{-1/3}+\frac K3t\right]^{-3}
=T_0+\Delta T\left[1+\frac{K(\Delta T)^{1/3}t}{3}\right]^{-3}.}
$$
The power-law decay is a bulk approximation between the initial boundary transient and the later stage when the decreasing temperature contrast no longer maintains strong convection. It is not an exact spatially uniform solution satisfying the cold boundary itself.

Cooling from below is different: dense cold fluid now lies below warm fluid and stabilizes the layer. With no other imposed motion, cooling is by <thermal conduction>, and temperature becomes depth dependent. Let $z=0$ be the cooled bottom and $z=h$ the insulating top. Solve $\theta_t=\kappa\theta_{zz}$ with $\theta(0,t)=0$, $\theta_z(h,t)=0$ and $\theta(z,0)=\Delta T$. The mixed-boundary eigenfunctions have $\lambda_n=(n+1/2)\pi/h$, giving
$$
\boxed{T(z,t)-T_0=\frac{2\Delta T}{h}\sum_{n=0}^\infty
\frac{\sin(\lambda_nz)}{\lambda_n}e^{-\kappa\lambda_n^2t}.}
$$
Its volume-averaged temperature is
$$
\boxed{\overline T(t)-T_0=\frac{8\Delta T}{\pi^2}\sum_{n=0}^\infty
\frac{e^{-\kappa(2n+1)^2\pi^2t/(4h^2)}}{(2n+1)^2}.}
$$
The late conductive decay is exponential on the timescale $4h^2/(\pi^2\kappa)$, rather than the convective $t^{-3}$ bulk law. This assumes the usual positive thermal expansion coefficient and no destabilizing compositional stratification.