In view of the extensive application of swirl flow pipes (vortex tubes) in refrigeration systems, the parameters of swirl flow pipes were investigated to provide optimal cooling and heating conditions. Three-dimensional numerical simulations were carried out using available experimental data and models. The analysis verified that the heat pipe with a length of 175 mm performed better than the swirl flow pipe with a length of 125 mm, confirming experiments by Agrawal. Meanwhile, by comparing different pressures, it was found that in the single-nozzle swirl flow pipe, the greater the increase of pressure (0.1–1.0 MPa), the greater the burden on the vortex chamber and the more serious the wear is, which can be seen in the higher inlet pressure. In order to improve the durability of the swirl flow pipe, we suggest using a swirl flow pipe with more nozzles. Finally, according to the simulation results, with the rise of carbon dioxide pressure potential energy at the inlet, the cooling effect of the swirl flow is first increasing and then decreasing. When the swirl flow pipe is used as a refrigeration device to determine the minimum cooling temperature under the maximum pressure, the lowest temperature of the 125 mm swirl flow pipe was 252.4 K at 0.8 MPa, while the lowest temperature of the 175 mm swirl flow pipe was 246.0 K. Secondly, the distance from the inlet to the hot outlet of the swirl flow pipe had little effect on the cooling temperature and radial velocity, but increasing its distance increased the wall temperature of the swirl flow pipe because it increases the contact time between the airflow and the hot end of the tube wall. When the swirl flow pipe is used as a heat-producing device, increasing the tube length of the swirl flow pipe appropriately increases its maximum heat-producing temperature.