Applied Thermodynamics: Energy Analysis of Closed Systems

Analysis of Energy in Closed Systems and Moving Boundary Work

Moving boundary work is a fundamental form of mechanical work commonly encountered in technical practice, specifically related to the expansion or compression of a gas within a cylinder-piston device. During this process, the internal face of the piston acts as a moving boundary that oscillates. Consequently, this work is formally identified as moving boundary work or simply boundary work (WbW_b). In a typical starting state, a gas exerts an initial pressure PP within a total volume VV, where the piston has a cross-sectional area AA. If the piston is allowed to move a differential distance dsds while maintaining a state of quasi-equilibrium, the differential work performed is defined as δWb=Fds=PAds=PdV\delta W_b = F \, ds = P A \, ds = P \, dV.

The total boundary work performed during a complete process as the piston moves from an initial state to a final state is obtained by summing (integrating) the differential work increments: Wb=12PdVW_b = \int_1^2 P \, dV. This integral can only be evaluated if the functional relationship between pressure and volume during the process is known, meaning the function P=f(V)P = f(V) must be available. Historically and conceptually, the area under the process curve on a PVP-V diagram represents the total boundary work. It is essential to recognize that boundary work is a path-dependent function, meaning it depends on the specific path followed as well as the initial and final states. For a system undergoing a cycle, the net work is the difference between the work done by the system and the work done on the system.

Boundary Work in Specific Thermodynamic Processes

For a process occurring at a constant volume (isochoric process), such as in a rigid container, the boundary work is always zero. This is mathematically evident because a rigid container does not allow for a change in volume (dV=0dV = 0), leading to an integral value of zero regardless of changes in pressure or temperature. For example, if a rigid container holds air at 500kPa500\,kPa and 150C150^\circ C and cools to 400kPa400\,kPa and 65C65^\circ C, no boundary work is performed.

In a constant pressure (isobaric) process, the boundary work is calculated as Wb=P0(V2V1)W_b = P_0(V_2 - V_1). Since total volume can be expressed as mass times specific volume (V=mvV = m v), the work can also be calculated as Wb=mP0(v2v1)W_b = m P_0(v_2 - v_1). An example of this is a friction-less cylinder-piston device containing 10lbm10\,lbm of steam at 60psia60\,psia and 320F320^\circ F that is heated to 400F400^\circ F. In this scenario, the pressure remains constant because the atmospheric pressure and piston weight are constant. Using superheated steam tables (Table A-6E), specific volumes are identified (v1=7.4863ft3/lbmv_1 = 7.4863\,ft^3/lbm and v2=8.3548ft3/lbmv_2 = 8.3548\,ft^3/lbm) to solve for the work.

For the isothermal compression or expansion of an ideal gas, the temperature remains constant (T0T_0). Based on the ideal gas law (PV=mRT0PV = mRT_0), the pressure can be expressed as P=mRT0VP = \frac{mRT_0}{V}. Integrating this yields Wb=P1V1ln(V2V1)W_b = P_1 V_1 \ln\left(\frac{V_2}{V_1}\right). Consider a device containing 0.4m30.4\,m^3 of air at 100kPa100\,kPa and 80C80^\circ C compressed to 0.1m30.1\,m^3. Assuming quasi-equilibrium and ideal gas behavior, the work is calculated using the logarithmic relationship of the volume limits or the pressure ratio (P1P2\frac{P_1}{P_2}) since P1V1=P2V2P_1 V_1 = P_2 V_2.

Polytropic Processes and Complex Boundary Work Scenarios

Real-world expansion and compression processes often follow a relationship where pressure and volume are related by the equation PVn=CPV^n = C, where nn and CC are constants. This is known as a polytropic process. The pressure is expressed as P=CVnP = C V^{-n}, where C=P1V1n=P2V2nC = P_1 V_1^n = P_2 V_2^n. Substituting this into the boundary work integral results in Wb=P2V2P1V11nW_b = \frac{P_2 V_2 - P_1 V_1}{1 - n} for n1n \neq 1. For an ideal gas, this becomes Wb=mR(T2T1)1nW_b = \frac{mR(T_2 - T_1)}{1 - n}. In the special case where n=1n = 1, the process becomes isothermal and follows the logarithmic work formula.

A more complex scenario involves the expansion of an ideal gas against a linear spring. Consider a device with 0.05m30.05\,m^3 of gas at 200kPa200\,kPa where a spring (constant k=150kN/mk = 150\,kN/m) just touches the piston. If heat is added until the volume doubles (V2=0.1m3V_2 = 0.1\,m^3) and the piston area is 0.25m20.25\,m^2, the piston displacement is Δx=V2V1A=0.05m30.25m2=0.2m\Delta x = \frac{V_2 - V_1}{A} = \frac{0.05\,m^3}{0.25\,m^2} = 0.2\,m. The final spring force is F=kx=(150kN/m)(0.2m)=30kNF = kx = (150\,kN/m)(0.2\,m) = 30\,kN. This adds a pressure of Pspring=FA=30kN0.25m2=120kPaP_{spring} = \frac{F}{A} = \frac{30\,kN}{0.25\,m^2} = 120\,kPa. The final pressure is thus P1+Pspring=320kPaP_1 + P_{spring} = 320\,kPa. The total work is the area of the trapezoid on the PVP-V diagram: Wtotal=P1+P22(V2V1)=13kJW_{total} = \frac{P_1 + P_2}{2}(V_2 - V_1) = 13\,kJ. Here, the work done against the atmosphere/piston (rectangular region I) is 10kJ10\,kJ, and the work against the spring (triangular region II) is 3kJ3\,kJ.

Energy Balance for Closed Systems

The conservation of energy principle for a closed system is expressed as EinEout=ΔEsystemE_{in} - E_{out} = \Delta E_{system}. In rate form, this is E˙inE˙out=dEsystemdt\dot{E}_{in} - \dot{E}_{out} = \frac{dE_{system}}{dt}. For a stationary process over a time interval Δt\Delta t, total quantities are Q=Q˙ΔtQ = \dot{Q} \, \Delta t and W=W˙ΔtW = \dot{W} \, \Delta t. On a per-unit-mass basis, it is expressed as eineout=Δesysteme_{in} - e_{out} = \Delta e_{system}. For a system undergoing a cycle, the change in energy is zero (ΔE=0\Delta E = 0), which implies Q=WQ = W (net heat equals net work).

The energy balance for a general closed system is often written as Qnet,inWnet,out=ΔEQ_{net,in} - W_{net,out} = \Delta E. For processes involving constant pressure, moving boundary work (WbW_b) and the change in internal energy (ΔU\Delta U) can be combined into a single term: Enthalpy (HH). The balance becomes QWother=ΔHQ - W_{other} = \Delta H, where WotherW_{other} includes electrical or shaft work. For example, if 25g25\,g of saturated water vapor at 300kPa300\,kPa is heated by a resistance (source: 120V120\,V, current: 0.2A0.2\,A, time: 5min5\,min) while losing 3.7kJ3.7\,kJ of heat, the final temperature is found by calculating the electrical work We=VIΔtW_e = V I \, \Delta t and using the enthalpy relation QWe=m(h2h1)Q - W_e = m(h_2 - h_1). Based on initial saturated state properties and final enthalpy, the final temperature is determined to be 200C200^\circ C.

Unrestricted Expansion and Vacuum Interactions

In an unrestricted expansion (also known as expansion into a vacuum), a rigid container divided by a partition has one side with substance (e.g., 5kg5\,kg of water at 200kPa200\,kPa, 25C25^\circ C) and the other side at vacuum. When the partition is removed, the water expands. Even though the water moves, the boundary of the system (the rigid tank walls) is fixed, meaning Wb=0W_b = 0. In this scenario, the energy balance simplifies to Q=m(u2u1)Q = m(u_2 - u_1). In a specific example where the volume doubles and the final temperature returns to 25C25^\circ C, the water ends as a saturated mixture. Because the initial internal energy (u1uf@25C=104.83kJ/kgu_1 \approx u_f@25^\circ C = 104.83\,kJ/kg) and final internal energy (u2104.88kJ/kgu_2 \approx 104.88\,kJ/kg) are very close, the net heat transfer is minimal (calculated as 0.25kJ0.25\,kJ).

Specific Heats: CvC_v and CpC_p

Specific heat is the energy required to raise the temperature of a unit mass of a substance by one degree. Two types are critical: specific heat at constant volume (CvC_v) and specific heat at constant pressure (CpC_p). Formally, Cv=(uT)vC_v = \left(\frac{\partial u}{\partial T}\right)_v and Cp=(hT)pC_p = \left(\frac{\partial h}{\partial T}\right)_p. For example, Helium requires different energy inputs depending on whether the volume or pressure is held constant. Specific heat is a measure of a substance's energy storage capacity and varies based on how the process is executed.

Internal Energy, Enthalpy, and Specific Heats of Ideal Gases

For an ideal gas (Pv=RTPv = RT), internal energy (uu) is a function of temperature only (u=f(T)u = f(T)), as demonstrated by Joule in 18431843. Consequently, enthalpy (h=u+Pv=u+RTh = u + Pv = u + RT) is also purely temperature-dependent. Changes in these properties are expressed as du=Cv(T)dTdu = C_v(T) \, dT and dh=Cp(T)dTdh = C_p(T) \, dT. To find the change between states, one must integrate these relations: Δu=12Cv(T)dT\Delta u = \int_1^2 C_v(T) \, dT and Δh=12Cp(T)dT\Delta h = \int_1^2 C_p(T) \, dT.

There are three ways to determine these changes:

  1. Using tabulated data (e.g., Table A-17 for air), which is the most accurate and simple method.

  2. Integrating specific heat as a function of temperature (usually a polynomial: Cp=a+bT+cT2+dT3C_p = a + bT + cT^2 + dT^3), which is precise for computer calculations.

  3. Using average specific heat values (Cv,avgC_{v,avg} or Cp,avgC_{p,avg}) at the average temperature Tavg=T1+T22T_{avg} = \frac{T_1 + T_2}{2}, which is convenient for small temperature ranges.

A vital relationship for ideal gases is CpCv=RC_p - C_v = R. If expressed on a molar basis, the universal gas constant RuR_u is used (CpCv=Ru\overline{C_p} - \overline{C_v} = R_u). The ratio of specific heats is defined as k=CpCvk = \frac{C_p}{C_v}.

Thermal Analysis of Stationary Systems

Consider an insulated rigid container with 1.5lbm1.5\,lbm of Helium at 80F80^\circ F and 50psia50\,psia. A paddle wheel (power input 0.02hp0.02\,hp) operates for 30min30\,min. Since the container is rigid and insulated, Wb=0W_b = 0 and Q=0Q = 0. The energy balance is Wshaft,in=ΔU=mCv(T2T1)-W_{shaft,in} = \Delta U = m C_v(T_2 - T_1). For Helium, a monatomic gas, specific heat is constant (Cv=0.753Btu/lbmFC_v = 0.753\,Btu/lbm \cdot ^\circ F). By calculating the shaft work input in BtuBtu, the final temperature and subsequent final pressure (via the ideal gas law constant volume ratio) can be determined.

In another example, 0.5m30.5\,m^3 of Nitrogen at 400kPa400\,kPa and 27C27^\circ C is heated by an electrical resistor (2A2\,A, 120V120\,V, 5min5\,min) while expanding at constant pressure and losing 2800J2800\,J of heat. Here, the energy balance We,inQout=ΔH=mCp(T2T1)W_{e,in} - Q_{out} = \Delta H = m C_p(T_2 - T_1) is used. Nitrogen is treated as an ideal gas with Cp=1.039kJ/kgKC_p = 1.039\,kJ/kg \cdot K at room temperature. The mass is found using m=P1V1RT1m = \frac{P_1 V_1}{RT_1}, and the final temperature is solved as 56.7C56.7^\circ C.

Internal Energy, Enthalpy, and Specific Heats of Solids and Liquids

Substances with constant specific volume or density are called incompressible substances. For solids and liquids, the specific volume remains essentially constant during processes, which implies that Cp=Cv=CC_p = C_v = C. The energy changes are defined as du=C(T)dT    ΔuCavgΔTdu = C(T) \, dT \implies \Delta u \approx C_{avg} \Delta T.

Enthalpy changes for incompressible substances use the differential form dh=du+vdP+Pdvdh = du + v \, dP + P \, dv. Since dv=0dv = 0, this becomes dh=du+vdPdh = du + v \, dP.

  1. For solids, vΔPv \, \Delta P is negligible, so ΔhΔuCavgΔT\Delta h \approx \Delta u \approx C_{avg} \Delta T.

  2. For liquids at constant pressure (ΔP=0\Delta P = 0), Δh=ΔuCavgΔT\Delta h = \Delta u \approx C_{avg} \Delta T.

  3. For liquids at constant temperature (ΔT=0\Delta T = 0), such as in pumps, Δh=vΔP\Delta h = v \, \Delta P.

The enthalpy of a compressed liquid can be approximated using the saturated liquid property at the same temperature plus a correction factor for pressure: h(P,T)hf@T+vf@T(PPsat@T)h_{(P,T)} \approx h_{f@T} + v_{f@T}(P - P_{sat@T}). At 100C100^\circ C and 15MPa15\,MPa, a saturated liquid approximation yields 419.17kJ/kg419.17\,kJ/kg (a 2.6%2.6\% error), while the corrected formula yields 434.07kJ/kg434.07\,kJ/kg, which is closer to the exact table value of 430.39kJ/kg430.39\,kJ/kg.

Thermal Equilibrium and Heat Transfer in Mixed Systems

When a 50kg50\,kg iron block at 80C80^\circ C is submerged in an insulated tank of 0.5m30.5\,m^3 of liquid water at 25C25^\circ C, the system reaches thermal equilibrium. For such a stationary and insulated system (Q=0,W=0Q=0, W=0), the total change in internal energy is zero (ΔUtotal=0\Delta U_{total} = 0). This is the sum of the internal energy changes of the components: ΔUiron+ΔUwater=0\Delta U_{iron} + \Delta U_{water} = 0. This expands to [mC(TfT1)]iron+[mC(TfT1)]water=0[m C(T_f - T_1)]_{iron} + [m C(T_f - T_1)]_{water} = 0. Given the mass of water is 500kg500\,kg (using vwater0.001m3/kgv_{water} \approx 0.001\,m^3/kg) and specific heats (Ciron=0.45kJ/kgCC_{iron} = 0.45\,kJ/kg \cdot ^\circ C; Cwater=4.18kJ/kgCC_{water} = 4.18\,kJ/kg \cdot ^\circ C), the final equilibrium temperature can be solved.

Questions & Discussion

Is it possible to reach the same conclusions regarding the unrestricted expansion if the water alone is chosen as the system? Yes, it is possible. However, if only the water is considered the system, the boundaries become moving boundaries during the expansion. In that case, you must account for the moving boundary work performed by the water. However, since the water expands into a vacuum, there is no external pressure resisting this expansion (Pext=0P_{ext} = 0), meaning the work performed against the surroundings is still zero (W=PextdV=0W = \int P_{ext} \, dV = 0). Thus, the energy balance result remains identical (Q=ΔUQ = \Delta U).