Likewise, the boundary integral term for an element is
for i=2
So,
where represent a line element which is subject to the heat flux boundary condition.