I am not able to understand the reason for temperature separation and flow reversal in a counter-flow vortex tube refrigeration system.
As per some sources, "Compressed air is passed through the nozzle .Then air expands and acquires high velocity due to particular shape of the nozzle. A vortex flow is created in the chamber and air travels in spiral like motion along the periphery of the hot side. This flow is restricted by the valve. When the pressure of the air near valve is made more than outside by partly closing the valve, a reversed axial flow through the core of the hot side starts from high-pressure region to low-pressure region. During this process, heat transfer takes place between reversed stream and forward stream. Therefore, air stream through the core gets cooled below the inlet temperature of the air in the vortex tube, while air stream in forward direction gets heated up. The cold stream is escaped through the back side cold part, while hot stream is passed through the opening of the valve."
But if energy is being transferred from reversed stream (colder one) to the forward stream (hotter one) then doesn't it violate the 2nd law of thermodynamics?