Coupled heat + flow accuracyPass

Boussinesq convection

A buoyancy-driven flow constructed by the Method of Manufactured Solutions to measure accuracy when temperature and momentum are two-way coupled.

SteadyBuoyancy-coupledRe = 20, Pr = 1Manufactured solution

The problem

Buoyancy drives many of the flows that matter in practice (data-center cooling, HVAC, electronics thermal management), where warm fluid rises and the resulting motion redistributes the heat. This case tests that two-way coupling directly: temperature forces the flow through buoyancy, and the flow in turn transports the temperature.

The coupled system has no convenient closed-form solution, so the Method of Manufactured Solutions is used. A smooth temperature and velocity field is chosen in advance, the exact heat source that makes it a solution is derived analytically, and the solver is checked against the known field. The field is built so that buoyancy is load-bearing: it carries the momentum balance, so the coupling cannot be quietly bypassed.

Manufactured solution

u=sin(πx)cos(πy)u = \sin(\pi x)\cos(\pi y)
v=cos(πx)sin(πy)v = -\cos(\pi x)\sin(\pi y)
T=cos(πx)sin(πy)T = -\cos(\pi x)\sin(\pi y)
p=2πνcos(πx)cos(πy)12sin2(πx)12sin2(πy)+14\begin{aligned} p &= 2\pi\nu\cos(\pi x)\cos(\pi y) \\ &\quad - \tfrac{1}{2}\sin^{2}(\pi x) - \tfrac{1}{2}\sin^{2}(\pi y) + \tfrac{1}{4} \end{aligned}

What we measured

The mesh is refined from 8 to 48 cells per side and each level is driven to steady state, with the error measured in temperature, velocity and pressure norms.

As a control, the same run is repeated with buoyancy switched off: the velocity error grows by roughly a hundredfold. That confirms the coupling is genuinely being exercised, and the agreement is not an artifact of seeding the solver with the answer.

Results

Refined across four meshes, the temperature error falls at order 2.05 and the velocity at 2.01, both at the theoretical 2.00, with pressure and the gradient norms close behind.

L2 temperatureTarget

Overall accuracy of the predicted temperature

expected 2.002.05

L2 velocity

Overall accuracy of the buoyancy-driven flow

expected 2.002.01

L2 pressure

Overall accuracy of the pressure

expected 1.001.91

H1 temperature

Accuracy of temperature gradients (heat flux)

expected 1.001.01

10⁻³10⁻²slope 2finecoarsemesh size htemperature error
Mesh size hTemperature errorRate
0.12503.77 × 10⁻²
0.06258.81 × 10⁻³2.10
0.03132.15 × 10⁻³2.03
0.02089.53 × 10⁻⁴2.01

Every field (temperature, velocity, pressure) hits its textbook order, with buoyancy load-bearing throughout.

Temperature converges at order 2.05 and velocity at 2.01, both matching the theoretical 2.00, with buoyancy load-bearing throughout.