Engineering Chemistry

Chapter 3
Engineering Thermodynamics, Equilibria and Phase Behavior

Bachelor Program in Mechatronics Engineering
Engineering Chemistry   •   Bachelor

Engineering Thermodynamics, Equilibria and Phase Behavior

Introduction

Thermodynamics provides a quantitative framework for predicting how energy and matter are transformed in engineering systems. In mechatronics, thermodynamic reasoning is relevant to batteries, fuel cells, refrigeration systems, pneumatic actuators, thermal sensors, heat treatment, additive manufacturing, corrosion, and semiconductor processing. A process may be technically possible yet impractical because it is too slow, requires excessive energy, produces unwanted phases, or is limited by equilibrium.

This chapter develops the thermodynamic laws and equilibrium concepts needed to evaluate such processes. It connects energy balances with enthalpy, entropy, and Gibbs energy, and then applies equilibrium constants to chemical, acid–base, solubility, and phase-equilibrium problems.

Learning Objectives

After studying this chapter, a student should be able to:

  1. Distinguish systems, surroundings, properties, states, and processes.
  2. Apply the first law to closed and steady-flow systems.
  3. Calculate reaction enthalpy using formation enthalpies and Hess’s law.
  4. Explain entropy generation and the second law.
  5. Use Gibbs energy to judge spontaneity and equilibrium.
  6. Relate equilibrium constants to standard Gibbs energy.
  7. Analyze acid–base, solubility, and chemical equilibria.
  8. Interpret phase diagrams and apply the Gibbs phase rule.
  9. Connect thermodynamic analysis with engineering design and safety.

1. Thermodynamic Foundations

A system is the portion of the universe selected for study. Everything outside it is the surroundings. A closed system permits energy transfer but not mass transfer across its boundary. An open system, or control volume, permits both mass and energy transfer. An isolated system permits neither.

A property describes the state of a system. Pressure, temperature, volume, internal energy, enthalpy, and entropy are properties. An intensive property is independent of system size, such as temperature and pressure. An extensive property depends on the amount of matter, such as mass and total volume. Specific properties are extensive properties per unit mass, for example specific volume and specific enthalpy.

A state is specified when sufficient independent properties are known. A process is a change from one state to another. A quasi-equilibrium process proceeds through states that are nearly in equilibrium and is useful for deriving work relations. A reversible process is an ideal limiting process with no dissipative effects; real processes are irreversible because of friction, finite temperature differences, mixing, electrical resistance, and unrestrained expansion.

Temperature determines thermal equilibrium. The zeroth law states that if system A is in thermal equilibrium with B, and B is in thermal equilibrium with C, then A is in thermal equilibrium with C. This law provides the basis for temperature measurement.

2. First Law: Energy Conservation

The first law states that energy is conserved. For a closed system, using the convention that heat entering the system and work done on the system are positive,

∆U = Q + W

where ∆U is the change in internal energy, Q is heat transferred to the system, and W is work transferred to the system. If engineering work is instead defined as work done by the system, the commonly used form is ∆U = Q - Wby. The sign convention must always be stated.

Internal energy is a state function, whereas heat and work are path functions. Thus, Q and W depend on how a process occurs, while ∆U depends only on the initial and final states.

For pressure–volume boundary work under quasi-equilibrium conditions,

Wby = ∫V1V2 P\,dV

where P is system pressure and V is volume. For constant external pressure, Wby = Pext(V2 - V1). The expression is applicable only when the pressure used is the resisting external pressure and the process description is consistent with the work convention.

Enthalpy and Flow Systems

Enthalpy is defined as

H = U + PV

where H is enthalpy, U is internal energy, P is pressure, and V is volume. For a constant-pressure process involving only pressure–volume work,

Qp = ∆H

For an open, steady-flow control volume with one inlet and one outlet, neglecting changes in time-dependent stored energy,

Q - Ws = (h2-h1) + (c22-c12)/2 + g(z2-z1)

Here Q and W_s are heat and shaft work per unit mass, h is specific enthalpy, c is velocity, g is gravitational acceleration, and z is elevation. This equation assumes steady operation and should be extended to multiple streams when necessary.

In many pumps, compressors, turbines, and valves, kinetic and potential-energy changes are small compared with enthalpy changes. A throttling valve is commonly approximated as isenthalpic: h1 ≈ h2, provided there is no significant heat transfer, shaft work, or kinetic-energy change.

3. Thermochemistry and Reaction Enthalpy

A chemical reaction can release heat (exothermic) or absorb heat (endothermic). The reaction enthalpy is written

∆Hrxn = ∑νi∆Hf°(products) - ∑νi∆Hf°(reactants)

where ν_i are stoichiometric coefficients and ∆Hf° is the standard enthalpy of formation. Standard conditions are conventionally associated with a specified temperature, often 298.15 K, and standard pressure, commonly 1 bar. Data sources must be checked because reference conventions can differ.

The standard enthalpy of formation of an element in its reference state is zero. Hess’s law follows from enthalpy being a state function: the total enthalpy change is independent of the reaction path.

For sensible heating with approximately constant heat capacity,

q = m cp ∆T

where q is heat, m is mass, c_p is specific heat capacity at constant pressure, and ∆T is the temperature change. If heat capacity varies substantially with temperature, use q = m∫T1T2cp(T)\,dT.

Worked Example 1: Reaction Enthalpy

For the combustion reaction

CH4(g) + 2O2(g) → CO2(g) + 2H2O(l),

suppose the standard formation enthalpies are: CH₄(g) = −74.85 kJ mol⁻¹, CO₂(g) = −393.51 kJ mol⁻¹, H₂O(l) = −285.83 kJ mol⁻¹, and O₂(g) = 0. Then

∆Hrxn = [(-393.51)+2(-285.83)] - [(-74.85)+2(0)].

Therefore, ∆Hrxn = -890.32\ kJ\ mol-1. The negative value indicates heat release under the stated standard conditions. The phase of water is essential; using water vapor would give a different result.

4. Second Law and Entropy

The first law does not indicate whether a process can occur spontaneously. Heat can be converted to work, but not all energy transformations are equally useful. The second law introduces direction and irreversibility.

Entropy is a state function. For a reversible path,

dS = δQrev/T

where S is entropy, δQ_rev is reversible heat transfer, and T is absolute temperature in kelvin. For any real process, the entropy balance for a closed system may be expressed as

∆Ssystem = ∫(δQ/Tboundary) + Sgen

where S_gen is entropy generated by irreversibility and must satisfy Sgen ≥ 0. For an isolated system, Q = 0, so its entropy cannot decrease.

For a reversible heat engine operating between hot temperature T_H and cold temperature T_C, the maximum efficiency is the Carnot efficiency:

ηCarnot = 1 - TC/TH

Temperatures must be absolute. No real engine operating between those reservoirs can exceed this value.

For an ideal gas, entropy change can be calculated from

∆S = nCp,mln(T2/T1) - nRln(P2/P1)

where n is amount in moles, C_p,m is molar heat capacity at constant pressure, R is the gas constant, and P and T are pressure and absolute temperature. This form assumes ideal-gas behavior and approximately constant heat capacity over the temperature range.

Entropy also measures dispersal of energy and, microscopically, the number of accessible configurations. Mixing, diffusion, melting, and evaporation generally increase entropy, although the entropy change of a system alone is not sufficient to establish spontaneity.

5. Gibbs Energy and Process Feasibility

For processes at constant temperature and pressure, the most useful potential is Gibbs energy:

G = H - TS

For a process at constant T and P,

∆G = ∆H - T∆S

with T in kelvin and ∆H and T∆S expressed in the same energy units. The criteria are:

ConditionInterpretation
∆G < 0Forward process is thermodynamically spontaneous at constant T and P
∆G = 0Equilibrium
∆G > 0Forward process is nonspontaneous under the stated conditions

“Spontaneous” does not mean fast. Diamond-to-graphite conversion is thermodynamically favored under some conditions but kinetically slow. Thermodynamics predicts direction and limits; kinetics predicts rate.

The chemical potential of component i is

µi = (∂G/∂ni)_{T,P,nj≠i}

where n_i is the amount of component i. At phase equilibrium, the chemical potential of each component is equal in all coexisting phases.

For a reaction, the reaction Gibbs energy is

∆rG = ∆rG° + RTlnQr

where ∆_rG° is standard reaction Gibbs energy, Q_r is the reaction quotient, R is the gas constant, and T is absolute temperature. At equilibrium, ∆_rG = 0 and Q_r = K, giving

∆rG° = -RTlnK

Activities are dimensionless measures of effective concentration or pressure. For ideal dilute solutions, activity is often approximated by concentration divided by the standard concentration; for ideal gases, it is approximated by partial pressure divided by the standard pressure. Pure solids and pure liquids have activity approximately equal to one in many equilibrium calculations.

6. Chemical Equilibrium

Consider a general reaction aA+bB⇌cC+dD. Its equilibrium constant in terms of activities is

K = (aCc aDd)/(aAa aBb)

A large K indicates product-favored equilibrium, while a small K indicates reactant-favored equilibrium. It does not indicate the rate of reaction.

The reaction quotient Q has the same form but uses the current, not necessarily equilibrium, composition. If Q < K, the reaction tends to proceed forward; if Q > K, it tends to proceed in reverse.

Le Châtelier’s principle states that a system at equilibrium responds to a disturbance in a way that partially opposes it. Increasing reactant activity generally favors products. Increasing pressure in a gas reaction favors the side with fewer gas moles, provided temperature is constant. A catalyst changes the rates of forward and reverse reactions but does not change K or the equilibrium composition.

Temperature changes K because temperature changes the thermodynamic balance. The van ’t Hoff equation is

d(lnK)/dT = ∆rH°/(RT2)

For approximately constant reaction enthalpy between T₁ and T₂,

ln(K2/K1) = -∆rH°/R(1/T2 - 1/T1)

An endothermic reaction generally has a larger K at higher temperature; an exothermic reaction generally has a smaller K.

7. Acid–Base Equilibria

A Brønsted–Lowry acid donates a proton, while a base accepts a proton. For a weak acid HA in water,

HA + H2O ⇌ H3O^+ + A^-,

and

Ka = aH3O^+aA^-/aHA

For dilute solutions, activities may be approximated by molar concentrations. The pH is

pH = -log10aH3O^+

and, for a conjugate acid–base pair at 25 °C,

pKa + pKb = pKw = 14.00

The value 14.00 applies specifically to 25 °C and changes with temperature.

For a weak monoprotic acid of initial concentration C and dissociation x, the exact equilibrium relation is

Ka = x2/(C-x)

If x is much smaller than C, then x ≈ √(KaC). This approximation must be checked after calculation; a common guideline is that x/C should be below about 5%.

A buffer contains a weak acid and its conjugate base. The Henderson–Hasselbalch approximation is

pH ≈ pKa + log10(abase/aacid)

It is most reliable when both buffer components are present in appreciable amounts and concentrations can reasonably represent activities.

8. Solubility Equilibria

For a sparingly soluble salt such as AgCl(s)⇌Ag^+(aq)+Cl^-(aq),

Ksp = aAg^+aCl^-

For a salt AmBn,

Ksp = [An+]m[Bm-]n

under the ideal dilute-solution approximation. The ion product Q_sp determines precipitation:

  • Q_sp < K_sp: solution is unsaturated.
  • Q_sp = K_sp: solution is saturated and at equilibrium.
  • Q_sp > K_sp: precipitation is thermodynamically favored.

The common-ion effect decreases solubility when an ion already present participates in the dissolution equilibrium. Complex formation, pH, ionic strength, and temperature can substantially alter actual solubility, so tabulated K_sp values must not be applied blindly to concentrated or chemically complex solutions.

9. Phase Equilibria and Phase Diagrams

A phase is a physically and chemically homogeneous region with uniform properties. Common phases include solid, liquid, and vapor. A phase diagram shows which phase or phases are stable as functions of variables such as temperature, pressure, and composition.

For a one-component pressure–temperature diagram, the sublimation, fusion, and vaporization curves separate regions. The triple point is where solid, liquid, and vapor coexist. The critical point is the endpoint of the liquid–vapor boundary; above the critical temperature, a gas cannot be liquefied by pressure alone.

The Clapeyron equation gives the slope of a two-phase boundary:

dP/dT = ∆Strans/∆Vtrans = ∆Htrans/(T∆Vtrans)

where ∆H_trans and ∆S_trans are molar transition enthalpy and entropy, and ∆V_trans is the molar volume change. For vaporization, the Clausius–Clapeyron approximation is

ln(P2/P1) = -∆Hvap/R(1/T2 - 1/T1)

This assumes vapor behaves ideally, the liquid volume is negligible relative to vapor volume, and ∆H_vap is approximately constant over the temperature interval.

Gibbs Phase Rule

The phase rule is

F = C - P + 2

where F is degrees of freedom, C is number of chemically independent components, and P is number of phases. It applies to a nonreacting system at equilibrium when temperature and pressure are independent intensive variables.

For a one-component, one-phase system, F = 2: temperature and pressure may vary independently. At the triple point, C = 1 and P = 3, so F = 0; neither temperature nor pressure can vary without eliminating a phase.

For condensed systems at approximately constant pressure, the reduced phase rule is often written

F = C - P + 1

because pressure is fixed. Reaction systems require a modified treatment using the number of independent components after accounting for independent reactions.

Binary phase diagrams show liquidus and solidus boundaries, eutectic points, and phase compositions. In a two-phase region, the lever rule estimates phase amounts. If an overall composition z lies between phase compositions x_α and x_β, the fraction of phase α is

f_α = (x_β-z)/(x_β-x_α)

and the fraction of phase β is

f_β = (z-x_α)/(x_β-x_α)

The compositions must be measured on the same basis, such as mass fraction or mole fraction.

10. Worked Example 2: Weak-Acid Equilibrium

A 0.0100 mol L⁻¹ solution of a weak acid has K_a = 1.0 × 10⁻⁵. Let x be the equilibrium concentration of hydronium ions. Using the weak-acid approximation,

x ≈ √((1.0×10-5)(0.0100)) = √(1.0×10-7) = 3.16×10-4\ mol\ L-1.

Thus,

pH = -log10(3.16×10-4) = 3.50.

The percentage ionization is (3.16×10-4/0.0100)×100 = 3.16%, which is below 5%; therefore, the approximation is acceptable.

11. Applied Case: Thermal Management of a Mechatronic Actuator

Background

Consider an illustrative actuator module used in a robotic joint. The module contains a motor, gearbox, lithium-ion battery, temperature sensor, and sealed enclosure. During repeated operation, motor losses heat the enclosure. Excessive temperature reduces battery life, changes lubricant viscosity, and may damage electronic components.

Problem

The design team must decide whether passive conduction through the enclosure is sufficient or whether an active cooling system is required. The analysis must distinguish energy accumulation from thermodynamic feasibility.

Analysis

A first-law energy balance for the enclosure is

m cp dT/dt = \dot{Q}gen - \dot{Q}out

where m is effective thermal mass, c_p is effective heat capacity, \dot{Q}gen is heat generated by motor and electronics, and \dot{Q}out is heat rejected. At steady temperature, accumulation is zero, so \dot{Q}gen = \dot{Q}out.

The second law indicates that heat rejection requires a temperature difference or work input. Passive cooling can transfer heat to the surroundings only when the enclosure is hotter than the ambient environment. A heat pump could maintain a lower temperature, but it would consume electrical work and reject additional heat.

If internal temperatures approach a component limit, the design team should not infer safety merely because the energy balance closes. Sensor uncertainty, transient peaks, contact resistance, thermal aging, and blocked airflow must be included. A practical design may combine conductive paths, heat spreaders, thermal interface materials, control software that limits duty cycle, and a temperature-based shutdown.

Approach and Outcome

The team models the enclosure as a lumped thermal system, verifies the lumped assumption using the Biot number, measures heat-generation rates experimentally, and validates the model using temperature data. The controller reduces motor duty cycle when temperature approaches the permitted limit. The final design maintains the battery and electronics below their specified operating temperatures without an active refrigeration loop.

Learning Points

  1. The first law quantifies energy accumulation but does not establish temperature uniformity or safety.
  2. Entropy generation identifies irreversibility but does not replace a transient thermal model.
  3. Thermodynamic properties must be used with correct phase and temperature assumptions.
  4. Engineering decisions require uncertainty margins, sensor validation, and failure-mode analysis.

12. Limitations, Safety, and Professional Practice

Thermodynamic models are approximations. Ideal-gas behavior fails at high pressure and near condensation. Ideal-solution assumptions fail when molecular interactions are strong. Equilibrium may not be reached in a practical operating time. Heat capacities, equilibrium constants, and phase boundaries depend on temperature, pressure, composition, and reference-state conventions.

Engineers should state assumptions, use consistent units, identify the system boundary, and distinguish measured values from property-database values. Chemical equilibrium calculations involving corrosive, toxic, flammable, or pressurized materials require appropriate containment, ventilation, process interlocks, and regulatory compliance. A favorable Gibbs energy does not justify releasing hazardous substances or bypassing safety controls.

Modern process-control systems increasingly combine thermodynamic property models with sensors and machine-learning algorithms. AI can detect deviations from expected temperature or pressure behavior, but it cannot replace validated physical models, calibration, cybersecurity controls, or human responsibility. Training data may not represent abnormal operating conditions, so model-based safety limits remain essential.

Chapter Summary

Thermodynamics describes energy conservation, process direction, and equilibrium. The first law provides energy balances; enthalpy is especially convenient for constant-pressure reactions and flowing systems. The second law introduces entropy and establishes that entropy generation is nonnegative for real processes. Gibbs energy combines enthalpy and entropy and provides the constant-temperature, constant-pressure criterion for spontaneity and equilibrium.

Chemical equilibrium is quantified by equilibrium constants and reaction quotients. The relation ∆G° = -RTlnK connects measurable equilibrium composition with thermodynamic driving force. Acid–base equilibria use K_a, pH, buffers, and conjugate pairs. Solubility equilibria use K_sp and ion products to predict precipitation. Phase diagrams identify stable phases, transition boundaries, critical and triple points, and composition-dependent regions. The Gibbs phase rule determines the number of independent intensive variables, while the lever rule estimates phase fractions in suitable binary diagrams.

In engineering practice, these tools must be combined with kinetics, transport, measurement uncertainty, safety analysis, and material compatibility. Thermodynamics predicts what is possible and the limiting state; engineering design determines how safely and rapidly that state can be approached.

Key Terms

System: The portion of the universe selected for analysis.

Surroundings: Everything outside the thermodynamic system.

State function: A property whose change depends only on initial and final states.

Enthalpy: The property defined by H=U+PV.

Internal energy: Energy stored microscopically within a system.

Entropy: A state function associated with energy dispersal and process direction.

Irreversibility: Departure from an ideal reversible process, producing entropy.

Gibbs energy: The property G=H-TS used for constant-T, constant-P analysis.

Chemical potential: Partial molar Gibbs energy of a component.

Equilibrium constant: The activity-based ratio of products to reactants at equilibrium.

Reaction quotient: The same ratio as K, evaluated at any current composition.

Activity: Dimensionless effective concentration or pressure.

Acid: A Brønsted–Lowry proton donor.

Base: A Brønsted–Lowry proton acceptor.

Solubility product: Equilibrium constant for dissolution of a sparingly soluble solid.

Phase: A homogeneous physically distinct region of matter.

Triple point: Condition at which three phases coexist.

Critical point: Endpoint of the liquid–vapor coexistence curve.

Degrees of freedom: Number of independent intensive variables that may be specified.

Phase rule: Relation F=C-P+2 for nonreacting equilibrium systems.

Review Questions

Short Answer Questions

  1. What is the difference between a state function and a path function?
  2. Why is enthalpy useful in steady-flow engineering calculations?
  3. State the second-law requirement for entropy generation.
  4. What is the difference between the reaction quotient Q and the equilibrium constant K?
  5. Define a phase and a degree of freedom.

Long Answer Questions

  1. Explain how the first and second laws complement one another in evaluating an engineering process.
  2. Derive the relationship between standard Gibbs energy and the equilibrium constant.
  3. Discuss the assumptions and limitations of the ideal-gas entropy equation.
  4. Explain acid–base equilibrium, buffer action, and the Henderson–Hasselbalch approximation.
  5. Describe a one-component phase diagram, including triple point, critical point, and phase boundaries.

Analytical / Application Questions

  1. A reaction has ∆H°=-50\ kJ\ mol-1 and ∆S°=-100\ J\ mol-1K-1. At 298 K, calculate ∆G° and determine whether the reaction is favored under standard conditions. Ensure that units are consistent.
  2. A saturated solution of a salt produces equal concentrations of M²⁺ and X²⁻, each equal to 1.0 × 10⁻³ mol L⁻¹. Determine K_sp under the ideal dilute-solution approximation and state whether adding X²⁻ would increase or decrease solubility.
  3. For a binary alloy in a two-phase region, the overall composition is 40 mass% B, while the phase compositions are 20 mass% B and 70 mass% B. Use the lever rule to calculate the fraction of each phase and explain the result physically.

Multiple Choice Questions with Answers

Question 1

Which thermodynamic quantity is a state function?

A. Heat transferred

B. Work transferred

C. Internal energy

D. Path length

Correct Answer: C. Internal energy

Question 2

For a constant-temperature, constant-pressure process, which condition indicates thermodynamic spontaneity in the forward direction?

A. ∆G > 0

B. ∆G < 0

C. ∆G = ∞

D. ∆S_system = 0 in every case

Correct Answer: B. ∆G < 0

Question 3

For a reaction at equilibrium, which statement is correct?

A. Q = 0

B. Q < K

C. Q = K

D. K = 0

Correct Answer: C. Q = K

Question 4

A catalyst changes the equilibrium constant of a reaction by:

A. Increasing it for exothermic reactions

B. Decreasing it for endothermic reactions

C. Changing it only at high pressure

D. Not changing it

Correct Answer: D. Not changing it

Question 5

What is the pH of a solution whose hydronium-ion activity is approximately 1.0 × 10⁻³?

A. 2

B. 3

C. 10

D. 11

Correct Answer: B. 3

Question 6

If Q_sp is greater than K_sp, what is thermodynamically favored?

A. Dissolution only

B. Precipitation

C. No change is possible

D. Evaporation of the solvent

Correct Answer: B. Precipitation

Question 7

For a one-component, one-phase equilibrium system, the Gibbs phase rule gives how many degrees of freedom?

A. 0

B. 1

C. 2

D. 3

Correct Answer: C. 2

Question 8

At the triple point of a one-component system, the number of degrees of freedom is:

A. 0

B. 1

C. 2

D. 3

Correct Answer: A. 0

Question 9

Which equation defines enthalpy?

A. H = U − PV

B. H = U + PV

C. H = TS − G

D. H = Q + W only

Correct Answer: B. H = U + PV

Question 10

For an exothermic reaction with approximately constant ∆H°, increasing temperature generally causes K to:

A. Increase

B. Decrease

C. Become exactly one

D. Become zero

Correct Answer: B. Decrease

Engineering Chemistry
Chapter 3 of 15