Energy Balance for Unsteady Flow
General Energy Balance Equation
The general energy balance for any system undergoing any process is:
- = total energy entering the system
- = total energy leaving the system
- = change in total energy of the system
In steady-flow analysis, properties at any point in the control volume stay constant over time, so . Unsteady-flow processes break that assumption. The fluid properties at a fixed point inside the control volume do change with time, which means mass and energy can accumulate or deplete within the control volume. That's the entire reason this topic gets its own treatment.
Unsteady-Flow Energy Balance Equation
The rate form of the energy balance for an unsteady-flow control volume is:
where:
- = net rate of heat transfer into the CV
- = net rate of work input (excluding flow work, which is already wrapped into enthalpy)
- = mass flow rates at inlets and outlets
- = specific enthalpy
- = velocity
- = elevation
- = rate of change of energy stored within the control volume
The stored energy term includes internal, kinetic, and potential energy of the mass inside the CV:
In most textbook problems, the kinetic and potential energy changes of the mass inside the CV are negligible, so this simplifies to .
Integrated (Uniform-Flow) Form
Many unsteady-flow problems use the uniform-flow approximation: the state of the fluid at each inlet and outlet is assumed uniform and constant over the entire process duration, even though conditions inside the CV change. Under this assumption you can integrate the rate equation over the time interval from state 1 to state 2:
- = total mass that entered or exited during the process
- = mass inside the CV at the initial and final states
- = specific internal energy of the CV contents at the initial and final states
This integrated form is the one you'll use most often for problems like filling a tank or discharging a vessel.

Mass Balance (Conservation of Mass)
Mass accumulation or depletion happens whenever the incoming and outgoing mass flow rates don't match. The rate form is:
Integrated over the process duration:
This equation is solved alongside the energy balance. You typically need both to close the problem.
Work in Unsteady Flow
Flow Work vs. Shaft Work
Work in unsteady-flow processes has two components:
- Flow work ( work): the work required to push mass into or out of the control volume. This is already accounted for when you use enthalpy () in the energy balance, so you don't add it separately.
- Shaft work (): work associated with rotating machinery like turbines, compressors, and pumps. This is what represents in the energy balance once flow work has been absorbed into the enthalpy terms.
A common mistake is to double-count flow work by including both terms and enthalpy in the same equation. If you're using for the flow streams, the flow work is already in there.

Boundary Work
For some unsteady-flow problems the CV boundary itself moves (e.g., a piston-cylinder device with an open valve). In that case, boundary work also appears in . Be clear about whether your control volume has a fixed or moving boundary before writing the energy balance.
Energy Analysis of Unsteady Systems
Problem-Solving Steps
-
Sketch the system and define the control volume. Identify all inlets, outlets, and whether the CV boundary is fixed or moving.
-
Identify the initial and final states. List known properties () for the CV contents at states 1 and 2, and for each inlet/outlet stream.
-
Write the mass balance. Use to relate the unknown masses.
-
Write the energy balance. Use the integrated (uniform-flow) form. Decide which terms are negligible:
- Kinetic and potential energy changes are usually dropped unless the problem states high velocities or large elevation differences.
- If the process is adiabatic, set . If there's no shaft, set .
-
Look up or calculate properties. Use steam tables, ideal-gas relations, or other property data to find at each state.
-
Solve the system of equations. You typically have two equations (mass and energy) and two unknowns.
-
Check units and signs. Heat in and work in are positive on the left side of the balance as written above. Make sure your sign convention is consistent.
Common Unsteady-Flow Scenarios
- Filling a rigid tank (charging): No outlet, no shaft work, CV volume is constant. The energy balance simplifies significantly because may be zero (initially evacuated) and .
- Discharging a pressurized vessel: No inlet. Mass and energy inside the CV decrease over time.
- Filling or draining a piston-cylinder device: The boundary moves, so boundary work appears. The pressure inside may stay constant if the piston is loaded by a fixed weight.
For an initially evacuated, rigid, insulated tank being filled from a supply line, the energy balance reduces to . This result shows the final internal energy of the tank contents equals the inlet enthalpy, not the inlet internal energy, because flow work is done pushing mass into the tank.
That last point trips up a lot of students. The supply line fluid carries its flow work () with it, so you must use , not , for the incoming stream.