Numerical study of three‐dimensional incompressible thermal flows in complex geometries