Second Law formulation for a stable velocity-temperature coupling in computational fluid flow