Closed-System Energy Analysis
Closed-system analysis applies the first law to a fixed mass. The system may expand, compress, heat, cool, accelerate, or change elevation, but no mass crosses the boundary. This is the natural model for piston-cylinder devices, rigid tanks, sealed containers, solids and liquids being heated, and many transient steps before a valve opens.
The most distinctive closed-system term is moving boundary work. In a quasi-equilibrium piston-cylinder process, the work is the area under the - curve. That geometric interpretation is simple, but it makes the answer path dependent: the same initial and final states can require different amounts of work if the pressure-volume path is different.
Definitions
- A closed system or control mass contains a fixed quantity of matter. Energy may cross the boundary as heat or work, but mass does not.
- Moving boundary work is work associated with expansion or compression of a boundary: for a quasi-equilibrium process.
- Expansion work is positive when the system does work on the surroundings under the convention . Compression work is negative by the same convention.
- A polytropic process satisfies for constants and . Many gas compression and expansion processes are approximated this way.
- Specific heat at constant volume is for a gas. Specific heat at constant pressure is .
- For an ideal gas, internal energy is a function of temperature only, , and enthalpy is also a function of temperature only, .
- For incompressible solids and liquids, and . Enthalpy changes may include a pressure-volume term, but for many liquids .
- A constant-volume process has because . A rigid tank can still have heat transfer, electrical work, shaft work, or changes in internal energy.
- A constant-pressure process has when the pressure is uniform and the process is quasi-equilibrium.
The modeling habit is to write the most complete closed-system balance first, then remove terms only after explaining why they are negligible. For a stationary piston-cylinder without electrical or shaft work, the usual simplified form is . For a rigid tank it becomes . For this topic, a complete engineering model should state the boundary, the time basis, the property model, and the sign convention before any numbers are substituted. In closed-system energy analysis, that habit is especially important because several formulas look similar while answering different physical questions. A closed-system expression, a steady-flow expression, an ideal-gas relation, and a property-table interpolation may all contain pressure, temperature, or enthalpy, but they do not have the same assumptions. The safest workflow is to write the general balance or defining relation first, cancel terms with a written reason, and only then insert table values or constants.
The second modeling habit is to keep the basis visible. Some calculations are per unit mass, some per mole, some per kg dry air, and some per unit time. A correct formula on the wrong basis is a common source of errors that look numerically plausible. When a table gives , multiply by to get ; when a reaction is balanced in kmol, convert to mass only after the element balance is complete; when a mixture property uses mole fraction, do not substitute mass fraction without conversion.
Key results
The closed-system first law is
For simple compressible quasi-equilibrium boundary work,
Important special cases are
For ideal gases with constant specific heats,
The ratio appears in isentropic and power-cycle formulas. Constant specific heats are convenient but approximate; at high temperatures, variable-specific-heat tables or polynomial fits should be used.
For liquids and solids,
Because liquids are nearly incompressible, boundary work is often much smaller than heat transfer unless very large pressures or volumes are involved. Still, the sign and units of must be checked carefully. These results should be read as a hierarchy rather than a list of isolated equations. Conservation of mass and energy set the allowed accounting; property relations supply the missing state data; the second law or equilibrium criterion decides direction, limits, and losses. A numerical answer is not finished until it passes three checks: the units reduce to the requested quantity, the sign matches the stated energy or entropy transfer direction, and the magnitude is reasonable compared with a limiting case. Useful limiting cases include zero heat transfer, reversible operation, incompressible behavior, ideal-gas behavior, saturated-liquid or saturated-vapor endpoints, and equal reservoir temperatures.
Because the textbook often moves between exact laws and engineering approximations, the approximation should be named in the solution. Examples include constant specific heats, negligible kinetic energy, negligible pump work, adiabatic devices, isentropic turbomachinery, ideal-gas mixtures, dry-air approximations, and linear interpolation. Naming the approximation makes later refinement straightforward: replace the approximate property model or restore the neglected term without rebuilding the whole analysis.
Visual
ASCII - interpretation of boundary work:
P
| 1 *
| /|
| / | area under curve = boundary work
| / |
| * 2 |
|__________|____________ V
V2 V1
| Process model | Constraint | Boundary work |
|---|---|---|
| Constant volume | ||
| Constant pressure | ||
| Isothermal ideal gas | ||
| Polytropic |
Worked example 1: polytropic compression work
Problem. A gas in a piston-cylinder is compressed quasi-equilibrium from , to , along . Find and the boundary work by the gas.
Method.
- Use the polytropic relation:
- Substitute:
- Use the polytropic work formula:
- Since ,
Checked answer. The boundary work by the gas is , meaning of work is done on the gas during compression.
Worked example 2: rigid-tank heating of air
Problem. A rigid tank contains of air initially at . Heat is added until the air reaches . Treat air as an ideal gas with constant . Find the heat transfer.
Method.
- The tank is rigid, so .
- The tank is stationary and has no other work mode, so and .
- For an ideal gas with constant specific heat:
- Substitute values:
Checked answer. Heat transfer into the tank is . Pressure rises during the process, but boundary work remains zero because volume is fixed.
Code
import math
def polytropic_exponent(P1, V1, P2, V2):
return math.log(P2 / P1) / math.log(V1 / V2)
def polytropic_work(P1, V1, P2, V2):
n = polytropic_exponent(P1, V1, P2, V2)
return (P2 * V2 - P1 * V1) / (1.0 - n)
def rigid_tank_heat(m, cv, T1, T2):
return m * cv * (T2 - T1)
print(polytropic_exponent(100, 0.100, 500, 0.030))
print(polytropic_work(100, 0.100, 500, 0.030))
print(rigid_tank_heat(2.0, 0.718, 300, 500))
Common pitfalls
- Using for a non-quasi-equilibrium process without a meaningful system pressure path.
- Forgetting that compression work by the system is negative under the common engineering sign convention.
- Using instead of for ideal-gas internal-energy changes.
- Assuming a rigid tank has no energy transfer; it has no boundary work, but it may have heat or electrical work.
- Mixing total and specific quantities without multiplying or dividing by mass.
- Starting from a special-case equation before checking that its assumptions actually hold. Write the general balance or definition first, then reduce it.
- Leaving property-table values unlabeled. Record the substance, phase region, pressure or temperature row, interpolation fraction, and units so the result can be audited.
- Rounding intermediate states too aggressively. Keep extra digits through property lookup, quality calculation, and efficiency ratios, then round the final answer to justified precision.
- Skipping a limiting-case check. Test the result against reversible operation, zero pressure drop, saturated endpoints, ideal-gas behavior, or equal-temperature reservoirs when those limits are meaningful.
- Treating a numerical solver or chart as a substitute for physical reasoning. Software can return a precise-looking number even when the selected phase, reference state, or boundary model is wrong.
- Forgetting to state whether the reported answer is specific, total, or rate based.