Understanding Phase Equilibrium#

Introduction#

The key idea behind thermodynamic equilibrium is that the working material in a system is at a global energy minimum, with constant (and uniform) pressure, temperature and chemical composition. There is alot to unpack in this concept, however, the critical bit is the notion of energy of a chemical system. But what energy are talking about?

When we we explored energy balances we looked at internal energy \(U\), however, when thinking about phase equilbrium (and reaction) problems we use a different energy, the Gibbs Energy given the symbol \(G\).

In this lecture we will:


Gibbs Energy of a Thermodynamic System#

The Gibbs energy \(G\) (units: energy) of the working material in the system, potentially composed of \(\mathcal{M}\) chemical components, is a function of the temperature \(T\), the pressure \(P\), and the composition of the mixture:

\[G = G(T,P,n_{1},\dots,n_{\mathcal{M}})\]

Let’s expand the energy function \(G(T,P,n_{1},\dots,n_{\mathcal{M}})\) (using the total derivative in differential form) around some operating point in the system:

\[dG = \left(\frac{\partial{G}}{\partial{T}}\right)_{P,n}dT + \left(\frac{\partial{G}}{\partial{P}}\right)_{T,n}dP + \sum_{i\in\mathcal{M}}\left(\frac{\partial{G}}{\partial{n_{i}}}\right)_{T,P,n_{j}}dn_{i}\]

We need to do something with partial derivatives; we know from the thermodynamic potentials and Maxwell’s relations that the partial derivative of the Gibbs energy with respect to the temperature at constant pressure and composition is the negative entropy \(S\):

\[\left(\frac{\partial{G}}{\partial{T}}\right)_{P,n} = -S\]

while the partial derivative of the Gibbs energy with respect to the pressure at constant temperature and composition is the volume:

\[\left(\frac{\partial{G}}{\partial{P}}\right)_{T,n} = V\]

which gives:

\[dG = -SdT + VdP + \sum_{i\in\mathcal{M}}\left(\frac{\partial{G}}{\partial{n_{i}}}\right)_{T,P,n_{j}}dn_{i}\]

However, we still have the partial derivative of the Gibbs energy with respect to changes in the chemical composition of the mixture; we give this partial derivative a special name, the partial molar Gibbs energy and the symbol \(\bar{G}_{i}\):

(43)#\[dG = -SdT + VdP + \sum_{i\in\mathcal{M}}\bar{G}_{i}dn_{i}\]

Eqn. (43) describes how the Gibbs energy changes with temperature \(T\), pressure \(P\), and the chemical composition of the working fluid in a system.

Equilibrium matching conditions#

Several conditions must be true when a system is in phase equilibrium between phases \(\alpha\) and \(\beta\). First, the temperature is uniform, constant and equal in both phases, \(T^{\alpha} = T^{\beta}\) (thermal equilibrium). Next, the pressure is uniform, constant and equal in both phases, \(P^{\alpha} = P^{\beta}\) (mechanical equilibrium). Finally, the working material in the system is at an energy minimum which is represented by the condition:

\[\left(dG\right)_{T,P}\leq{0}\]

where the inequality becomes equality, i.e., \(\left(dG\right)_{T,P}={0}\) at the equilibrium point.

Definition 20 (Equilibrium Matching Conditions)

Let’s imagine that we have a working material in a system that is a mixture of chemical components in thermodynamic phase equilibrium with phases \(\alpha\) and \(\beta\). Equilibrium requires constant temperature and pressure, thus, \(dT=0\) and \(dP=0\) in Eqn. (43).

Further, imagine that each chemical component \(i\) in the set \(\mathcal{M}\) has Gibbs energy \(\bar{G}_{i}\) (units: energy/mol). Then the total amount of energy for the mixture is the weighted contribution of the energy of each component:

(44)#\[G = \sum_{i\in\mathcal{M}}n_{i}\bar{G}_{i}\]

where \(n_{i}\) denotes the number of moles of component \(i\) in the mixture, and \(\bar{G}_{i}\) is called the partial molar Gibbs energy or the chemical potential.

When a system with species set \(\mathcal{M}\) is in phase equilibrium between phases \(\alpha\) and \(\beta\), the partial molar Gibbs energy for each component must match between the phases:

(45)#\[\bar{G}^{\alpha}_{i} = \bar{G}^{\beta}_{i}\qquad{i\in\mathcal{M}}\]

Eqn (45) is called the Gibbs matching condition; this condition forms the theoretical basis of modeling multicomponent phase equilibrium.

Definition 20 describes the Gibbs energy, and the partial molar Gibbs energy, at equilibrium. Still, it does it in terms of hypothetical quantities of the chemical components of the working fluid in the system. We don’t have a Gibbs meter or another way to measure these quantities, so we have to relate these to things we can observe. This is where Fugacity comes into the picture.

Fugacity#

Fugacity, initially developed by Lewis, is a hypothetical pressure that we can relate to partial molar Gibbs energy and simultaneously to other things we can measure like the real pressure or the chemical composition of the working fluid. Fugacity bridges the hypothetical world of Gibbs’s energy and the real world of pressure, temperature, and composition.

Definition 21 (Fugacity)

The fugacity is related to the partial molar Gibbs energy of chemical component \(i\) in phase \(\star\), denoted by the symbol \(\bar{G}^{\star}_{i}\), by the expression:

(46)#\[\bar{G}^{\star}_{i} = \bar{G}^{\star,\circ}_{i} + RT\ln\left(\frac{\hat{f}^{\star}_{i}}{\hat{f}^{\star,\circ}_{i}}\right)\qquad\forall{i\in\mathcal{M}}\]

where \(\bar{G}^{\star,\circ}_{i}\) denotes the partial molar Gibbs energy for component \(i\) in phase \(\star\) at a reference state, \(\hat{f}^{\star}_{i}\) denotes the fugacity of component \(i\) in phase \(\star\), and \(\hat{f}^{\star,\circ}_{i}\) denotes the fugacity of component \(i\) in phase \(\star\) in a reference state.

Definition 21 has a lot to unpack. Let’s start by thinking about the reference state. While we could choose any reference state, it is particularly convenient to select the easiest possible state, namely, an ideal state. Thus, when phase \(\star\) is a gas, the reference state would be an ideal gas, or when phase \(\star\) is a liquid, we could use an ideal liquid model, etc. When seen through from this perspective Eqn (46) can be rewritten as:

(47)#\[\bar{G}_{i}^{E,\star} = RT\ln\left(\frac{\hat{f}^{\star}_{i}}{\hat{f}^{\star,\circ}_{i}}\right)\]

where \(\bar{G}_{i}^{E,\star} = \bar{G}^{\star}_{i} - \bar{G}^{\star,\circ}_{i}\) is called the excess (or residual) partial molar Gibbs energy; another way to think about the excess (residual) Gibbs energy is that is is a measure of the distance from ideality of a system (and its components).

Remark 4

As a system moves toward ideality, the Gibbs excess (residual) energy moves toward zero (and the ratio of fugacity moves toward one).

Fugacity Matching Condition#

Now that we have models for fugacity let’s think about one additional issue, namely, the relationship of the fugacity for chemical components when the system is in phase equilibrium. To start this, we know from Definition 20 that the partial molar Gibbs energy for each component must match when phase \(\alpha\) and \(\beta\) are in equilibrium. Thus, this gives us the expression:

\[\bar{G}^{\beta,\circ}_{i} + RT\ln\left(\frac{\hat{f}^{\beta}_{i}}{\hat{f}^{\beta,\circ}_{i}}\right) = \bar{G}^{\alpha,\circ}_{i} + RT\ln\left(\frac{\hat{f}^{\alpha}_{i}}{\hat{f}^{\alpha,\circ}_{i}}\right)\]

which we can rearrange to give:

\[\bar{G}^{\beta,\circ}_{i} - \bar{G}^{\alpha,\circ}_{i} = RT\ln\left(\frac{\hat{f}^{\beta,\circ}_{i}}{\hat{f}^{\alpha,\circ}_{i}}\right) - RT\ln\left(\frac{\hat{f}^{\beta}_{i}}{\hat{f}^{\alpha}_{i}}\right)\]

However, the second term on the right-hand side is extra as the first three terms define fugacity. Thus

\[RT\ln\left(\frac{\hat{f}^{\beta}_{i}}{\hat{f}^{\alpha}_{i}}\right) = 0\]

which implies \(\hat{f}^{\beta}_{i}=\hat{f}^{\alpha}_{i}\).

Definition 22 (Fugacity Matching condition)

When a system with species set \(\mathcal{M}\) is in phase equilibrium between phases \(\alpha\) and \(\beta\), the fugacity for each chemical component must match between the phases:

(48)#\[\hat{f}^{\alpha}_{i} = \hat{f}^{\beta}_{i}\qquad{i\in\mathcal{M}}\]

Eqn (48) is called the fugacity matching condition; this condition (along with fugacity models for different phases) forms the actionable basis for modeling multicomponent phase equilibrium and solution properties.

Fugacity phase models#

The challenge of Definition 22 (and the excess Gibbs energy model) is that fugacity remains an abstract quantity; thus, while fugacity has units of pressure, e.g., kPa, you can’t measure it directly. Instead, we develop models for the fugacity of components in a mixture that can be related to actual variables we can measure.

Gas phase fugacity models#

Definition 23 (Fugacity Model Gas)

Consider a gas phase system composed of the chemical species set \(\mathcal{M}\). The fugacity of component \(i\) in a mixture of \(\mathcal{M}\) components, denoted as \(\hat{f}^{v}_{i}\) is given by:

(49)#\[\hat{f}^{v}_{i} = \hat{\phi}^{v}_{i}y_{i}P\qquad{\forall{i}\in\mathcal{M}}\]

where \(\hat{\phi}^{v}_{i}\) is called the fugacity coefficient for compomnent \(i\), \(y_{i}\) denotes the mole fraction of component \(i\) and \(P\) denotes the system pressure.

The fugacity coefficient \(\hat{\phi}^{v}_{i}\) is a measure of the non-ideality of a system; if a system is ideal then the fugacity coefficient \(\hat{\phi}^{v}_{i}={1}\), otherwise \(\hat{\phi}^{v}_{i}>0\).

In the gas phase we define our reference state fugacity as the ideal gas state; if the system is in the ideal gas state, the fugacity is just the partial pressure:

\[\hat{f}^{v,\circ}_{i} = y_{i}P\]

where \(y_{i}\) denotes the mole fraction of component \(i\). Thus, we can write the excess (residual) Gibbs energy for chemical component \(i\) in a gas phase system with the species set \(\mathcal{M}\) as:

\[\bar{G}_{i}^{E,v} = RT\ln\hat{\phi}^{v}_{i}\qquad{\forall{i}\in\mathcal{M}}\]

Observation 17

As the gas phase moves toward ideality, the Gibbs excess (residual) energy \(\bar{G}_{i}^{E,v}\) goes toward zero, which implies the fugacity coefficient \(\hat{\phi}^{v}_{i}\) moves towards one.

Liquid phase fugacity models#

Definition 24 (Fugacity Model Liquid)

Consider a liquid phase system composed of the chemical species set \(\mathcal{M}\). The fugacity of component \(i\) in a mixture of \(\mathcal{M}\) components, denoted as \(\hat{f}^{l}_{i}\), is given by:

(50)#\[\hat{f}^{l}_{i} = \hat{\gamma_{i}}x_{i}\phi^{sat}_{i}P^{sat}_{i}\qquad{\forall{i}\in\mathcal{M}}\]

where \(\hat{\gamma_{i}}\) is called the activity coefficient for component \(i\), \(x_{i}\) denotes the mole fraction of component \(i\), \(P^{sat}_{i}\) denotes the saturation pressure for component \(i\), and \(\phi^{sat}_{i}\) denotes the vapor phase fugacity coefficient for pure component \(i\) at the saturation pressure.

As the liquid phase moves toward ideality, \(\hat\gamma_{i}\rightarrow{1}\).

Modeling the liquid phase is difficult; it is a hard problem to model liquids (much harder than the gas phase or solids). Thus, when considering the liquid phase reference state, we turn the problem into one we can solve, namely a gas phase problem. Following the idea of the gas phase reference state, suppose we defined our liquid phase reference state as:

\[\hat{f}^{l,\circ} = x_{i}f^{l}_{i}\]

where \(x_{i}\) denotes the liquid phase mole fraction of component \(i\), and \(f^{l}_{i}\) denotes the reference fugacity of pure component \(i\) in the liquid phase. However, suppose we think of pure component \(i\) in the liquid as being in equilibrium with pure component \(i\) in the vapor; then we can write:

\[f^{l}_{i} = \phi^{sat}_{i}P^{sat}_{i}\]

using the fugacity matching condition. This approach to modeling the liquid reference state is called the Lewis-Randall reference state. Lewis-Randall assumes that like-like interactions are dominant and is typically better for concentrated solutions (one component in excess). Alternatively, we could have chosen the Henry’s law reference state, which is better for dilute solutions. In any case, let’s stick with Lewis-Randall. Putting all these ideas together gives the excess Gibbs energy expression for the liquid phase as:

(51)#\[\bar{G}_{i}^{E,l} = RT\ln\hat{\gamma}_{i}\qquad{\forall{i}\in\mathcal{M}}\]

Observation 18

As the liquid phase moves toward ideality, the Gibbs excess (residual) energy \(\bar{G}_{i}^{E,l}\) goes toward zero, which implies the activity coefficient \(\hat{\gamma}_{i}\) moves towards one.


Summary#

This lecture introduced the theoretical and actionable basis for modeling multicomponent phase equilibrium. In particular we