Dulranga's Notes
Semester 3Engineering Thermodynamics

Laws of Thermodynamics

There are 4 fundamental laws in thermodynamics that governs everything. But the first law is called Zeroth Law due to its been discovered the last but its super fundamental than all of the rest so have been moved to the front.

Zeroth Law

This is the foundation of Temperature.

A∼BandB∼C  ⟹  A∼CA \sim B \quad \text{and} \quad B \sim C \implies A \sim C

If systems AA and BB are in thermal equilibrium, and BB and CC are in thermal equilibrium, Then AA and CC are also in the same equilibrium.

This transitivity property is required for the Temperature (TT) to be a mathematically valid property. If A=300∘CA=300^\circ{C}, and B=300∘CB=300^\circ{C} we say no heat transfer. If C=300∘CC=300^\circ{C}, then when AA touched with CC and some heat transferred, then the Temperature Property is mathematically invalid.

Also thermometer can be used because of this. If transitivity property was not valid, even when Thermometer show 50∘C50^\circ \text{C} in two cases, we cannot say they are equal. The only way to truly say they are equal would be to make them touch and see if there is heat transfer.

First Law

This law explains the conservation of Energy. This states that energy can be only transformed into a different form, and neither created nor destroyed.

heat-work-sign-convention.png

ΔE=Q−W\Delta E = Q - W
  • ΔE\Delta E) (Change in Internal Energy): The total kinetic and potential energy of the particles inside the system E=U+KE+PEE=U+KE+PE
  • QQ: Heat added to the system.
  • WW: Work done by the system on its surroundings.

Steady Flow Energy Equation

The first law ΔE=Q−W\Delta E = Q - W is written for a fixed mass (closed system). Real machines — turbines, compressors, nozzles, pumps — have mass flowing through them, so the balance has to be rewritten for an open system (control volume).

open-system.png

Why Enthalpy Appears

A fluid crossing the boundary carries energy in two ways:

  1. its own internal energy, kinetic and potential energy — the same terms as before
  2. flow work — the work its pressure does on the fluid ahead of it to push it through the boundary

For a mass mm entering at pressure PP with specific volume vv, the flow work is Pvm=PVPvm = PV. That term always appears paired with internal energy, so it is bundled into a new property:

h=u+Pv(specific enthalpy)h = u + Pv \qquad (\text{specific enthalpy})

This is the real reason enthalpy exists — it is the property that makes open-system energy balances clean. In a closed system there is no flow work, so hh never needs to appear.

Assumptions of "Steady Flow"

"Steady" here means steady state, not equilibrium (see Fundamentals of Thermodynamics for the distinction):

  • mass flow rate in = mass flow rate out, m˙1=m˙2=m˙\dot{m}_1 = \dot{m}_2 = \dot{m}
  • all properties at any fixed point do not change with time
  • no change in the mass or energy stored inside the control volume
  • uniform properties across each inlet and outlet

Properties may still differ between inlet and outlet — that is the whole point.

The Equation

Energy balance on the control volume, using the same convention as the first law above (QQ in positive, WW out positive):

Q˙−W˙=m˙[(h2−h1)⏟Shaft work+V22−V122+g(z2−z1)⏟Flow Work]\dot{Q} - \dot{W} = \dot{m}\left[ \underbrace{\left(h_2 - h_1\right)}_\text{Shaft work} + \underbrace{\frac{V_2^2 - V_1^2}{2} + g\left(z_2 - z_1\right)}_\text{Flow Work} \right]

where Q˙\dot{Q} and W˙\dot{W} are rates (W or kW) and m˙\dot{m} is the mass flow rate (kg/s).

Dividing by m˙\dot{m} gives the per-unit-mass form, which is what you use most often:

q−w=(h2−h1)+V22−V122+g(z2−z1)\boxed{q - w = \left(h_2 - h_1\right) + \frac{V_2^2 - V_1^2}{2} + g\left(z_2 - z_1\right)}
  • q,wq, w — heat and work per unit mass (kJ/kg)
  • hh — specific enthalpy (kJ/kg)
  • VV — velocity (m/s)
  • zz — elevation (m)

Units trap: hh is in kJ/kg, but V22\frac{V^2}{2} comes out in J/kg when VV is in m/s. Divide the kinetic and potential terms by 1000 before adding them to hh. This is the most common arithmetic error in these problems.

The rate form is convenient when the problem gives flow rates; the per-mass form is convenient when it gives two states and no mass flow.

Derivation, Briefly

Start from the general control-volume energy balance and delete the storage term (steady state):

dECVdt=Q˙−W˙+m˙1(u1+V122+gz1+P1v1)−m˙2(u2+V222+gz2+P2v2)=0\frac{dE_{CV}}{dt} = \dot{Q} - \dot{W} + \dot{m}_1\left(u_1 + \frac{V_1^2}{2} + gz_1 + P_1v_1\right) - \dot{m}_2\left(u_2 + \frac{V_2^2}{2} + gz_2 + P_2v_2\right) = 0

The PvPv terms are the flow work crossing with the mass. Set m˙1=m˙2=m˙\dot{m}_1 = \dot{m}_2 = \dot{m}, group u+Pvu + Pv into hh, and rearrange:

Q˙−W˙=m˙[(h2−h1)+V22−V122+g(z2−z1)]\dot{Q} - \dot{W} = \dot{m}\left[\left(h_2 - h_1\right) + \frac{V_2^2 - V_1^2}{2} + g\left(z_2 - z_1\right)\right]

What W˙\dot{W} Means Here

W˙\dot{W} is shaft work — work delivered through a rotating shaft, plus electrical work. It is not flow work, because flow work has already been absorbed into hh. If a device has no shaft, W˙=0\dot{W} = 0 (nozzles, diffusers, heat exchangers, throttling valves).

Sign convention: W˙\dot{W} positive means work done by the system. So a turbine has W˙>0\dot{W} > 0, and a compressor or pump has W˙<0\dot{W} < 0 (or write winw_{in} and keep it positive).

Simplified Forms

Most problems collapse the equation rather than use all of it. Learn these as patterns:

DeviceQ˙\dot{Q}W˙\dot{W}ΔKE\Delta KEΔPE\Delta PEReduces to
Nozzle00kept0h1+V122=h2+V222h_1 + \frac{V_1^2}{2} = h_2 + \frac{V_2^2}{2}
Diffuser00kept0same as nozzle, run backwards
Turbine0 (adiabatic)kept00W˙=m˙(h1−h2)\dot{W} = \dot{m}(h_1 - h_2)
Compressor0 (adiabatic)kept00W˙in=m˙(h2−h1)\dot{W}_{in} = \dot{m}(h_2 - h_1)
Pump0kept00W˙in=m˙(h2−h1)≈m˙v(P2−P1)\dot{W}_{in} = \dot{m}(h_2 - h_1) \approx \dot{m}v(P_2 - P_1)
Boiler / condenserkept000Q˙=m˙(h2−h1)\dot{Q} = \dot{m}(h_2 - h_1)
Heat exchanger0 overall000m˙hot(hin−hout)=m˙cold(hout−hin)\dot{m}_{hot}(h_{in} - h_{out}) = \dot{m}_{cold}(h_{out} - h_{in})
Throttling valve0000h1=h2h_1 = h_2 (isenthalpic)

Two of these deserve a comment:

  • Nozzle trades enthalpy for velocity — pressure drops, hh drops, VV rises. This is a steam jet or a rocket exhaust.
  • Throttling is the odd one: nothing is constant except hh. It is highly irreversible (friction, no work done), yet it is isenthalpic. That is why a throttling calorimeter can measure steam quality, and why the extraction points in a regenerated Rankine Cycle work the way they do.

For the closed-system (fixed mass) counterpart, with boundary work W=∫P dVW = \int P\,dV, stick with ΔE=Q−W\Delta E = Q - W above. SFEE is the open-system version of the same law.

Related: Entropy for the second-law limit on how much of that enthalpy drop can actually become work, Carnot Heat Cycle for the ideal ceiling, and Rankine Cycle for SFEE applied device by device in a power plant.

Continuity Equation

A1V1v1=A2V2v2  =  m˙\boxed{\frac{A_1V_1}{v_1} = \frac{A_2V_2}{v_2} \;=\; \dot m}

This is the general case for energy conservation. For incompressible fluidsl,

A1V1=A2V2A_1V_1 = A_2V_2

Specific Volume vs Density

ρ=1v\boxed{\rho = \frac{1}{v}}
  • Density and Specific volumes are reciprocals

On this page