...
Since we have a heated section in the middle of the pipe, we need to split the geometry appropriately. Click Modify tab and select Split. Roughly select Select two points on the top and of the rectangle. Then select two points at the bottom of the rectangle, where there will be a heated section.
...