Perfect thermal contact of the surface of a solid with the environment (convective heat transfer) or another solid occurs when the temperatures of the mating surfaces are equal.
Perfect thermal contact conditions
Perfect thermal contact supposes that on the boundary surface
and an equality of heat fluxes
where
If there is a heat source on the boundary surface
where