ethane mole fraction 0.20
show all curves

This Demonstration shows a pressure–temperature (\(P\)–\(T\)) diagram for an ethane/heptane mixture in vapor–liquid equilibrium. For each ethane mole fraction \(x_1\), the liquid (bubble-point) curve is drawn in blue and the vapor (dew-point) curve in green. Curves are shown at six fixed mole fractions; use the slider to add a dashed curve at the selected value \(x_1\).

Along each curve the two phases are in equilibrium, so that

$$y_i\,P = x_i\,P_i^{\text{sat}}, \qquad x_1 + x_2 = 1, \qquad y_1 + y_2 = 1,$$

where \(x_i\) and \(y_i\) are the liquid and vapor mole fractions of component \(i\) (\(i=1\) for ethane, \(i=2\) for heptane) and \(P_i^{\text{sat}}\) is the saturation pressure. The critical locus (black curve) connects the critical points \((T_c,\,P_c)\) of all ethane/heptane mixtures. Uncheck “show all curves” to display only the pure components and the selected mole fraction.

At equilibrium the partial pressures of each component in the vapor and liquid phases are equal, which for an ideal solution gives Raoult’s law:

yi P = xi Pisat,

x1 + x2 = 1,

where xi and yi are the liquid and vapor mole fractions of component i (i = 1 for ethane and i = 2 for heptane) and Pisat is the saturation pressure.

The saturation pressures are calculated using the Antoine equations:

Pisat = 10(Ai − Bi/(T + Ci)),

where Ai, Bi and Ci are Antoine constants and T is temperature.

The Peng–Robinson equation of state for mixtures is used to determine the phase envelope and the critical locus. The critical point is where the bubble and dew curves meet; connecting these points is the critical locus. The K-values are calculated:

Ki = yi/xi,

Ki = φiLiV.

The fugacity coefficient φk is calculated:

ln φk = (B/Bk)(Zk − 1) − ln(Zk − Bk) − [Ak/(22 Bk)] ln[(Zk + Bk(1+2))/(Zk + Bk(1−2))] (2Σj xjAj/Ak − B/Bk),

A = am P/(R2T2),   B = bm P/(RT),

where Z is the compressibility factor, the superscript k = (L, V) is for liquid and vapor, A and B are constants, and P is pressure.

For a mixture:

am = ΣiΣj xi xj aij,   aij = aiaj (1 − kij),   bm = Σi xi bi,

ai = 0.457 (R2Tci2/Pci) (1 + κi(1 − T/Tci))2,

bi = 0.0778 (R Tci/Pci),   κ = 0.37464 + 1.54226 ωi − 0.26992 ωi2,

where am and bm are the attraction and repulsion factors for the mixture, ai and bi are the attraction and repulsion parameters for the pure component, kij = 0 is the binary interaction parameter, Tc and Pc are the critical temperature and pressure, κ is a simplification term, and ω is the acentric factor.

The equation Z3 + α2Z2 + α1Z + α0 = 0 is solved for the compressibility factor,

α2 = B − 1,   α1 = A − 3B2 − 2B,   α0 = −AB + B2 + B3,

where α2, α1 and α0 are constants.

This simulation was created in the Department of Chemical and Biological Engineering at University of Colorado Boulder for LearnChemE.com by John L. Falconer using Claude AI. It is a JavaScript/HTML5 implementation of a Mathematica simulation by Adam J. Johnston and Rachael L. Baumann. It was prepared with financial support from the National Science Foundation (DUE 2336987 and 2336988). Address any questions or comments to LearnChemE@gmail.com.