Quick refresher
- The equilibrium ratio shows how many times richer in a component the gas is than the liquid. Here and are the mole fractions of the component in the gas and in the liquid. Light components have , heavy ones .
- At low pressure, for components below their critical temperature, , where is the vapour pressure of the pure component (Raoult's and Dalton's laws). At reservoir pressures also depends on the compositions of the phases. It is calculated from an equation of state (a formula that links the pressure, volume and temperature of a fluid) as a ratio of fugacity coefficients.
- For known , the gas fraction is the root of the Rachford–Rice equation, the value of that makes it equal zero. The function is monotonic (it always falls as grows), and a root between 0 and 1 exists only if the mixture is two-phase.
- Bubble point pressure: . Dew point: . Here is the mole fraction of the component in the whole mixture. Both conditions are the same Rachford–Rice equation, taken at and at .
- The stability test is the strict way to check whether a mixture is single-phase: a trial phase with means that the mixture splits into two phases.
- The equation-of-state calculation is a loop: → Rachford–Rice → phase compositions → roots (compressibility factors) and fugacity coefficients → new . It repeats until the fugacities of each component are equal in the two phases.
equilibrium ratio; the second equality follows from equality of fugacities
Rachford–Rice equation for the mole fraction of gas
compositions of the equilibrium phases
bubble point pressure and dew point pressure
- Using ideal at reservoir pressures and for components above their critical temperature.
- Solving for the gas fraction from the single condition . It always holds at , so the search lands on this false root.
- Confusing the mole fraction of gas with the volume fraction: in the lesson example, gas making up 32% of the moles occupies 52% of the volume.
- Treating a root outside the interval from 0 to 1 as a program error. For the given it is a sign of a single-phase mixture.
- Mistaking a calculation that converges to identical phases () for a two-phase equilibrium.
After this lesson you can
- explain what phase equilibrium and the equilibrium ratio are, and why at reservoir pressures it depends not only on pressure and temperature but also on composition
- calculate the gas fraction and the phase compositions from known by solving the Rachford–Rice equation, and check the result
- write the conditions for the bubble point pressure and the dew point in terms of and explain how they are found by iteration (improving a first guess again and again)
- check whether a mixture is single-phase from the signs of the Rachford–Rice function and with the stability test
- describe the equation-of-state equilibrium loop, from the initial to equal fugacities (a fugacity measures the tendency of a component to escape from a phase), and explain what slows its convergence
Phase equilibrium and equilibrium ratios
Imagine a cell in which an oil has separated into gas and liquid. Molecules keep crossing the boundary between the phases in both directions. For each component, the flow from the liquid into the gas can become equal to the flow back. Then the fractions and compositions of the phases stop changing, and the phases are in equilibrium. In a reservoir, pressure and temperature change slowly, over days and years. Equilibrium in the pores is reached much faster, so we treat the gas and oil at every point of the reservoir as being in equilibrium. We make the same assumption for a separator (the vessel that splits the well stream into gas and liquid). For a well or a pipeline, we make it for each section.
The equilibrium ratio (K-value) describes how a component is shared between the phases. It is the ratio of the component's mole fractions in the gas and in the liquid. We use the same symbols as in the lesson Composition of reservoir fluids: is the mole fraction of the component in the whole mixture, in the liquid and in the gas. A component with “prefers” the gas; one with prefers the liquid.
- equilibrium ratio of component , —
- mole fractions of the component in the equilibrium gas and liquid, fraction
Units: dimensionless
- The gas and the liquid are in equilibrium at the same pressure and temperature.
- The name “constant” is conventional: changes with pressure and temperature, and at high pressures also with the compositions of the phases.
For methane at reservoir conditions is usually greater than 1, for heavy hydrocarbons much less than 1. The more the equilibrium ratios of the components differ, the more cleanly the mixture separates into a light gas and a heavy liquid.
For a mixture of similar molecules at low pressure, the equilibrium ratios follow from Raoult's and Dalton's laws (bubble point pressure of an ideal mixture). The partial pressure of a component above the liquid, , equals its partial pressure in the gas, . (The partial pressure is the part of the total pressure that this one component supplies.)
- vapour pressure of the pure component (the pressure at which it boils) at the temperature of the mixture, MPa
- absolute pressure in the system, MPa
Units: absolute pressures, in the same units
- An ideal solution (Raoult's law) and an ideal gas (Dalton's law): low pressures, and molecules close in size and structure.
- The temperature is below the critical temperature of the component (the highest temperature at which it can be a liquid). Above it there is no vapour pressure.
The ideal equilibrium ratio depends only on pressure and temperature. When the pressure is halved, it doubles. It does not depend on the composition of the mixture at all.
When the vapour pressure of a component is unknown, we estimate it from a straight line on a plot of against . The line is drawn through the critical point and through the point at . The position of that point is set by the acentric factor, a number that shows how far the shape of the molecule departs from a sphere (acentric factor). This gives Wilson's formula: the ideal equilibrium ratio written with the critical constants (the critical pressure and temperature).
- critical pressure and temperature of the component, MPa, K
- acentric factor of the component, —
- absolute pressure and temperature of the mixture, MPa, K
Units: pressures in the same units, temperatures in kelvins
- This is the ideal ratio , with the vapour pressure found from two reference points. The compositions of the phases are not taken into account.
- For components above their critical temperature (methane and nitrogen at reservoir temperature), the “vapour pressure” is only the straight line continued beyond the critical point. It has no physical meaning.
- It works as a first guess for iterations, and as a rough estimate at low pressures. The more accurate empirical correlations are in the lesson Equilibrium ratios: correlations and equations of state.
The number 5.373 follows from the definition of the acentric factor. The straight line passes through the point , where . So . In the literature and in software the formula is usually printed with the rounded number 5.37. The ratios then differ by less than one per cent (for the heaviest fractions at low temperature, by 1–2%), which does not matter for a first guess. The examples of the lesson use 5.373.
At reservoir pressures, ideal equilibrium ratios can be wrong by a factor of several. At 90 °C methane is far above its critical temperature, so its “vapour pressure” is a fiction. The liquid holds methane because methane dissolves in it, not because of evaporation. There is a second reason. At high pressure the gas becomes dense and dissolves heavy components, so the equilibrium ratios of all the components move closer together. They tend towards one where the gas and the liquid become identical. The pressure at which the equilibrium ratios of a mixture would all reach one is called the convergence pressure. Empirical tables of equilibrium ratios are built on it (Equilibrium ratios: correlations and equations of state). The strict way is to calculate the ratios with an equation of state, from the equality of the fugacities of each component in the two phases (fugacity): . The last section of the lesson covers this.
Chart on logarithmic axes: pressure from 0.2 to 20 MPa, equilibrium ratio from 0.0001 to 1000. The dashed straight lines of Wilson's formula fall in inverse proportion to pressure. The solid curve of methane lies below its dashed line everywhere and falls more slowly; the propane curve at low pressure is below its dashed line, crosses it near 4 MPa and flattens out near 0.6. The n-hexane and n-decane curves almost coincide with their dashed lines at low pressure, then pass through a minimum and rise towards the bubble point pressure: for decane up to 0.035 instead of the 0.0005 given by Wilson's formula. A vertical dashed line marks the bubble point pressure of 15.2 MPa.
Flash calculation: the Rachford–Rice equation
The main task in equilibrium work is the flash calculation. A mixture of known composition , at pressure and temperature , separates into gas and liquid. We have to find the gas fraction and the compositions of the phases. Suppose the equilibrium ratios at these conditions are known. Take 1 mole of the mixture. moles pass into the gas, and moles remain in the liquid. The balance for one component is : what the mixture contains equals what the two phases contain. Together with , it gives the phase compositions at once in terms of one unknown, .
- mole fraction of the component in the original mixture, fraction
- mole fraction of the gas phase: how many moles out of each mole of the mixture ended up in the gas (not a volume), fraction
- equilibrium ratio at the given and , —
- mole fractions of the component in the liquid and in the gas, fraction
Units: dimensionless
- The phases are in equilibrium and the are known.
- There are two hydrocarbon phases; formation water does not take part in the hydrocarbon equilibrium and is accounted for separately.
- The balances are written per 1 mole of the mixture; the mole fraction of the liquid phase is .
As the gas fraction grows, the liquid holds fewer light components (those with ) and more heavy ones (those with ).
We can find from the condition that the fractions in each phase add up to one. But the condition taken alone is already true at (then ), and is already true at . A numerical search easily lands on these false roots. It is safer to subtract one condition from the other: . This is the Rachford–Rice equation, proposed in 1952.
- Rachford–Rice function: the difference between the sums of the mole fractions in the gas and in the liquid, —
- mole fraction of the gas phase, —
- composition of the mixture and equilibrium ratios, —
Units: dimensionless
- The equilibrium ratios at the given and are known and do not depend on (in an equation-of-state calculation they are refined in an outer loop).
The function decreases all the way (monotonically), so it has a single root. Its values at the two ends tell us the state of the mixture: and . If and , the root lies between 0 and 1 and the mixture is two-phase. The equation is solved by Newton's method (improving a guess step by step), backed up by bisection (repeatedly halving an interval that contains the root); see the advanced section.
- Mixture, mole fractions
- methane 0.45; propane 0.15; n-hexane 0.15; n-decane 0.25
- Conditions
- 8 MPa (absolute), 90 °C
- Equilibrium ratios
- 3.416; 0.6471; 0.09523; 0.009552, calculated with the Peng–Robinson equation of state (the last section shows how)
- Check the state of the mixture. , so the mixture is at a pressure below its bubble point pressure. , so it is above the dew point. So there are two phases and .
- Newton's method, starting from : , derivative ; . Two more steps give and . The root is found: .
- Liquid: = 0.2538; 0.1691; 0.2111; 0.3660. Gas: = 0.8670; 0.1094; 0.0201; 0.0035. Sums: , .
- Where each component went: the share passed into the gas. This is 62% of the methane, 23% of the propane, 4.3% of the hexane and 0.45% of the decane.
- Molar masses of the phases: liquid g/mol, gas g/mol.
What it means. 62% of the methane goes into the gas, but 38% of it stays dissolved in the liquid. The heavy components stay almost entirely in the liquid. The gas also carries off a noticeable share of the propane and a little hexane. At the surface they partly condense, and the separator calculation takes this into account (Separator calculations and optimum separator pressure). Newton's method converges in three steps because is smooth and monotonic. The data in this example are assumed for illustration.
Chart of the function g(V) from −2 to 1 against the mole fraction of gas V from 0 to 1. The curve for 8 MPa starts at V = 0 at a level of 0.65 and crosses zero at V = 0.320; the curve for 12 MPa starts at 0.19 and crosses zero at V = 0.163. Both curves decrease monotonically, converge and drop steeply near V = 0.85. Vertical dashed lines mark the roots; the note reads: g(0) greater than zero and g(1) less than zero: two phases.
Bubble point pressure and dew point
The two edges of the two-phase region are special cases of the same calculation. At the bubble point there is no gas yet (). The liquid has the composition of the mixture, , and the first gas bubble has the composition . At the dew point () the gas has the composition of the mixture, and the first drop of liquid has the composition . We require that the fractions in the new phase add up to one. This condition becomes an equation for the pressure.
- bubble point pressure (for an oil, the saturation pressure), MPa
- dew point pressure (the pressure at which condensation begins), MPa
- equilibrium ratios at this pressure and the composition of the phase that appears, —
- composition of the mixture, fraction
Units: absolute pressures
- The are calculated for the pair “mixture and new phase”: at the bubble point pressure, for a liquid of composition and a bubble of composition .
- At one temperature a gas condensate can have two dew points: an upper one (retrograde) and a lower one.
These are the conditions and : the Rachford–Rice function at its two ends. The depend on the pressure and on the composition of the phase that appears, so the equations are solved by iteration. Choose a pressure, calculate the , check the sum and improve the pressure. For ideal ratios , the first equation gives the explicit formula . This is Raoult's law from the lesson Phase behaviour: pure substances and binary mixtures.
- Mixture and temperature
- the model oil of the example above, 90 °C ( K)
- Equation of state
- Peng–Robinson; (the binary interaction coefficients, which tune how pairs of components interact): methane–hexane 0.03, methane–decane 0.04, the rest 0 (assumed values of a typical order)
- Ideal estimate. By Wilson's formula with : = 60.77; 3.788; 0.1875; 0.007695 MPa (methane, propane, hexane, decane). The condition gives MPa.
- Equation of state. Adjust the pressure until the fugacities of each component are equal in the liquid of composition and in the gas bubble. This gives MPa. The equilibrium ratios at this pressure are 1.946; 0.6078; 0.1625; 0.03452. Check: .
- Composition of the first bubble : methane 0.876, propane 0.091, hexane 0.024, decane 0.0086.
- Cross-check with the stability test (next section): at 15.0 MPa the oil is unstable (), and at 15.5 MPa it is stable (). The boundary lies between them.
- Sensitivity: if all the are set to zero, MPa.
What it means. At the bubble point pressure the ideal formula gives methane the equilibrium ratio , while the equation of state gives 1.946. In a dense system the liquid holds methane much more strongly than its “vapour pressure” would suggest (at this temperature methane has no real vapour pressure). The interaction coefficients of methane with the heavy components change the bubble point pressure by 1.2 MPa. That is why they are the ones adjusted to match the measured bubble point pressure when the equation is tuned (Cubic equations of state). The data in this example are assumed for illustration.
Is the mixture single-phase: the stability test
Before we split a mixture into phases, we must know whether it splits at all. If the equilibrium ratios are known, the signs of and give the answer. If , the mixture is a liquid (the pressure is not below the bubble point pressure). If , it is a gas. Otherwise it is two-phase. But in an equation-of-state calculation the equilibrium ratios depend on the compositions of phases that do not exist yet, so this check goes in a circle.
The stability test gives a strict answer. Its idea: a mixture is stable if no small portion of a new phase, of any composition, can separate out and lower the Gibbs energy (the energy that a mixture at fixed pressure and temperature tends to make as small as possible). We check this numerically. We search for the composition of a trial phase that forms most “easily” from the mixture. In the trial phase the fugacity of each component must be the same as in the original mixture. If this requires a total amount of trial phase, , greater than one, the mixture is unstable and will split.
- “amounts” of the components of the trial phase, not yet scaled to add up to one; the initial values are (gas-like trial) or (liquid-like) with from Wilson's formula, —
- composition of the trial phase, fraction
- fugacity coefficients of the component in the original mixture and in the trial phase (from the equation of state), —
Units: dimensionless
- The iterations are repeated until stops changing. Both trials are checked: the gas-like one and the liquid-like one.
- If the trial converges to the composition of the mixture itself (, the trivial solution), it tells us nothing.
- The mixture is unstable (two-phase) if for at least one non-trivial trial.
The composition found for an unstable mixture is a good first guess for a flash calculation. At a saturation pressure it is exactly the composition of the first bubble or the first drop. So the stability test is also a way to find saturation pressures: we change the pressure until equals one.
- Mixture, mole fractions
- methane 0.87; propane 0.07; n-hexane 0.03; n-decane 0.03
- Temperature
- 90 °C; equation and as in the previous example
- At 30 MPa both trial phases converge to the composition of the mixture itself. This is the trivial solution: the mixture is single-phase, a gas.
- At 20 MPa the gas-like trial is trivial, while the liquid-like one converges to a composition different from that of the mixture, with . The mixture is unstable: liquid drops out of the gas.
- Halve the interval 20–30 MPa again and again, keeping a stable mixture at one end and an unstable one at the other. After several tens of halvings (bisections) we get the upper dew point MPa.
- Composition of the first drop (the trial phase at , scaled to add up to one): methane 0.6603, propane 0.0954, hexane 0.0785, decane 0.1658. The equilibrium ratios are 1.318; 0.734; 0.382; 0.181, and the check holds.
- Repeat the same steps at low pressures: at 0.25 MPa , at 0.20 MPa 0.907. The lower dew point is MPa. The first drop there is 95% decane.
- Between the dew points the mixture is two-phase. A flash calculation with the same model shows that the liquid occupies up to 6.3% of the volume near 18 MPa.
What it means. Below the upper dew point, retrograde condensation begins: liquid appears as the pressure falls, not as it rises (lesson on phase behaviour). The first drop is still 66% methane. It is a light liquid, close to the gas in composition. That is exactly why the calculation is hard at the upper dew point: the trial phase easily slides into the trivial solution. The lower dew point is an ordinary one: the last liquid is almost pure decane. If a gas-condensate reservoir is produced with the pressure falling below 24.7 MPa, the heavy components will drop out as liquid in the pores (Types of reservoir fluids). The data in this example are assumed for illustration.
Equilibrium calculation with an equation of state
At reservoir pressures the equilibrium ratios do not come from tables. They come from the equilibrium condition: the fugacity of each component in the liquid equals its fugacity in the gas (lesson on equations of state). From it follows that . But the fugacity coefficients depend on the compositions of the phases, and the compositions depend on the equilibrium ratios. We break this circle by iteration, in the successive substitution method: guess the ratios, calculate the new ones, put them back in, and repeat.
- 1Initial equilibrium ratios
Take them from Wilson's formula (or from the previous time step, or from the stability test).
- 2Gas fraction and compositions
Solve the Rachford–Rice equation and find and .
- 3Equation of state for each phase
From the liquid composition, calculate , and the smallest root (the compressibility factor of the liquid). From the gas composition, calculate the largest root (the compressibility factor of the gas) (choice of root).
- 4Fugacities
Calculate the fugacity coefficients and and the fugacities , .
- 5Check
If the fugacities agree (see the criterion below), the calculation is finished. If not, calculate new ratios and go back to the second step.
- fugacities of the component in the liquid and in the gas at the current iteration, MPa
- tolerance (the allowed error); in the lesson example, —
Units: dimensionless
- The fugacities are calculated with one equation of state for both phases at the same and .
The ratio equals the ratio of the new equilibrium ratio to the old one, so a small means that the equilibrium ratios have stopped changing.
- Mixture and conditions
- model oil, 8 MPa (absolute), 90 °C
- Equation
- Peng–Robinson; component constants from the lesson Cubic equations of state; as in the bubble point pressure example
- Initial ratios from Wilson's formula (): 7.60; 0.474; 0.0234; 0.000962.
- Rachford–Rice with these ratios: ; liquid = 0.119; 0.193; 0.255; 0.433; gas = 0.902; 0.091; 0.0060; 0.0004.
- Equation of state: for the liquid , for the gas . Fugacity coefficients in the liquid: 3.4468; 0.39466; 0.031813; 0.0014841; in the gas: 0.92945; 0.61783; 0.37537; 0.19494.
- New ratios : 3.708; 0.6388; 0.08475; 0.007613. The criterion is : the fugacities are still far apart, especially for decane.
- Further iterations give = 0.064; 0.00093; 0.0000156; … Each step reduces it tens of times. After 9 updates, . The ratios are 3.416; 0.6471; 0.09523; 0.009552, and the gas fraction is . These are the very values from which the flash calculation example started.
- Properties of the phases: , ; molar masses 81.8 and 20.96 g/mol; densities : liquid 567 kg/m³, gas 63.5 kg/m³ (without volume translation, a correction that improves the calculated liquid density).
- Molar volumes : liquid 0.1442, gas 0.3299 m³/kmol. The volume of the gas is , of the liquid m³ per kilomole of the mixture: the gas occupies 52% of the volume.
What it means. The first iteration from Wilson's ratios gave the right order of magnitude: 42% of the moles in the gas instead of 32%. But for the heavy components it was wrong several-fold: the equilibrium ratio of decane came out 10 times smaller than the final one. The fugacity coefficient of methane in an oil is greater than one: the liquid “pushes out” methane, which is why its . In a reservoir simulation model the first ratios come from the previous time step, and a few iterations are usually enough. Convergence is worst near the critical point of the mixture, where the two phases are almost identical. There, successive substitution needs hundreds of iterations, and programs switch to Newton's method. The density of the liquid without volume translation can be off by a few per cent (volume translation). The data in this example are assumed for illustration.
Chart of the gas-phase fraction in per cent from 0 to 100 against pressure from 0 to 16 MPa. Both curves start from zero at the bubble point pressure of 15.2 MPa and rise as the pressure falls. The mole fraction of gas reaches 32 per cent at 8 MPa and 65 per cent at 0.5 MPa; the volume fraction grows faster: 52 per cent at 8 MPa and almost 100 per cent at 0.5 MPa.
What the results give and where the limits of the calculation lie
- Volumes and saturations. The equation of state gives the densities and molar volumes of the phases from their compositions. From these we get the volume fractions, which in a model cell become the gas and oil saturations (the shares of the pore space filled with gas and with oil).
- Properties for flow. Separate correlations give the viscosity and interfacial tension from the compositions and densities of the phases. Near the critical point the relative permeabilities (how easily each phase flows when both are present) also depend on interfacial tension.
- Surface production. The reservoir gas and liquid pass through several stages of separation, and the same flash calculation is done at each stage. The gas–oil ratio and the oil formation volume factor are built up from these calculations (Separator calculations and optimum separator pressure).
- Quick estimates. For preliminary calculations we use empirical correlations of equilibrium ratios that take the convergence pressure into account (Equilibrium ratios: correlations and equations of state).
Terms and symbols
- Equilibrium ratio
- The ratio of the mole fractions of a component in the equilibrium gas and liquid, . It depends on pressure, temperature and the compositions of the phases.
- Flash calculation
- The calculation of the gas fraction and the compositions of the equilibrium phases of a mixture of known composition, at a given pressure and temperature.
- Mole fraction of the gas phase
- The fraction of the moles of the mixture that ended up in the gas. Do not confuse it with the volume fraction of gas.
- Rachford–Rice equation
- The equation for the gas fraction. Its left-hand side always decreases as grows, so the equation is solved reliably.
- Stability test
- A check of whether a mixture can separate out a new phase and lower its Gibbs energy. Instability means that the mixture splits into two phases.
- Trivial solution
- An iteration result in which the trial phase, or the “second” phase, has the same composition as the original mixture. It is a sign of a single-phase state, or of difficulties near the critical point.
- Successive substitution
- Iterations in which the new equilibrium ratios are taken as the ratio of the fugacity coefficients calculated with the old ones.
- Convergence pressure
- The pressure at which the equilibrium ratios of all the components of a mixture, at a given temperature, would reach one. It is a parameter of empirical correlations of equilibrium ratios.
Common mistakes and misconceptions
“The ratios are good for a reservoir too.”
Ideal ratios are valid at low pressure and for components below their critical temperature. For the oil of the lesson they overestimated the bubble point pressure by 84%. At reservoir pressures the ratios are calculated from an equation of state.
“I'll find by trial from the condition .”
This condition holds at for any ratios, so a search finds a false root. The reliable form is the Rachford–Rice one: the difference , which is monotonic in .
“I got — a bug in the program.”
A root outside the interval from 0 to 1, for the given ratios, means a single-phase mixture: is a gas, a liquid. The stability test gives the final check.
“A third of the moles went into the gas, so the gas occupies a third of the volume.”
A mole of gas takes more volume than a mole of liquid. In the lesson example at 8 MPa the gas, 32% of the moles, occupies 52% of the volume, and at low pressure the difference is even greater.
“The calculation has converged, so the answer is right.”
Iterations can converge to a trivial solution with identical phases. If the ratios come out close to one, check the mixture with the stability test.
In depth: advanced detail
Why the Rachford–Rice equation is solved reliably
The derivative of the Rachford–Rice function (its slope) is a sum of negative terms, so the function always falls between its poles, and , where the denominators become zero. The root between the poles is unique, and Newton's method backed up by bisection always finds it.
- derivative of the Rachford–Rice function with respect to , —
- approximation of the gas fraction at step , —
Units: dimensionless
- At least one equilibrium ratio is greater than one and at least one is less than one. Otherwise there are no poles on both sides, and the mixture is single-phase for any .
- If a Newton step goes outside the current interval in which changes sign, take a bisection step instead.
The poles lie outside the interval from 0 to 1 (the left one at negative , the right one at ). If the root is outside the range from 0 to 1 but still between the poles, the calculation is called a “negative flash”. It shows on which side of the two-phase region the mixture lies, and in some programs it replaces the stability test.
The stability test and Gibbs energy
At constant pressure and temperature, a mixture moves towards the minimum of its Gibbs energy. Suppose a small amount of a new phase of composition separates from the mixture. The change in energy is proportional to the distance from the tangent plane to the Gibbs energy surface at the point of the original composition. (The tangent plane touches the surface at that point.) If this distance is negative for some composition, separating such a phase is favourable, because it lowers the energy, and the mixture is unstable.
- dimensionless tangent plane distance (up to a factor ), —
- amounts (not scaled to add up to one) and composition of the trial phase, —
- composition of the original mixture, —
Units: dimensionless
- The fugacity coefficients come from the equation of state. For the original mixture, take the root with the lower Gibbs energy.
At the stationary points of this function (where its slope is zero), the iteration equation of the stability test holds, and there . So at a non-trivial stationary point means a negative distance, that is, instability.
Connections to other topics
- Phase behaviour: pure substances and binary mixtures — Raoult's and Dalton's laws, bubble point pressure and dew point, retrograde condensation.
- Cubic equations of state — cubic equations, the choice of root and the fugacity coefficients from which the equilibrium ratios are calculated.
- Equilibrium ratios: correlations and equations of state — empirical correlations of equilibrium ratios and the convergence pressure; what composition data they need.
- Separator calculations and optimum separator pressure — multistage separation: gas–oil ratio and formation volume factor from successive flash calculations.
- Types of reservoir fluids — oils and gas condensates, dew points and condensate dropout in the reservoir.
- Types of reservoir simulation model — the compositional model, which runs the stability test and the equilibrium calculation in each cell.
Check yourself
- 1
A mixture of three components: = 0.5; 0.3; 0.2; the equilibrium ratios at the given conditions are = 2.5; 0.8; 0.1. What is the state of the mixture?
- A.Gas only
- B.Liquid only
- C.It cannot be said from these data
- D.Gas and liquid
Show the answer
Correct answer: D. Gas and liquid
, so the pressure is below the bubble point pressure. , so it is above the dew point. So and , and the root of the Rachford–Rice equation lies between 0 and 1. The mixture is two-phase (the gas fraction is about 0.54).
- 2
A binary mixture: , , , . Find the mole fraction of gas and the compositions of the phases.
Show the answer
The Rachford–Rice equation: . This gives and . Liquid: , ; gas: , . The sums of the fractions in both phases equal one.
- 3
How do the gas-phase fraction and the equilibrium ratio of methane change when the pressure of an oil is reduced from the bubble point pressure at constant temperature?
- A.Both increase
- B.The gas fraction increases, the methane ratio falls
- C.The gas fraction increases, the methane ratio does not change
- D.Both fall
Show the answer
Correct answer: A. Both increase
Below the bubble point pressure more and more gas is released from the oil, and grows from zero. The equilibrium ratio of methane grows too: in the figure of the lesson, from 1.95 at 15.2 MPa to 3.4 at 8 MPa and 25 at 1 MPa. It would stay unchanged only over a narrow range, where the change is too small to see. For heavy components the dependence may even be non-monotonic (it can fall first and then rise).
- 4
Why, for the lesson's model oil at 0.2 MPa and 90 °C, is the ideal equilibrium ratio of methane (304) 2.4 times greater than the one calculated from the equation of state (127), while for n-hexane the two estimates almost coincide?
Show the answer
The ideal equilibrium ratio is the vapour pressure divided by the pressure. Hexane at 90 °C is below its critical temperature, so it has a vapour pressure, and at low pressure Raoult's and Dalton's laws work for it. Methane at 90 °C is far above its critical temperature. Its “vapour pressure” is only a straight line continued beyond the critical point. The liquid holds methane because methane dissolves in it, and the ideal formula does not describe that.
- 5
A stability test of an oil at 16 MPa gave for the gas-like trial, while the liquid-like trial converged to the composition of the oil itself. What does this mean?
- A.The oil is single-phase: the pressure is above the bubble point pressure
- B.The oil has turned into a gas
- C.The calculation did not converge
- D.The oil is two-phase: gas is released
Show the answer
Correct answer: A. The oil is single-phase: the pressure is above the bubble point pressure
A non-trivial trial with means that releasing gas would not lower the energy, and a trivial trial tells us nothing. So the oil is stable and single-phase: the pressure is above the bubble point pressure (in the lesson example it is 15.2 MPa).
- 6
At 10 MPa the lesson's model oil splits as follows: the mole fraction of gas is 0.25, but the gas occupies 38% of the volume. Explain the difference and say what the ratio of the volume and mole fractions depends on.
Show the answer
The volume of a phase is its number of moles times the molar volume . A mole of gas takes more volume than a mole of liquid (at 10 MPa about 1.9 times more: the ratio ). So the gas takes a larger share of the volume than of the moles. The lower the pressure, the greater this ratio: at 8 MPa 32% of the moles occupy 52% of the volume, and near atmospheric pressure the gas occupies almost the whole volume.
Updated: 28 October 2026