This is a detailed HVAC psychrometric calculation problem. I need to:
- Start with initial conditions: 30°C at 60% RH
- Cool to 20°C
- Show the process path on a psychrometric chart
- Calculate enthalpy changes (sensible and latent cooling)
- Plot the processes
Let me work through this systematically:
Step 1: Find Initial Conditions (Point 1: 30°C, 60% RH)
At 30°C and 60% RH:
- Saturation temperature at 30°C: Tsat ≈ 30°C
- Saturation pressure at 30°C: Psat ≈ 4.246 kPa
- Partial pressure: Pv = φ × Psat = 0.60 × 4.246 = 2.548 kPa
For moist air at T = 30°C, P = 101.325 kPa:
- Using humidity ratio equation: W = 0.622 × (Pv / (P - Pv))
- W₁ = 0.622 × (2.548 / (101.325 - 2.548))
- W₁ = 0.622 × (2.548 / 98.777)
- W₁ = 0.622 × 0.02579
- W₁ ≈ 0.01604 kg/kg of dry air
For enthalpy of moist air:
At T = 30°C:
- hfg ≈ 2501 - 2.382 × 30 = 2429.54 kJ/kg
h₁ = 1.005 × 30 + 0.01604 × (2429.54 + 1.82 × 30)
h₁ = 30.15 + 0.01604 × (2429.54 + 54.6)
h₁ = 30.15 + 0.01604 × 2484.14
h₁ = 30.15 + 39.81
h₁ ≈ 69.96 kJ/kg of dry air
I should apply standard psychrometric relationships instead. For the initial conditions at 30°C with 60% relative humidity, the saturation pressure is 4.246 kPa, so the partial pressure of water vapor becomes 0.60 × 4.246 = 2.5476 kPa. From this I can determine the humidity ratio using W = 0.622 × (Pv / (P - Pv)).
Working through the calculation: W₁ = 0.622 × (2.5476 / 98.7774) ≈ 0.01604 kg water per kg dry air. The enthalpy at this state is h₁ = 1.005(30) + 0.01604(2555.6) ≈ 71.1 kJ/kg dry air.
For the final state at 20°C, I need to determine what happens during the cooling process. The air likely undergoes sensible cooling while maintaining constant humidity ratio until it reaches the saturation line. The problem specifies cooling from 30°C at 60% RH to 20°C via sensible cooling to saturation followed by latent cooling. This means I should trace a path where the air first cools at constant humidity ratio until reaching saturation, then continues cooling at constant temperature while dehumidifying. The final state should be 20°C, likely at saturation since dehumidification has already occurred.
For the initial conditions at 30°C and 60% RH, I have W₁ = 0.01604 kg/kg and h₁ = 71.1 kJ/kg. To find where saturation occurs at this same humidity ratio, I need the dew point temperature—the temperature where the air becomes saturated without any moisture change. This requires finding the saturation pressure corresponding to the current vapor pressure.
At 30°C with 60% relative humidity, the partial pressure of water vapor is 0.6 times the saturation pressure at that temperature. Using psychrometric relationships, this vapor pressure corresponds to a saturation temperature around 20.6°C. This is the dew point—the temperature at which cooling at constant humidity ratio leads to saturation. corresponds to approximately 20.6°C, so that's the dew point.
At saturation (20.6°C, 100% RH), the humidity ratio stays at 0.01604 kg/kg. The enthalpy at these saturated conditions is approximately 2515.6 kJ/kg.
For the saturated state, I need to use the moist air enthalpy equation: h = 1.005 × T + W × (2501 + 1.82 × T). Substituting the values at 20.6°C with W = 0.01604 gives h₂ ≈ 97.9 kJ/kg.
Actually, let me recalculate more carefully. At saturation:
h₂ = 1.005 × 20.6 + 0.01604 × (2501 + 1.82 × 20.6)
h₂ = 20.70 + 0.01604 × 2538.5
h₂ = 20.70 + 40.72
h₂ ≈ 61.4 kJ/kg dry air
For the final cooling to 20°C, the air either continues along the saturation line or dehumidifies further. A typical air conditioning process involves sensible cooling along the dry bulb until saturation is reached, then latent cooling along the saturation curve.
If the final state is at 20°C and saturated, then at φ = 100%:
- Psat = 2.337 kPa
- W₃ = 0.622 × (2.337/(101.325-2.337)) = 0.01454 kg/kg
- h₃ = 1.005 × 20 + 0.01454 × (2501 + 1.82 × 20)
- h₃ = 20.10 + 0.01454 × (2501 + 36.4)
- h₃ = 20.10 + 36.89 ≈ 57.0 kJ/kg dry air
The process involves two distinct stages: first cooling at constant humidity ratio until reaching saturation at 20.6°C, then removing moisture while cooling further to 20°C. I should map out each state on the psychrometric chart and calculate the energy requirements for both the sensible and latent cooling phases. The standard HVAC interpretation involves two distinct stages: first, sensible cooling where temperature decreases along a constant humidity ratio line until reaching saturation around 20.6°C, then latent cooling where the air continues cooling along the saturation curve while simultaneously dehumidifying. If the final state is 20°C, the process would follow the saturation line from the dew point down to that temperature, removing both sensible and latent heat in the second stage.
I should work through the complete calculations for both stages and create a psychrometric chart visualization to show how the air state transitions through these phases. A Python script using matplotlib would effectively display the initial condition at 30°C and 60% RH, the saturation point where sensible cooling ends, and the final state at 20°C on the saturation curve. The saturation_pressure function uses the Magnus formula to calculate saturation pressure in Pa given dry bulb temperature in °C. The humidity_ratio function then converts partial pressure of water vapor to humidity ratio in kg water per kg dry air using the standard psychrometric relationship. A third function combines these to directly compute humidity ratio from dry bulb temperature and relative humidity.
For enthalpy calculations, the specific enthalpy is determined from dry bulb temperature and humidity ratio using the psychrometric equation. The saturation_humidity_ratio function finds the humidity ratio at 100% relative humidity by applying the saturation pressure. Finally, dew point temperature is calculated by finding the temperature at which saturation pressure equals the actual vapor pressure, using numerical solving to find this intersection point.
Now I'm setting up the problem with initial conditions at 30°C and 60% relative humidity. I'll calculate the humidity ratio, enthalpy, and dew point for this state, then display these properties to establish the baseline for the cooling process analysis.
Next, I need to find where the air reaches saturation while maintaining the same humidity ratio. I'll use an optimization function to determine the temperature at which the saturation humidity ratio equals the initial humidity ratio W1. At this saturation point (State 2), the relative humidity becomes 100% and I can calculate the corresponding enthalpy.
From State 2, the process continues with further cooling to 20°C. At this final state (State 3), assuming the air becomes saturated at this lower temperature, I'll determine the new humidity ratio at saturation and calculate the final enthalpy. The sensible cooling load between the initial and saturation states represents the energy removed while the humidity ratio remains constant.
Now I need to find the latent cooling that occurs as the air cools from the saturation point to the final conditions, which involves moisture condensation. The total cooling load combines both the sensible and latent components, and I can quantify the dehumidification by comparing the initial and final humidity ratios. The moisture removal in grams per kilogram of dry air shows the actual condensation that takes place during this process. uration Curve (100% RH)')
Plot RH lines
RH_lines = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
for RH_val in RH_lines:
W_line = np.array([humidity_ratio_psych(T, RH_val) for T in T_range])
ax.plot(T_range, W_line1000, 'gray', linewidth=0.5, alpha=0.5)
# Add RH label
idx = -1
ax.text(T_range[idx], W_line[idx]10001.02, f'{int(RH_val100)}%',
fontsize=8, color='gray')
I'm drawing the psychrometric chart with the saturation curve and relative humidity lines across the temperature range. Each RH line gets labeled at the right edge for clarity.
Now I need to add constant humidity ratio lines (the vertical dashed lines) and then plot the actual process path showing the sensible cooling from state 1 to state 2 as a horizontal line on the chart.
For the process path, I'm drawing the sensible cooling step (1→2) where humidity ratio stays constant while temperature drops, then the combined sensible and latent cooling (2→3) follows the saturation curve as moisture is removed. After plotting these paths, I mark the three state points on the diagram with state 1 at the initial conditions.
Now I need to add the remaining state points and their annotations. State 2 appears at the saturation point after cooling, and state 3 at the final condition of 20°C saturated air. I'll annotate each point with its properties including temperature, humidity ratio, and enthalpy values, using colored boxes and arrows to clearly identify each state on the psychrometric chart. AC Psychrometric Chart - Cooling Process\nFrom 30°C 60% RH to 20°C',
fontsize=14, fontweight='bold', pad=20)
ax.grid(True, alpha=0.3)
ax.legend(loc='upper left', fontsize=10, framealpha=0.95)
ax.set_xlim(5, 45)
ax.set_ylim(0, 25)
Add process arrows
arrow_props = dict(arrowstyle='->', lw=2, color='darkred')
ax.annotate('', xy=(T2_db-0.5, W11000), xytext=(T1_db+0.5, W11000),
arrowprops=arrow_props)
ax.annotate('', xy=(T2_db, W31000), xytext=(T2_db-0.5, W11000),
arrowprops=arrow_props)
I'm setting up the chart title and axis labels, then configuring the grid and legend. The axis limits are set to show the relevant temperature and humidity range. I'm adding directional arrows to trace the cooling process from the initial state through the intermediate cooling step to the final state.
Now I need to add a text box displaying the calculated cooling loads—sensible heat removal during the first stage, latent heat removal during dehumidification, and total cooling required. The box also shows the moisture reduction in grams per kilogram. After rendering the chart, I'll save it as a PNG file and then move on to calculating practical HVAC loads with actual air mass flow rates.
For the practical example, I'm setting up a room air handling unit scenario with a volumetric flow rate of 0.5 m³/s. To determine the actual mass flow, I need to calculate the air density more precisely using the ideal gas law rather than assuming a constant value, accounting for both temperature and humidity effects on the moist air properties.
Using the specific gas constant for dry air (287 J/kg·K) and adjusting it for moisture content with the humidity ratio W, I can find the actual density at inlet conditions. From there, I separate the mass flow into its dry air and water vapor components, which is essential for tracking the energy and moisture transfers through the system.
The sensible and latent cooling loads scale with the dry air mass flow rate, multiplied by their respective specific heat effects. The total cooling requirement combines both components. For dehumidification, I need the rate at which moisture is removed, calculated from the dry air mass flow and the change in humidity ratio across the cooling process. = dehumid_rate * 3600 # kg/h
print(f"\nCooling Loads:")
print(f" Sensible Cooling: {Q_sensible_total:.2f} kW")
print(f" Latent Cooling: {Q_latent_total:.2f} kW")
print(f" Total Cooling: {Q_total_load:.2f} kW ({Q_total_load3.412:.0f} BTU/h)")
print(f" Sensible Fraction: {Q_sensible_total/Q_total_load100:.1f}%")
print(f" Latent Fraction: {Q_latent_total/Q_total_load*100:.1f}%")
print(f"\nDehumidification Rate:")
print(f" {dehumid_rate:.5f} kg/s = {dehumid_rate1000:.2f} g/s")
print(f" {dehumid_rate_kg_per_h:.2f} kg/h ({dehumid_rate_kg_per_h1000:.0f} g/h)")
Energy efficiency metrics
SHR = Q_sensible_total / Q_total_load # Sensible Heat Ratio
print(f"\nEnergy Metrics:")
print(f" Sensible Heat Ratio (SHR): {SHR:.3f}")
print(f" Energy per unit volume cooled: {Q_total_load/(volumetric_flow_rate):.1f} W/(m³/s) = {Q_total_load/volumetric_flow_rate*1000/(60):.1f} W/(m³/min)")
Now I'm calculating the sensible heat ratio to understand the proportion of cooling dedicated to temperature reduction versus moisture removal, then normalizing the total load against volumetric flow to get efficiency metrics that show how much energy is needed per unit of air processed.</think>
# HVAC Cooling Process Analysis with Psychrometric Chart
## Manual Calculations
### **State 1: Initial Conditions (30°C, 60% RH)**
**Finding saturation pressure at 30°C:**
$$P_{sat} = 611.2 \times e^{17.62 \times 30/(30+243.12)} = 4,245 \text{ Pa}$$
**Partial pressure of water vapor:**
$$P_v = \phi \times P_{sat} = 0.60 \times 4,245 = 2,547 \text{ Pa}$$
**Humidity ratio:**
$$W_1 = 0.622 \times \frac{P_v}{P_{atm} - P_v} = 0.622 \times \frac{2,547}{101,325 - 2,547} = 0.01604 \text{ kg/kg}$$
**Enthalpy:**
$$h_1 = 1.005 \times T + W(2501 + 1.82 \times T)$$
$$h_1 = 1.005(30) + 0.01604(2501 + 54.6) = 71.2 \text{ kJ/kg dry air}$$
---
### **State 2: End of Sensible Cooling (Saturation, W = constant)**
Cooling at constant humidity ratio until saturation occurs at dew point:
**Temperature where W₁ = 0.01604 becomes saturated:**
Solving: $W_{sat}(T_2) = 0.01604$ yields **T₂ = 20.6°C**
$$h_2 = 1.005(20.6) + 0.01604(2501 + 37.5) = 61.4 \text{ kJ/kg dry air}$$
**Sensible Cooling Load (1→2):**
$$Q_{sensible} = h_1 - h_2 = 71.2 - 61.4 = \boxed{9.8 \text{ kJ/kg}}$$
---
### **State 3: Final Conditions (20°C, Saturated)**
**At 20°C saturation:**
$$P_{sat}(20°C) = 2,337 \text{ Pa}$$
$$W_3 = 0.622 \times \frac{2,337}{101,325-2,337} = 0.01454 \text{ kg/kg}$$
$$h_3 = 1.005(20) + 0.01454(2501 + 36.4) = 57.0 \text{ kJ/kg dry air}$$
**Latent Cooling Load (2→3):**
$$Q_{latent} = h_2 - h_3 = 61.4 - 57.0 = \boxed{4.4 \text{ kJ/kg}}$$
---
## **Total Cooling Summary**
| Parameter | Value | Unit |
|-----------|-------|------|
| **Total Enthalpy Change** | **14.2** | kJ/kg |
| Sensible Cooling | 9.8 | kJ/kg (69%) |
| Latent Cooling | 4.4 | kJ/kg (31%) |
| **Dehumidification** | **0.015** | kg/kg (15 g/kg) |
---
## Python Code Implementation
```python
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import fsolve
# ===== PSYCHROMETRIC FUNCTIONS =====
def saturation_pressure(T_db):
"""Magnus formula for saturation pressure (Pa)"""
return 611.2 * np.exp(17.62 * T_db / (T_db + 243.12))
def humidity_ratio_from_RH(T_db, RH, P_atm=101325):
"""Calculate W from dry bulb and relative humidity"""
Psat = saturation_pressure(T_db)
Pv = RH * Psat
return 0.622 * Pv / (P_atm - Pv)
def saturation_humidity_ratio(T_db):
"""Humidity ratio at 100% RH"""
return humidity_ratio_from_RH(T_db, 1.0)
def enthalpy(T_db, W):
"""Specific enthalpy (kJ/kg dry air)"""
return 1.005 * T_db + W * (2501 + 1.82 * T_db)
def find_saturation_temperature(W_target):
"""Find temperature where W becomes saturated"""
def equation(T):
return saturation_humidity_ratio(T) - W_target
return fsolve(equation, 20)[0]
# ===== STATE CALCULATIONS =====
# STATE 1: Initial
T1 = 30
RH1 = 0.60
W1 = humidity_ratio_from_RH(T1, RH1)
h1 = enthalpy(T1, W1)
print("STATE 1 (Initial):")
print(f" Temperature: {T1}°C")
print(f" Humidity Ratio: {W1:.5f} kg/kg ({W1*1000:.2f} g/kg)")
print(f" Enthalpy: {h1:.2f} kJ/kg\n")
# STATE 2: Saturation point (constant W)
T2 = find_saturation_temperature(W1)
h2 = enthalpy(T2, W1)
Q_sensible = h1 - h2
print("STATE 2 (Saturation at constant W):")
print(f" Temperature: {T2:.2f}°C")
print(f" Humidity Ratio: {W1:.5f} kg/kg (unchanged)")
print(f" Enthalpy: {h2:.2f} kJ/kg")
print(f" >>> Sensible Cooling = {Q_sensible:.2f} kJ/kg\n")
# STATE 3: Final at 20°C saturated
T3 = 20
W3 = saturation_humidity_ratio(T3)
h3 = enthalpy(T3, W3)
Q_latent = h2 - h3
Q_total = h1 - h3
print("STATE 3 (Final at 20°C saturated):")
print(f" Temperature: {T3}°C")
print(f" Humidity Ratio: {W3:.5f} kg/kg ({W3*1000:.2f} g/kg)")
print(f" Enthalpy: {h3:.2f} kJ/kg")
print(f" >>> Latent Cooling = {Q_latent:.2f} kJ/kg")
print(f" >>> Total Cooling = {Q_total:.2f} kJ/kg\n")
print("="*60)
print(f"SUMMARY - Cooling from 30°C@60% RH to 20°C")
print("="*60)
print(f"Sensible Heat: {Q_sensible:.2f} kJ/kg ({Q_sensible/Q_total*100:.1f}%)")
print(f"Latent Heat: {Q_latent:.2f} kJ/kg ({Q_latent/Q_total*100:.1f}%)")
print(f"TOTAL: {Q_total:.2f} kJ/kg")
print(f"Dehumidification: {(W1-W3)*1000:.2f} g/kg")
print("="*60)
# ===== PSYCHROMETRIC CHART PLOTTING =====
fig, ax = plt.subplots(figsize=(14, 10))
# Temperature range
T_range = np.arange(5, 51, 1)
# Plot saturation curve (100% RH)
W_sat = np.array([saturation_humidity_ratio(T) for T in T_range])
ax.plot(T_range, W_sat*1000, 'b-', linewidth=2.5, label='Saturation Curve (100% RH)')
# Plot relative humidity lines
RH_values = [0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
for RH_val in RH_values:
W_line = np.array([humidity_ratio_from_RH(T, RH_val) for T in T_range])
ax.plot(T_range, W_line*1000, 'gray', linewidth=0.7, alpha=0.5, linestyle=':')
# Label
idx = 30
ax.text(T_range[idx], W_line[idx]*1000, f' {int(RH_val*100)}%',
fontsize=8, color='gray', alpha=0.6)
# Plot constant humidity ratio lines
W_const = np.arange(0.002, 0.022, 0.002)
for W_val in W_const:
T_sat_val = find_saturation_temperature(W_val)
T_plot = np.linspace(0, T_sat_val, 20)
ax.plot(T_plot, np.ones_like(T_plot)*W_val*1000, 'gray',
linewidth=0.5, alpha=0.3, linestyle='--')
# === PLOT COOLING PROCESS ===
# 1→2: Sensible cooling (constant W, moving left)
T_12 = np.array([T1, T2])
W_12 = np.array([W1, W1]) * 1000
ax.plot(T_12, W_12, 'r-o', linewidth=3, markersize=10, label='1→2: Sensible Cooling', zorder=5)
# 2→3: Latent cooling (saturated curve, moving down)
T_23 = np.linspace(T2, T3, 15)
W_23 = np.array([saturation_humidity_ratio(T) for T in T_23]) * 1000
ax.plot(T_23, W_23, 'orange', linewidth=3, marker='s', markersize=8,
label='2→3: Latent Cooling (saturated)', zorder=5, markevery=2)
# Mark state points
ax.plot(T1, W1*1000, 'ro', markersize=15, zorder=10)
ax.plot(T2, W1*1000, 'go', markersize=15, zorder=10)
ax.plot(T3, W3*1000, 'bo', markersize=15, zorder=10)
# Add annotations
offsets = [(2, 0.8), (-5, 0.8), (-6, -0.8)]
colors = ['red', 'green', 'blue']
states = [
f'State 1\n{T1}°C, {RH1*100:.0f}% RH\nW = {W1*1000:.2f} g/kg\nh = {h1:.1f} kJ/kg',
f'State 2\n{T2:.1f}°C, 100% RH\nW = {W1*1000:.2f} g/kg\nh = {h2:.1f} kJ/kg',
f'State 3\n{T3}°C, 100% RH\nW = {W3*1000:.2f} g/kg\nh = {h3:.1f} kJ/kg'
]
positions = [(T1, W1*1000), (T2, W1*1000), (T3, W3*1000)]
for i, (pos, state, color, offset) in enumerate(zip(positions, states, colors, offsets)):
ax.annotate(state, xy=pos, xytext=(pos[0]+offset[0], pos[1]+offset[1]),
fontsize=9, fontweight='bold', color=color,
bbox=dict(boxstyle='round,pad=0.6', facecolor='lightyellow',
edgecolor=color, linewidth=2, alpha=0.9),
arrowprops=dict(arrowstyle='->', color=color, lw=2))
# Formatting
ax.set_xlabel('Dry Bulb Temperature (°C)', fontsize=13, fontweight='bold')
ax.set_ylabel('Humidity Ratio W (g/kg dry air)', fontsize=13, fontweight='bold')
ax.set_title('HVAC Psychrometric Cooling Process\n30°C @ 60% RH → 20°C (Saturated)',
fontsize=14, fontweight='bold', pad=20)
ax.grid(True, alpha=0.3, linestyle='--')
ax.legend(loc='upper left', fontsize=11, framealpha=0.95, edgecolor='black')
ax.set_xlim(5, 45)
ax.set_ylim(0, 22)
# Add energy load box
load_text = f'''COOLING LOADS:
━━━━━━━━━━━━━━━━
Sensible: {Q_sensible:.2f} kJ/kg (69%)
Latent: {Q_latent:.2f} kJ/kg (31%)
━━━━━━━━━━━━━━━━
TOTAL: {Q_total:.2f} kJ/kg
Dehumidification:
ΔW = {(W1-W3)*1000:.2f} g/kg
'''
ax.text(0.98, 0.05, load_text, transform=ax.transAxes,
fontsize=11, verticalalignment='bottom', horizontalalignment='right',
bbox=dict(boxstyle='round', facecolor='wheat', alpha=0.95, linewidth=2),
family='monospace', fontweight='bold')
plt.tight_layout()
plt.savefig('HVAC_Psychrometric_Cooling.png', dpi=300, bbox_inches='tight')
plt.show()
Practical HVAC Load Calculation (Example)
For a system with 0.5 m³/s volumetric flow rate:
# Air properties at inlet
V_flow = 0.5 # m³/s
rho_inlet = 1.195 # kg/m³ at 30°C, 60% RH
m_dry = V_flow * rho_inlet / (1 + W1) # dry air mass flow
# Cooling loads (kW)
Q_sensible_kW = m_dry * Q_sensible / 1000
Q_latent_kW = m_dry * Q_latent / 1000
Q_total_kW = m_dry * Q_total / 1000
# Dehumidification rate
dehumid_rate = m_dry * (W1 - W3) # kg/s
print(f"Volumetric Flow: {V_flow} m³/s ({V_flow*3600:.0f} m³/h)")
print(f"Dry Air Mass Flow: {m_dry:.3f} kg/s")
print(f"\nCooling Loads:")
print(f" Sensible: {Q_sensible_kW:.2f} kW")
print(f" Latent: {Q_latent_kW:.2f} kW")
print(f" Total: {Q_total_kW:.2f} kW ({Q_total_kW*3.412:.0f} BTU/h)")
print(f"\nDehumidification: {dehumid_rate*1000:.2f} g/s = {dehumid_rate*3600:.2f} kg/h")
Key Results
| Process Step | Temperature | RH | W (g/kg) | h (kJ/kg) |
|---|
| 1: Initial | 30.0°C | 60% | 16.04 | 71.2 |
| 2: At Saturation | 20.6°C | 100% | 16.04 | 61.4 |
| 3: Final | 20.0°C | 100% | 14.54 | 57.0 |
Energy Balance: 71.2 → 61.4 → 57.0 kJ/kg ✓