This paper presents a numerical simulation on the heat transfer of liquid sodium in a solar receiver tube, as the liquid sodium is a promising heat-transfer candidate for the next generation solar-power-tower (SPT) system. A comparison between three mediums—solar salt, Hitec and liquid sodium—is presented under uniform and nonuniform heat-flux configurations. We studied the effects of mass flow rate (Qm), inlet temperature (Tin), and maximum heat flux (qomax), on the average heat-transfer coefficient (h) and the friction coefficient (f) of the three mediums. The results show that the h of liquid sodium is about 2.5 to 5 times than other two molten salts when Tin is varying from 550 to 800 K, Qm is 1.0 kg/s, and qomax is 0.1 MW/m2. For maximum heat fluxes from 0.1 to 0.3 MW/m2, the h of liquid sodium is always an order of magnitude larger than that of Hitec and Solar-Salt (S-S), while maintaining a small friction coefficient.