PracticeVideosBlogFlashcards

2.3 Unsteady-State Mass and Energy Balances

Key Takeaways

  • The fundamental macroscopic unsteady balance equation states: Rate of Accumulation = Rate of Inflow - Rate of Outflow + Rate of Generation - Rate of Consumption.

  • In transient First Law energy balances, the rate of energy accumulation within the control volume is governed by internal energy, d(U_sys)/dt = d(m * u_hat)/dt, whereas streams crossing system boundaries transport flowing enthalpy, h_hat = u_hat + P * v_hat, carrying flow work.

  • For constant-mass, well-mixed liquid heating and cooling systems without phase change, thermal response follows first-order exponential dynamics: T(t) = T_env - (T_env - T_0) * exp(-t / τ_th), where the thermal time constant is τ_th = (m * C_p) / (U * A).

  • Adiabatic filling of an initially evacuated rigid tank with an ideal gas increases the internal gas temperature to T_final = γ * T_supply (where γ = C_p / C_v), driven entirely by the conversion of flowing enthalpy into stored internal energy.

  • In gravity draining of tanks through sharp-edged orifices, discharge velocity depends non-linearly on the instantaneous liquid head (Torricelli's Law: v = C_d * sqrt(2gh)), requiring direct separation and integration of h^(-1/2) dh rather than assuming constant flow or linear decay.

Last updated: September 2026

Unsteady-State Mass and Energy Balances

While steady-state operations dominate bulk continuous chemical manufacturing, unsteady-state (transient) processes are ubiquitous during plant startups, emergency shutdowns, batch reactor cycles, tank draining, vessel blowdowns, and process control upsets. On the NCEES PE Chemical exam, transient questions test your ability to formulate differential balance equations, separate variables, and integrate using proper boundary conditions.


1. General Macroscopic Conservation Balance

For any conserved physical quantity Ψ\Psi (mass, component mass, or energy) within a defined spatial control volume:

dΨsysdt=Ψ˙in−Ψ˙out+Ψ˙gen−Ψ˙cons\frac{d\Psi_{sys}}{dt} = \dot{\Psi}_{in} - \dot{\Psi}_{out} + \dot{\Psi}_{gen} - \dot{\Psi}_{cons}

Transient Total Mass Balance

Because total mass cannot be created or destroyed (m˙gen=m˙cons=0\dot{m}_{gen} = \dot{m}_{cons} = 0):

dmsysdt=∑inm˙in−∑outm˙out\frac{dm_{sys}}{dt} = \sum_{in} \dot{m}_{in} - \sum_{out} \dot{m}_{out}

For an open liquid tank of constant surface area AA and constant liquid density ρ\rho, msys=ρAh(t)m_{sys} = \rho A h(t), where h(t)h(t) is liquid level:

ρAdhdt=∑m˙in−∑m˙out  ⟹  Adhdt=∑V˙in−∑V˙out\rho A \frac{dh}{dt} = \sum \dot{m}_{in} - \sum \dot{m}_{out} \implies A \frac{dh}{dt} = \sum \dot{V}_{in} - \sum \dot{V}_{out}

Transient Component (Species) Balance

For chemical species ii participating in reactions with volumetric rate rir_i (mol/(m3⋅s)\text{mol/(m}^3\cdot\text{s)}):

dnidt=∑inn˙i,in−∑outn˙i,out+riV\frac{d n_i}{dt} = \sum_{in} \dot{n}_{i,in} - \sum_{out} \dot{n}_{i,out} + r_i V

For a non-reactive, perfectly mixed continuous stirred tank of constant volume VV and volumetric throughput V˙\dot{V} (ni=VCi(t)n_i = V C_i(t) and Ci,out(t)=Ci(t)C_{i,out}(t) = C_i(t)):

VdCidt=V˙Ci,in−V˙Ci(t)V \frac{dC_i}{dt} = \dot{V} C_{i,in} - \dot{V} C_i(t)

Dividing by V˙\dot{V} defines the hydraulic residence time (time constant τ=V/V˙\tau = V / \dot{V}):

τdCidt+Ci(t)=Ci,in\tau \frac{dC_i}{dt} + C_i(t) = C_{i,in}

Integrating from initial concentration C0C_0 at t=0t = 0 with a step change in inlet concentration to CinC_{in} yields the classic first-order response:

Ci(t)=Cin+(C0−Cin)e−t/τ=Cin(1−e−t/τ)+C0e−t/τC_i(t) = C_{in} + (C_0 - C_{in}) e^{-t / \tau} = C_{in}\left(1 - e^{-t / \tau}\right) + C_0 e^{-t / \tau}

2. Transient First Law Energy Balances

The general First Law of Thermodynamics for an unsteady open system is:

dEsysdt=Q˙−W˙s+∑inm˙in(h^+u22+gz)in−∑outm˙out(h^+u22+gz)out\frac{d E_{sys}}{dt} = \dot{Q} - \dot{W}_s + \sum_{in} \dot{m}_{in} \left( \hat{h} + \frac{u^2}{2} + gz \right)_{in} - \sum_{out} \dot{m}_{out} \left( \hat{h} + \frac{u^2}{2} + gz \right)_{out}

Neglecting kinetic and potential energies, total system energy equals internal energy (Esys=Usys=msysu^sysE_{sys} = U_{sys} = m_{sys} \hat{u}_{sys}):

d(msysu^sys)dt=Q˙−W˙s+∑inm˙inh^in−∑outm˙outh^out\frac{d(m_{sys} \hat{u}_{sys})}{dt} = \dot{Q} - \dot{W}_s + \sum_{in} \dot{m}_{in} \hat{h}_{in} - \sum_{out} \dot{m}_{out} \hat{h}_{out}

The Fundamental Internal Energy vs. Enthalpy Asymmetry

Notice the profound thermodynamic distinction in the governing equation:

  • Inside the control volume, energy is stored as internal energy (u^\hat{u}).
  • Across the control surface boundaries, flowing streams transport enthalpy (h^=u^+Pv^\hat{h} = \hat{u} + P\hat{v}).

Why? Because fluid entering or exiting the boundary performs boundary work (flow work Pv^P\hat{v}) on or by the system fluid. Omitting this distinction is the single most pervasive source of error in transient thermodynamics.

Applying the product rule to the accumulation derivative:

d(mu^)dt=mdu^dt+u^dmdt\frac{d(m \hat{u})}{dt} = m \frac{d\hat{u}}{dt} + \hat{u} \frac{dm}{dt}

For liquids and solids, u^≈h^≈Cp(T−Tref)\hat{u} \approx \hat{h} \approx C_p(T - T_{ref}) because specific volume is small. For gases, u^=Cv(T−Tref)\hat{u} = C_v(T - T_{ref}) and h^=Cp(T−Tref)\hat{h} = C_p(T - T_{ref}).


3. Jacketed Batch and Semi-Batch Heating / Cooling

Consider a well-insulated, closed batch reactor of liquid mass mm and heat capacity CpC_p being heated by an external jacket maintained at constant temperature TjT_j:

m˙in=0,m˙out=0,W˙s≈0 (ignoring agitator friction)\dot{m}_{in} = 0, \quad \dot{m}_{out} = 0, \quad \dot{W}_s \approx 0 \text{ (ignoring agitator friction)} d(mu^)dt=mCpdTdt=Q˙\frac{d(m \hat{u})}{dt} = m C_p \frac{dT}{dt} = \dot{Q}

Heat transfer from the jacket follows Newton's Law of Cooling: Q˙=UA(Tj−T(t))\dot{Q} = U A (T_j - T(t)), where UU is the overall heat transfer coefficient and AA is heat transfer surface area:

mCpdTdt=UA(Tj−T(t))m C_p \frac{dT}{dt} = U A (T_j - T(t))

Rearranging into standard first-order differential form:

dTdt+UAmCpT(t)=UAmCpTj\frac{dT}{dt} + \frac{U A}{m C_p} T(t) = \frac{U A}{m C_p} T_j

Defining the thermal time constant:

τth=mCpUA\tau_{th} = \frac{m C_p}{U A}

Separating variables from t=0t = 0 (T=T0T = T_0) to time tt:

∫T0T(t)dTTj−T=1τth∫0tdt  ⟹  −ln⁡(Tj−T(t)Tj−T0)=tτth\int_{T_0}^{T(t)} \frac{dT}{T_j - T} = \frac{1}{\tau_{th}} \int_0^t dt \implies -\ln\left(\frac{T_j - T(t)}{T_j - T_0}\right) = \frac{t}{\tau_{th}}

Solving explicitly for vessel temperature T(t)T(t):

T(t)=Tj−(Tj−T0)exp⁡(−tτth)T(t) = T_j - (T_j - T_0) \exp\left(-\frac{t}{\tau_{th}}\right)

The time tt required to reach a specific process temperature T(t)T(t) is:

t=τthln⁡(Tj−T0Tj−T(t))=mCpUAln⁡(Tj−T0Tj−T(t))t = \tau_{th} \ln\left( \frac{T_j - T_0}{T_j - T(t)} \right) = \frac{m C_p}{U A} \ln\left( \frac{T_j - T_0}{T_j - T(t)} \right)

4. Gas Vessel Pressurization: The Evacuated Tank Paradox

Consider a rigid, thermally insulated tank of volume VV that is initially evacuated (m1=0m_1 = 0, P1=0P_1 = 0). A supply valve connected to a high-pressure header carrying an ideal gas at temperature T0T_0 is opened, filling the tank until flow stops. What is the final temperature T2T_2 in the tank?

Setting up the transient First Law balance:

  • Rigid tank: W˙s=0\dot{W}_s = 0
  • Insulated: Q˙=0\dot{Q} = 0
  • No exit stream: m˙out=0\dot{m}_{out} = 0
d(mu^)dt=m˙inh^in\frac{d(m \hat{u})}{dt} = \dot{m}_{in} \hat{h}_{in}

Integrating from initial state (m=0m=0) to final state (m2m_2):

m2u^2−0=Δminh^in=m2h^inm_2 \hat{u}_2 - 0 = \Delta m_{in} \hat{h}_{in} = m_2 \hat{h}_{in}

Dividing by m2m_2:

u^2=h^in\hat{u}_2 = \hat{h}_{in}

For an ideal gas referenced to absolute zero (Tref=0 KT_{ref} = 0\text{ K}), u^2=CvT2\hat{u}_2 = C_v T_2 and h^in=CpT0\hat{h}_{in} = C_p T_0:

CvT2=CpT0  ⟹  T2=CpCvT0=γT0C_v T_2 = C_p T_0 \implies T_2 = \frac{C_p}{C_v} T_0 = \gamma T_0

Where γ=Cp/Cv\gamma = C_p / C_v is the heat capacity ratio (1.401.40 for diatomic gases such as N2\text{N}_2, O2\text{O}_2, and air).

Key Insight: If room-temperature air at 25∘C25^\circ\text{C} (298.15 K298.15\text{ K}) fills an evacuated tank adiabatically, the final temperature inside the tank spikes to:

T2=1.40×298.15 K=417.4 K=144.3∘C!T_2 = 1.40 \times 298.15\text{ K} = 417.4\text{ K} = 144.3^\circ\text{C}!

The gas heats up drastically without any external heat addition because the incoming fluid carries flowing enthalpy Pv^P\hat{v} (work done by the supply header), which is converted entirely into internal thermal energy inside the rigid vessel.


5. Gravity Draining Hydraulics: Torricelli's Law

When a liquid-filled vertical cylindrical tank drains by gravity through an open bottom orifice of area AoA_o, the discharge velocity is non-linear and governed by Torricelli's Law:

νout(t)=Cd2gh(t)\nu_{out}(t) = C_d \sqrt{2 g h(t)}

Where CdC_d is the discharge coefficient (0.600.60 to 0.620.62 for sharp-edged orifices) and h(t)h(t) is instantaneous liquid head above the orifice.

Setting up the transient total mass balance (Adhdt=−V˙outA \frac{dh}{dt} = -\dot{V}_{out}):

Adhdt=−CdAo2ghA \frac{dh}{dt} = -C_d A_o \sqrt{2 g h}

Separating variables:

h−1/2dh=−CdAo2gAdth^{-1/2} dh = -\frac{C_d A_o \sqrt{2g}}{A} dt

Integrating from initial height h0h_0 at t=0t = 0 to height hfh_f at time tt:

∫h0hfh−1/2dh=2(hf−h0)=−CdAo2gAt\int_{h_0}^{h_f} h^{-1/2} dh = 2\left(\sqrt{h_f} - \sqrt{h_0}\right) = -\frac{C_d A_o \sqrt{2g}}{A} t

Solving for draining time tt:

t=2A(h0−hf)CdAo2gt = \frac{2 A \left( \sqrt{h_0} - \sqrt{h_f} \right)}{C_d A_o \sqrt{2g}}

To drain the tank completely to hf=0h_f = 0:

tempty=2Ah0CdAo2gt_{empty} = \frac{2 A \sqrt{h_0}}{C_d A_o \sqrt{2g}}

Notice that draining from h0h_0 to 00 takes exactly twice as long as it would if the initial discharge rate had remained constant!


6. Summary: Canonical Transient Balance Archetypes

System TypeGoverning Differential EquationAnalytical SolutionCharacteristic Time Constant
Continuous Dilution TankVdCdt=V˙(Cin−C)V \frac{dC}{dt} = \dot{V}(C_{in} - C)C(t)=Cin+(C0−Cin)e−t/τC(t) = C_{in} + (C_0 - C_{in})e^{-t/\tau}τ=VV˙\tau = \frac{V}{\dot{V}} (Hydraulic)
Batch Liquid HeatingmCpdTdt=UA(Tj−T)m C_p \frac{dT}{dt} = UA(T_j - T)T(t)=Tj−(Tj−T0)e−t/τthT(t) = T_j - (T_j - T_0)e^{-t/\tau_{th}}τth=mCpUA\tau_{th} = \frac{m C_p}{UA} (Thermal)
Evacuated Gas Fillingd(mu^)dt=m˙inh^in\frac{d(m \hat{u})}{dt} = \dot{m}_{in}\hat{h}_{in}Tfinal=γTsupplyT_{final} = \gamma T_{supply}Immediate upon pressure equalization
Torricelli Tank DrainingAdhdt=−CdAo2ghA \frac{dh}{dt} = -C_d A_o \sqrt{2gh}t=2A(h0−h)CdAo2gt = \frac{2A(\sqrt{h_0}-\sqrt{h})}{C_d A_o \sqrt{2g}}tempty=2Ah0CdAo2gt_{empty} = \frac{2A\sqrt{h_0}}{C_d A_o \sqrt{2g}}

7. Worked Numerical Example: Jacketed Polymerization Reactor Heating

Problem Statement

A batch chemical reactor holds m=2,500 kgm = 2,500\text{ kg} of a liquid monomer mixture (Cp=3.500 kJ/(kg⋅K)C_p = 3.500\text{ kJ/(kg}\cdot\text{K)}) at an initial temperature of T0=20.0∘CT_0 = 20.0^\circ\text{C}. To initiate polymerization, the charge must be preheated to T(t)=110.0∘CT(t) = 110.0^\circ\text{C}.

Heating is provided by condensing saturated steam inside a reactor jacket at Psat=0.3614 MPaP_{sat} = 0.3614\text{ MPa}, maintaining a constant inner wall temperature of Tj=140.0∘CT_j = 140.0^\circ\text{C}.

Vessel Specifications:

  • Effective heat transfer area: A=5.20 m2A = 5.20\text{ m}^2
  • Overall heat transfer coefficient: U=450.0 W/(m2⋅K)U = 450.0\text{ W/(m}^2\cdot\text{K)}
  • Latent heat of steam condensation at 140.0∘C140.0^\circ\text{C}: λvap=2,144.0 kJ/kg\lambda_{vap} = 2,144.0\text{ kJ/kg}

Calculate:

  1. The thermal time constant of the reactor system (τth\tau_{th}).
  2. The time required to reach the target temperature of 110.0∘C110.0^\circ\text{C} (in minutes).
  3. The total thermal energy transferred to the batch (MJ\text{MJ}).
  4. The total mass of steam condensed during the heat-up cycle (kg\text{kg}).

Step-by-Step Solution

Step 1: Calculate the Thermal Time Constant

τth=mCpUA\tau_{th} = \frac{m C_p}{U A}

Convert UU and CpC_p to consistent SI units:

  • mCp=(2,500 kg)×(3,500 J/(kg⋅K))=8,750,000 J/Km C_p = (2,500\text{ kg}) \times (3,500\text{ J/(kg}\cdot\text{K)}) = 8,750,000\text{ J/K}
  • UA=(450.0 W/(m2⋅K))×(5.20 m2)=2,340.0 W=2,340.0 J/s⋅KU A = (450.0\text{ W/(m}^2\cdot\text{K)}) \times (5.20\text{ m}^2) = 2,340.0\text{ W} = 2,340.0\text{ J/s}\cdot\text{K}
τth=8,750,000 J/K2,340.0 J/s⋅K=3,739.32 seconds\tau_{th} = \frac{8,750,000\text{ J/K}}{2,340.0\text{ J/s}\cdot\text{K}} = 3,739.32\text{ seconds}

In minutes: τth=3,739.32/60=62.32 minutes\tau_{th} = 3,739.32 / 60 = 62.32\text{ minutes}.

Step 2: Time to Reach 110.0∘C110.0^\circ\text{C}

Tj−T(t)Tj−T0=140.0−110.0140.0−20.0=30.0120.0=0.250\frac{T_j - T(t)}{T_j - T_0} = \frac{140.0 - 110.0}{140.0 - 20.0} = \frac{30.0}{120.0} = 0.250 t=τthln⁡(Tj−T0Tj−T(t))=3,739.32 s×ln⁡(10.250)=3,739.32×ln⁡(4.000)t = \tau_{th} \ln\left( \frac{T_j - T_0}{T_j - T(t)} \right) = 3,739.32\text{ s} \times \ln\left( \frac{1}{0.250} \right) = 3,739.32 \times \ln(4.000) t=3,739.32 s×1.38629=5,183.80 secondst = 3,739.32\text{ s} \times 1.38629 = 5,183.80\text{ seconds}

Converting to minutes:

t=5,183.80 s60 s/min=86.40 minutes≈1.44 hourst = \frac{5,183.80\text{ s}}{60\text{ s/min}} = 86.40\text{ minutes} \approx 1.44\text{ hours}

Step 3: Total Heat Transferred to Monomer

Qtotal=mCp(Tf−T0)=(2,500 kg)×(3.500 kJ/(kg⋅K))×(110.0−20.0 K)Q_{total} = m C_p (T_f - T_0) = (2,500\text{ kg}) \times (3.500\text{ kJ/(kg}\cdot\text{K)}) \times (110.0 - 20.0\text{ K}) Qtotal=(2,500)×(3.500)×(90.0)=787,500 kJ=787.5 MJQ_{total} = (2,500) \times (3.500) \times (90.0) = 787,500\text{ kJ} = 787.5\text{ MJ}

Step 4: Total Steam Condensed

Assuming steam enters as saturated vapor and leaves as saturated condensate without subcooling:

msteam=Qtotalλvap=787,500 kJ2,144.0 kJ/kg=367.30 kg of steamm_{steam} = \frac{Q_{total}}{\lambda_{vap}} = \frac{787,500\text{ kJ}}{2,144.0\text{ kJ/kg}} = 367.30\text{ kg of steam}

Average steam condensation rate over the heat-up cycle:

m˙steam,avg=367.30 kg1.44 h=255.1 kg/h\dot{m}_{steam,avg} = \frac{367.30\text{ kg}}{1.44\text{ h}} = 255.1\text{ kg/h}

8. Common PE Exam Traps & Calculation Pitfalls

Trap 1: Confusing Flowing Enthalpy with System Internal Energy
For a closed batch vessel or a variable-mass tank, the accumulation term is d(mu^)/dtd(m\hat{u})/dt, not d(mh^)/dtd(m\hat{h})/dt. Writing mCpdT/dtm C_p dT/dt for an ideal gas vessel results in an error of γ=1.4\gamma = 1.4, because the closed mass accumulation is governed by CvC_v, whereas boundary flow is governed by CpC_p.

Trap 2: Assuming Constant Gravity Draining Flow
In gravity-drained tanks, flow rate diminishes continuously as liquid head drops (V˙out∝h\dot{V}_{out} \propto \sqrt{h}). Calculating emptying time by dividing initial volume by initial volumetric flow (t=V/V˙0t = V / \dot{V}_0) yields an answer that is exactly 50%50\% of the true draining time! Always integrate Torricelli's equation.

Trap 3: Mixing Hydraulic and Thermal Time Constants
Do not confuse hydraulic residence time τ=V/V˙\tau = V/\dot{V} with thermal time constant τth=(mCp)/(UA)\tau_{th} = (m C_p)/(UA). For a continuous stirred tank with both flow and jacket heat exchange, the total temperature response combines both terms: 1τtotal=1τflow+1τth\frac{1}{\tau_{total}} = \frac{1}{\tau_{flow}} + \frac{1}{\tau_{th}}.

Test Your Knowledge

A 10.0 m³ continuous stirred tank initially contains pure water. At t = 0, a brine feed containing 50.0 kg/m³ of dissolved NaCl is introduced at a constant volumetric flow rate of 2.0 m³/min. An overflow line maintains a constant liquid volume of 10.0 m³ in the vessel. Assuming perfect, instantaneous mixing and constant solution density, what is the concentration of NaCl in the overflow effluent after 8.0 minutes of operation?

A

24.6 kg/m³

B

31.5 kg/m³

C

39.9 kg/m³

D

47.2 kg/m³

Test Your Knowledge

A rigid, thermally insulated pressure vessel of volume 1.50 m³ is completely evacuated. A valve connected to an infinite supply pipeline carrying compressed air at 300.0 K (26.85°C) and 2.00 MPa is cracked open. Air slowly enters the vessel until the pressure inside matches the line pressure of 2.00 MPa, at which point the valve is shut. Assuming air behaves as an ideal gas with constant heat capacities (Cp = 29.1 J/(mol·K), Cv = 20.8 J/(mol·K), γ = 1.40), what is the final temperature of the air in the vessel?

A

300 K

B

345 K

C

380 K

D

420 K

Test Your Knowledge

A vertical cylindrical water tank with diameter D = 2.00 m (cross-sectional area A = 3.142 m²) is initially filled to a liquid height of h_0 = 4.00 m. Water discharges by gravity through a circular sharp-edged orifice of diameter d_o = 0.050 m (5.00 cm) located flush in the tank bottom. The orifice discharge coefficient is C_d = 0.60, and acceleration due to gravity is g = 9.81 m/s². How long will it take for the liquid level in the tank to drop from 4.00 m to 1.00 m?

A

20.1 minutes

B

14.2 minutes

C

28.4 minutes

D

40.2 minutes

Sections you finish are checked off in the contents.