Assign the four states and derive the cooling performance
Use a steady one-inlet, one-outlet control volume for each component and neglect kinetic and potential energy changes. The flow work of the inlet and outlet accompanies internal energy as \(h=u+pv\). With \(q\) positive into the fluid and \(w_{\rm in}\) positive as shaft work supplied, the local first law is \(h_{\rm out}-h_{\rm in}=q+w_{\rm in}\).
Label 1 the evaporator exit at low pressure, 2 the compressor discharge at high pressure, 3 the condenser exit liquid at high pressure and 4 the valve exit mixture at low pressure. Assume an adiabatic compressor, an adiabatic valve with no shaft and negligible pressure drops in the heat exchangers. Then the following equations come directly from four separate first laws.
The last equality checks the whole loop. For an adiabatic real compressor use its isentropic efficiency \(\eta_c=(h_{2s}-h_1)/(h_2-h_1)\) with \(s_{2s}=s_1\) at the discharge pressure. Solve for the larger actual enthalpy rise. Shaft losses and heat leakage would require further stated measurements.
Work one cycle with measured and tabulated quantities
For R-134a take saturated vapour leaving at −10 °C and saturated liquid leaving the condenser at 30 °C. Rounded ASHRAE saturated-fluid data give \(p_1=0.20060\) MPa, \(h_1=392.66\) kJ/kg and \(h_{f,1}=186.70\) kJ/kg. At 30 °C the pressure is 0.77020 MPa and \(h_3=241.72\) kJ/kg. Suppose the measured discharge state corresponds to \(h_2=430.00\) kJ/kg on the same reference. ASHRAE Handbook, R-134a saturation data.
The valve leaves 241.72 kJ/kg. At the low pressure that energy lies between the saturated liquid and vapour values. Writing \(h_4=(1-x_4)h_f+x_4h_g\) gives \(x_4=(241.72-186.70)/(392.66-186.70)=0.267\). Thus 26.7% by mass is already vapour before any externally supplied cooling load arrives.
Each kilogram removes 150.94 kJ and costs 37.34 kJ in compressor work. The COP is 4.04. At 0.010 kg/s this is 1.509 kW of cooling, 0.373 kW of compressor power, and 1.883 kW of condenser rejection. The reversible upper bound between isothermal reservoirs at 263.15 and 303.15 K is 6.58. A real load and heat sink need approach temperatures, which can lower the applicable upper bound.
Recall · An enthalpy zero is a convention
Adding the same constant to all the specific enthalpies changes neither performance nor vapour fraction. Mixing tables with different reference states can violate the four-state energy balance. Two temperatures at saturation alone do not determine a two-phase enthalpy because the mass fraction also matters.

Try it · Refrigeration
Change the inputs and compare the recalculated curves with the preceding derivation and baseline figure. The axes give the units; the numerical readout states the model assumptions and any limiting cases. Reset the inputs to return to the reference setting.
Close the balance around a regenerative gas liquefier
Throttle a gas at fixed enthalpy. In a single phase \(dh=c_p\,dT+[v-T(\partial v/\partial T)_p]\,dp\). The initial cooling or heating slope is therefore \(\mu_{\rm JT}=(T(\partial v/\partial T)_p-v)/c_p\). For an ideal gas this vanishes. A real gas must enter on the appropriate side of its inversion curve for an initial pressure drop to cool it.
Send high-pressure gas down a counterflow heat exchanger before the valve. Separate the cold liquid from the flashed vapour and return that vapour through the exchanger, cooling the next incoming stream. Around the combined exchanger, valve and separator, let the inlet specific enthalpy be \(h_H\), the warm low-pressure return \(h_R\) and the separated liquid \(h_L\). Per unit mass entering, an adiabatic outer balance is
For illustrative values \(h_H=260\), \(h_R=275\), \(h_L=40\) kJ/kg the liquid yield is 0.0638. A heat leak of 3 kJ per kg fed changes the numerator to \(h_R-h_H-3\) and the yield to 0.0511. An ideal-gas throttle alone cannot realise these end states. Check attainable pressures and a positive temperature difference everywhere in the exchanger before interpreting an enthalpy balance as a feasible device.
Tutorial on diagnosing a cycle
1 · Recover a flow rate from electrical input
Work through the solution
If the compressor actually receives 0.560 kW of shaft work at the same states, \(\dot m=0.560/37.34=0.0150\) kg/s. Cooling is \(\dot m(150.94)=2.26\) kW. An electrical meter upstream of a lossy motor also needs the motor efficiency.
2 · What does five kelvin of subcooling change?
Work through the solution
At an illustrative liquid heat capacity of 1.45 kJ/(kg K), \(h_3\) falls about 7.25 kJ/kg at fixed pressure. With unchanged inlet and discharge states, \(q_c\) increases to 158.19 kJ/kg and the flash fraction falls by about \(7.25/205.96=0.0352\). A measured change in compressor inlet conditions would change this simple comparison.
3 · Detect an impossible liquefier specification
Work through the solution
A claimed yield of 0.10 with the stated warm and liquid enthalpies would require \(h_H=0.10(40)+0.90(275)=251.5\) kJ/kg before any heat leak. The proposed inlet at 260 kJ/kg exceeds it. More regeneration, precooling or different pressure levels must be specified for that yield.
For further study see Schroeder, An Introduction to Thermal Physics, chapter 4 on real refrigerators, throttling and liquefaction.