COPheating = (h₂−h₃) / (h₂−h₁)
Actual compression: h₂ = h₁ + (h₂s−h₁)/ηc
① Evaporator exit (sat. vapor + superheat)
② Compressor exit (superheated vapor)
③ Condenser exit (subcooled liquid)
④ Expansion valve exit (isenthalpic)
Adjust evaporating/condensing temperature, refrigerant, and compressor efficiency to visualize the P-h diagram in real time. Instantly compute COP, refrigerating effect, and compressor work.
The core of the cycle analysis is energy balance at each component. The most important metric is the Coefficient of Performance (COP) for cooling, which is the refrigerating effect divided by the net work input.
$$ \text{COP}_{\text{cooling}}= \frac{q_{\text{in}}}{w_{\text{in}}}= \frac{h_1 - h_4}{h_2 - h_1}$$Here, $h_1$ is the enthalpy at the evaporator exit (superheated vapor), $h_2$ is the enthalpy at the compressor exit, $h_4$ is the enthalpy at the evaporator inlet. The difference $(h_1 - h_4)$ is the useful cooling per kg of refrigerant, and $(h_2 - h_1)$ is the compressor work per kg.
In reality, compressors aren't perfectly efficient. The simulator uses an isentropic efficiency ($\eta_c$) to model real-world losses. The actual compressor exit enthalpy is calculated from the ideal (isentropic) exit enthalpy.
$$ h_2 = h_1 + \frac{h_{2s} - h_1}{\eta_c}$$Here, $h_{2s}$ is the enthalpy if compression were perfectly isentropic (no friction, no heat loss). $\eta_c$ is the compressor isentropic efficiency. When you set $\eta_c$ to 100% in the simulator, you're looking at the ideal cycle. Lowering it shows how real-world inefficiencies increase $h_2$ and thus the required work.
Household Refrigeration: Your kitchen fridge runs on this exact cycle. Engineers use these calculations to select the right compressor and heat exchangers to keep food at 4°C while maximizing COP to save energy. The choice of refrigerant (like R-600a in modern fridges) is critical for both performance and environmental impact.
Commercial Air Conditioning: Large office building chillers are scaled-up versions of this cycle. They must handle varying loads efficiently. Engineers simulate different condensing temperatures (linked to outdoor weather) and evaporating temperatures (linked to desired indoor cooling) to design systems that maintain comfort with minimal electricity use.
Industrial Process Cooling: In food processing or chemical plants, precise low temperatures (e.g., -30°C for freezing) are required. This involves cycles with multiple stages or cascade systems. The principles are the same, but the low evaporating temperature dramatically increases the compressor lift, making efficiency a major design challenge.
Heat Pumps for Space Heating: The same hardware can run in reverse as a heat pump. The COP for heating is even higher than for cooling, as it represents the ratio of delivered heat to electrical work. This calculation is crucial for advocating heat pumps as an efficient alternative to gas furnaces for home heating.
While experimenting with this tool, you might encounter a few easily misunderstood points. First is the idea that "since raising the evaporation temperature increases the COP, you should just set it as high as possible." While this is theoretically true, in real-world equipment, setting the evaporation temperature too high causes significant problems. For instance, if you set a refrigerator's evaporation temperature to -5°C, it would be nearly impossible to maintain the cabinet at 0°C or below. Heat only moves from a higher temperature to a lower one, so you need an evaporation temperature at least 5–10°C lower than the target cooling temperature. Ignoring this and designing based solely on simulation results would lead to equipment that doesn't cool at all.
Next is confusing the roles of 'subcooling' and 'superheat'. While you can't directly adjust subcooling in the tool, you can observe the effect of increasing subcooling by lowering the condensation temperature. Subcooling is a beneficial effect that reliably increases the refrigeration effect. Superheating (heating the gas before compressor suction), however, has pros and cons. A small amount of superheat prevents liquid slugging (a damaging event where liquid refrigerant enters the compressor cylinders), but excessive superheat causes abnormal temperature rise at the compressor discharge, degrading the refrigerant and lubricating oil. In the simulation, it just shows an increase in h1, but in actual equipment, this is strictly controlled using sensors.
Finally, there's the pitfall of "COP supremacy" in refrigerant selection. For example, R290 (propane) has a low GWP and excellent environmental performance, but being a flammable gas, it requires special safety regulations for handling. Also, R410A is a high-pressure refrigerant, increasing the strength and cost of piping and equipment. In practice, refrigerants are chosen by balancing safety, cost, regulations, and system compactness alongside COP. When comparing numbers in the simulator, keep this broader context in mind.
Air conditioning system using R134a with T_evap = 5°C, T_cond = 40°C, compressor efficiency η = 0.82, mass flow 0.15 kg/s. At saturation: h_evap ≈ 245 kJ/kg, h_cond ≈ 420 kJ/kg. Refrigerating effect Q_evap = 0.15 × (400 - 245) = 23.25 kW. Isentropic work w_s = 65 kJ/kg; actual work = 65/0.82 ≈ 79.3 kJ/kg. COP_cooling = 23.25/11.9 ≈ 1.95. Condenser duty = 35.14 kW (cooling load + compressor input).