This article, written by Special Publications Editor Adam Wilson, contains highlights of paper IPTC 18152, “A Nonisothermal Wellbore Model With Complex Structure and Its Application in Well Testing,” by Shiyi Zheng, SPE, London South Bank University, and Yiqun Zhang, SPE, Heriot-Watt University, prepared for the 2014 International Petroleum Technology Conference, Kuala Lumpur, 10–12 December. The paper has not been peer reviewed. Although the wellbore is in a nonisothermal environment, heat transfer between the fluid in the wellbore and the formation is often ignored and temperature is usually assumed constant in data interpretation, which will lead to misunderstanding of the pressure profile. In this work, wavelet transform and a nonlinear-regression-analysis method were used to study the relationships between downhole temperature, pressure, and flow rate. A nonisothermal wellbore model was established that is capable of predicting temperature, pressure, flow rate, and liquid-fraction profiles under multirate and multiphase production scenarios. Introduction In order to monitor the downhole production and injection conditions, as well as make decisions for well-performance optimization, the dynamic temperature data acquired from permanent downhole gauges (PDGs) and distributed-temperature sensors (DTSs) are often interpreted widely. In this paper, first, the relationships among bottomhole-pressure (BHP), -temperature (BHT), and flow-rate data were analyzed briefly by use of wavelet transform and nonlinear regression. Next, a nonisothermal wellbore model with complex structure was derived theoretically step by step. Then, the wellbore model was coupled with an existing reservoir model through BHT. After that, several synthetic cases were simulated to verify the wellbore model. Finally, on the basis of the coupled wellbore/ reservoir model, the transient temperature behavior during flowing and shut-down periods was drawn out for well-testing analysis and some typical thermodynamic parameters were estimated by use of a set of field data. BHT, BHP, and Flow-Rate Relationships It is worth noting that formation pressure and temperature emerged in many similar characteristics. First, temperature and pressure meet the same diffusion equation. Second, at the junction between formation and well, near-wellbore damage should be considered for pressure. At the same time, on the temperature side, heat loss should also be considered, located in the formation, casing, tubing, and cement. Third, wellbore storage is compared with heat-capacity coefficient in wells. Fourth, constant-pressure and impermeable boundaries have been set for pressure boundaries, but the temperature boundary is always regarded as infinite ground. Analyses of the measured PDG data show that the temperature can also be used to provide reservoir information.