Abstract The Ranque-Hilsch vortex tube is a device that splits an incoming flow into two outgoing streams, but with the peculiar property that one stream exits at a lower total temperature than the incoming flow and the other at a higher total temperature. This temperature separation is accomplished without any moving parts, electronics or external power supplied to the device. Despite the passage of nearly a century since the effect's discovery, there remains a dearth of understanding regarding the mechanism responsible for the phenomenon. In fact, the literature contains competing theories with little evidence providing support. A promising technique to discern the responsible mechanisms for the energy transfer from the ultimately cold stream to the ultimately hot stream is to computationally define a stream tube that propagates upstream from the exits such that the stream tube interface separates the hot flow from the cold flow. In this paper, we apply this method to a three-dimensional, full-volume analysis of the flow within a vortex tube using a computational simulation that was thoroughly validated against experiments on a physical replica of the computational geometry. In this novel study, the integral form of the energy equation was used to quantify all forms of the energy transfer within the vortex tube. The results demonstrate that the phenomenon of temperature separation is attributable primarily to viscous work in the radial direction due to the circumferential flow, with a lesser contribution from heat transfer in the radial direction.