Module Goal: To establish the basic framework for vapor-liquid equilibrium calculations.
Module Objective: To formulate the basic governing equations for performing flash calculations.
In a previous module we derived two different objective functions for the purpose of solving the flash equilibrium problem. Let us take a closer look at these equations:
(13.1a)
(13.1b)
These equations arise from simple mole balances and the concept of equilibrium ratios. As we discussed before, if we are given {zi; i = 1,2,…,n} and, if for some reason, let us say, we are able to obtain all the equilibrium ratios {Ki; i = 1,2,…,n}; the only unknown in these objective functions would be the vapor fraction ‘’.
Once we are able to solve for this , we will have no problem applying any combination of equations (12.5), (12.7), and (12.11) to solve for all the vapor and liquid compositions at equilibrium {yi, xi}:
(12.5)
(12.7)
(12.11)
With all this information, the VLE problem would be completely solved. With the compositional information and the use of suitable equations of state and correlations, we can then find all other related properties, such as densities, viscosities, molecular weights, etc. This is why we call these the objective functions once we have solved them, we have achieved the objective of the VLE calculation.
Of course one question remains unanswered — how do you solve for that ‘ g’, which is buried inside those expressions? And secondly, which of the two objective functions that are available to us shall we use? It turns out that the answers to these questions are tied to one another. In fact, the proper objective function that we shall use to solve for ‘g’ is the same equation that simplifies the process of solving for that unknown.
To come up with these answers, the first thing that we have to notice is that both expressions are non-linear in g. This means that we cannot express ‘g’ explicitly as a function of the other variables. What do we use to solve equations that are non-linear in one variable? Doesn’t this ring a bell? We apply iterative techniques. And the classical iterative technique is the Newton-Raphson procedure. Now we can provide an answer to both of the questions that we just asked.
A distinctive characteristic of any Newton-Raphson procedure is that the success of the procedure depends greatly upon the choice of the initial guess for the variable considered. In fact, it is very commonly said that for Newton-Raphson to succeed, the initial guess must be as close as possible to the real solution. This ‘illness’ becomes worse when dealing with non-monotonic functions. In a monotonic function, derivatives at every point are always of the same sign — the function either increases or decreases monotonically. For Newton-Raphson, this means that there are neither valleys nor peaks that could lead the procedure to false solutions. If you apply Newton-Raphson to a monotonic and everywhere-continuous function, the success of the procedure is not dependent on the initial guess. In fact, if you apply Newton-Raphson to a monotonic function that is continuous at every single point of the domain as well, it does not matter at all where you start: you will always find the solution. It might take time, but you will be able to converge to a unique solution.
Why does this matter when dealing with equations (13.1)? The fact of the matter is that equations (13.1) are not monotonic, and this does not make things easier. If, as an exercise, you plot them as a function of g or take the derivative, you will realize that both functions may change the sign of their first derivatives for different values of g.
This poses a problem, obviously. You will not get a unique solution by applying Newton-Raphson, and you might end up with the wrong solution. Rachford and Rice (1952) recognized this problem and came up with a suggestion. They proposed a new objective function, based on equations (13.1), which simplifies the application of the Newton-Raphson procedure.
They combined equations (13.1) by subtraction to yield:
(13.2)
Hence, the new objective function becomes:
(13.3)
Equation (13.3) is known in the literature as the Rachford-Rice Objective Function. Rachford and Rice combined two very well known objective functions into a single objective function. Are there advantages to this “new” approach?
The wonderful news is that equation (13.3) is monotonic. The implication of this is that equation (13.3) is better suited for Newton-Raphson application than equations (13.1). How do you demonstrate the monotonic character of the Rachford and Rice objective function? To do this, we take the first derivative of the function:
(13.4)
Every item within the summation sign is positive — this is guaranteed by the squares in the numerator and the denominator and the fact that all compositions are positive. Hence, the derivative expression in (13.4) has no choice but to be negative, and the Rachford-Rice Objective function has been proven to be a monotonically decreasing function. With this approach, Rachford-Rice removed a major headache from the Vapor-Liquid Equilibria problem.
A remaining weakness of the Rachford-Rice objective function is that, although monotonic, it is not continuous at all points of the domain. By inspection, you can see that the function has ‘n’ singularities (as many singularities as components in the mixture), because it becomes singular at values of ‘ ’ equal to:
(13.5)
Hence, you may still face convergence problems if the procedure crosses any of the singularities. If, by any means, one is able to keep the Newton-Raphson procedure within values of where a physically meaningful solution is possible (within the two asymptotes where the values 0 < < 1 are found), the monotonically decreasing feature of the Rachford-Rice equation would guarantee convergence.
(13.3)
Equation (13.3) is a non-linear equation in one variable, and the Newton Raphson procedure is usually implemented to solve it. In general, Newton Raphson is an iterative procedure with a fast rate of convergence. The method calculates a new estimate, , which is closer to the real answer than the previous guess, , as follows:
(13.6)
Substituting (13.3) and (13.4) into (13.6),
(13.7)
In this iterative scheme, convergence is achieved when
(13.8)
where is a small number ( is usually adequate). After solving for , the liquid molar fraction and composition of each of the phases can be calculated as follows:
(13.9a)
(13.9b)
(13.9c)
(12.7)
(12.11)
In the previous development, we made one crucial assumption. We assumed that, somehow, we knew all the equilibrium ratios. The fact is, however, that we usually don’t. If we do not know all equilibrium ratios, then all of the previous discussion is meaningless. So far, the only conclusion we can draw is that if we happen to know Ki’s, the VLE problem is solvable.
The Ki value of each component in a real hydrocarbon mixture is a function of the pressure, temperature, and also of the composition of each of the phases. Since the compositions of the phases are not known beforehand, equilibrium constants are not known, either. If they were known, the VLE calculation would be performed in a straightforward manner. This is because once the equilibrium constants of each component of the mixture are known for the given pressure and temperature of the system, both gas and liquid molar fractions, and al can be calculated by solving the Rachford-Rice Objective Function.
Nevertheless, the good news is that sometimes Ki’s are fairly independent of the phase’s composition. This is true at pressure and temperature conditions away from the critical point of the mixture. Therefore, numerous correlations have been developed throughout the years to estimate the values of Ki for each hydrocarbon component as a function of the pressure and temperature of the system.
To illustrate how Ki may be calculated as a function of pressure and temperature, let us take the case of an ideal mixture. For a mixture to behave ideally, it must be far removed from critical conditions. The fact of the matter is, in an ideal mixture, the partial pressure of a component in the vapor phase (pi) is proportional to the vapor pressure (Psat) of that component when in its pure form, at the given temperature. The constant of proportionality is the molar fraction of that component in the liquid (xi). Then, we have:
(13.10)
Equation (13.10) is known as Raoult’s law. Additionally, if the vapor phase behaves ideally, Dalton’s law of partial pressures applies. Dalton’s law of partial pressures says that the total pressure in a vapor mixture is equal to the sum of the individual contributions (partial pressures) of each component. The partial pressure of each component is a function of the composition of that component in the vapor phase:
(13.11)
Equalizing equation (13.10) and (13.11),
(13.12)
We rearrange equation (13.12) to show:
(13.13)
If we recall the definition of equilibrium ratios, , we readily see:
(13.14)
Since the vapor pressure of a pure substance (Psat) is a function of temperature, we have just shown with equation (13.14) that the equilibrium ratios Ki are functions of pressure and temperature — and not of composition — when we are dealing with ideal substances. Vapor pressure can be calculated by a correlation, such as that of Lee and Kesler.
The estimation of equilibrium ratios (Ki) has been a very intensely researched subject in vapor-liquid equilibria. A number of methods have been proposed in the literature. In the early years, the most common way of estimating equilibrium ratios was with the aid of charts and graphs that provided Ki values as a function of pressure and temperature for various components. Charts provided better estimations of Ki’s than what came from the direct application of Raoult-Dalton’s derivation (equation 13.14). However, the compositional dependency could not be fully captured by the use of charts. Charts remained popular until the advent of computers, when the application of more rigorous thermodynamic models became possible.
Most of the Ki-charts available have been represented by empirical mathematical correlations to make them amenable for computer calculations. You may find a large number of correlations in the literature that would allow you to estimate Ki’s for a range of conditions. A very popular empirical correlation that is very often used in the petroleum and natural gas industry is Wilson’s empirical correlation. This correlation gives the value of Ki as a function of reduced conditions (Pri, Tri: reduced pressure and temperature respectively) and Pitzer’s acentric factor and is written as:
(13.15)
Wilson’s correlation is based on Raoult-Dalton’s derivation (equation 13.14). Therefore, it does not provide any compositional dependency for Ki’s and, as such, it is only applicable at low pressures (away from the critical conditions). We have included this correlation not because of its accuracy, but because it will become the initial guess that is needed to start the Ki-prediction procedure, which we will develop later.
In the following modules, we will develop a rigorous thermodynamic model for predicting equilibrium ratios. As you may anticipate, we will be taking advantage of what we have learned about equations of state in order to build up a phase behavior predictor model. This approach is known as the equation of state approach, or the “fugacity” approach. Even though the “fugacity” approach is the one that we will be covering in detail, you may at some point encounter the fact that equilibrium ratios can also be estimated by using the solution theory or “activity” approach. We will not be discussing the latter, as the former represents the most popular Ki-prediction method in the petroleum and natural gas business.
In order to guarantee a complete understanding of the thermodynamic model which we are about to apply, we need to review the basic concepts of classical thermodynamics. This is the goal for the next couple of modules (Modules 14 through 16). After all of the thermodynamic tools have been given to the reader, we will resume our discussion of Vapor-Liquid Equilibria (Module 17), along with discussing how equations of state come into the picture. Our final goal will be to tie the equilibrium ratio, Ki, to the thermodynamic concepts of chemical potential, fugacity, and equilibrium.
Answer the following problems, and submit your answers to the drop box in Canvas that has been created for this module.
Please note:
In the older literature, “Ki” were referred to as the “equilibrium constants.” Now, they are called the “equilibrium ratios.” Why should that make a difference?
In the analysis of the Rachford-Rice Objective Function, we assumed that there was only one unknown: the gas molar fraction (αg). It this strictly true?