Heat loss to the rock surrounding the wellbore is implemented using a semi-analytical approach. In each wellbore element that is numerically integrated , an analytical heat solution for a semi-infinite solid is applied from . This approach assumes: heat conduction only occurs radially to the far-field and the wellbore wall temperature is constant with time.