The current moving heat source method lacks a reasonable heat source model and cannot realize a heat source rotation around the tread for simulating the wheel/rail contact temperature under partial sliding condition. Based on the principle of energy equivalence, an elliptic cylinder model of heat source matching the shape and size of the wheel/rail contact patch was created. By writing a Fortran subroutine into the software MSC.Marc, a three-dimensional wheel/rail thermal model was developed, then the heat source rotation around the tread and movement along the rail were achieved. The effects of heat convection and radiation as well as the heat portion between the wheel and rail were also considered in the model. The wheel/rail contact temperatures under partial sliding conditions were calculated. The results indicate that the proposed method is valid as the relative errors of the calculated temperatures are less than 6% between this model and the mainstream models. A high temperature and large gradient are generated rapidly with a high level of wheel/rail slip. The temperature has a semi-ellipse distribution in the lateral direction, and the influence is mainly concentrated on the range of the lateral width of contact patch. The temperature distribution in the depth direction is no more than 0.5 mm from the calculated cases, and the range outside 0.5 mm has no difference with the ambient.