Quick refresher
- A cubic equation is repulsion, , minus attraction, . We calculate the parameters and of each component from its critical temperature and pressure. In the Soave–Redlich–Kwong (SRK) and Peng–Robinson (PR) equations the attraction also depends on temperature, through the acentric factor .
- In terms of the equation is cubic. With one real root there is nothing to choose. With three real roots, the smallest belongs to the liquid and the largest to the gas, and the middle one has no meaning. The number of roots does not tell us whether a mixture is single-phase.
- A mixture uses the same formulas with “average” and . The value is the average by mole fraction. The value is a sum over all pairs of molecules, with corrections for the attraction between unlike molecules.
- Fugacity is a “corrected” pressure. It measures how strongly a component tends to leave a phase. Phases are in equilibrium when the fugacity of each component is the same in all of them.
- SRK and PR reproduce vapour pressures well (the pressure at which a liquid and its vapour are in equilibrium). Their liquid densities have errors from a few per cent (PR) to 7–18% (SRK), and larger for heavy substances. Volume translation corrects this error and does not change the phase equilibrium.
- For a real fluid we tune the equation to laboratory PVT experiments. We tune first of all the constants of the heavy pseudo-components (groups of heavy components treated as one).
general form of two-parameter cubic equations; pressure and temperature are absolute
parameters of a component from the critical constants
dimensionless coefficients of the cubic equation in
mixing rules
fugacity and the condition of phase equilibrium
- Taking the middle root, or the gas root for the liquid.
- Using gauge pressure, or temperature in degrees Celsius.
- Mixing the constants of different equations: of SRK in the PR equation, or from another equation.
- Trusting the liquid density from an equation without volume translation.
- Treating an untuned equation as accurate for a mixture with heavy fractions.
After this lesson you can
- explain how a cubic equation describes the repulsion and attraction of molecules and why one formula gives both gas and liquid
- write the van der Waals, Soave–Redlich–Kwong and Peng–Robinson equations and calculate their parameters from the critical constants and the acentric factor (a number that shows how far a molecule is from a simple spherical one)
- solve the cubic equation for and choose the right root (solution) for the liquid and for the gas
- calculate the parameters of a mixture with the mixing rules and binary interaction coefficients (corrections for pairs of unlike molecules)
- explain what fugacity is, and find the vapour pressure of a pure substance by making the fugacities of its two phases equal
- judge where cubic equations are accurate, where they make errors, and how volume translation and tuning to experiments correct them
From the generalised chart to an equation of state
In the lesson Ideal and real gas: the gas deviation factor (Z) we described a real gas by one correction, the gas deviation factor , which we found from the generalised chart. For natural gas this is convenient and accurate, but the method has limits. The chart describes only a gas. It says nothing about a liquid. It was built from gases that are mostly methane, so for mixtures with a lot of heavy components, carbon dioxide or hydrogen sulfide it needs corrections. Above all, it cannot tell us whether a mixture will split into gas and liquid, or what the compositions of the phases will be.
An equation of state links the pressure , temperature and molar volume in one formula. Suppose the formula correctly reproduces the behaviour of both a dense gas and a liquid. Then the rest follows from it: and the density of each phase, and the vapour pressure of a pure substance. For a mixture it gives the bubble point and dew point pressures (the pressures at which the first gas bubbles, or the first drops of liquid, appear) and the compositions of the equilibrium phases (Vapour–liquid equilibrium). That is why equations of state are the core of compositional reservoir simulation models (Types of reservoir simulation model) and of programs that calculate PVT properties. PVT stands for pressure, volume, temperature: how the volume and phase state of a fluid depend on pressure and temperature.
Many equations of state have been proposed. Multi-parameter ones, for example the Benedict–Webb–Rubin equation (1940) with eight constants for each substance, describe pure light gases accurately. But for mixtures each constant needs its own mixing rule, and the calculation is heavy. In petroleum practice the cubic equations have become the standard. They describe a substance with two parameters, calculated from the critical constants, and the equation can be solved in closed form (by a formula, without repeated trials). This is a decisive advantage when we must find the equilibrium of a mixture of 10–15 components in every cell of a model at every time step, which means millions of times in one run.
- What it describes
- Generalised chart
- gas only
- Cubic equation
- gas, liquid and the equilibrium between them
- Input data
- Generalised chart
- pseudo-critical properties of the mixture
- Cubic equation
- , , of each component and the coefficients
- Phase compositions and saturation pressures
- Generalised chart
- no
- Cubic equation
- yes
- Accuracy of for a dry gas
- Generalised chart
- 1–2%
- Cubic equation
- usually 1–5% without tuning
- Where it is used
- Generalised chart
- gas in place, , gas pipelines
- Cubic equation
- compositional models, gas condensate, gas injection, PVT calculations
| Generalised chart | Cubic equation | |
|---|---|---|
| What it describes | gas only | gas, liquid and the equilibrium between them |
| Input data | pseudo-critical properties of the mixture | , , of each component and the coefficients |
| Phase compositions and saturation pressures | no | yes |
| Accuracy of for a dry gas | 1–2% | usually 1–5% without tuning |
| Where it is used | gas in place, , gas pipelines | compositional models, gas condensate, gas injection, PVT calculations |
The accuracy estimates are approximate and refer to a calculation without tuning to laboratory experiments.
The van der Waals equation: repulsion and attraction
An ideal gas is made of point molecules that do not interact. Van der Waals introduced two corrections, and both are still the basis of modern equations. The first is repulsion. The molecules take up room, so the space left for them to move in is not the whole volume but only . The quantity is called the co-volume: it is the volume to which a kilomole of the substance can be compressed at infinitely high pressure. As comes close to , the pressure grows without limit. This is how the equation reproduces the low compressibility of a liquid.
The second correction is attraction. A molecule at the wall of a vessel is pulled inwards by its neighbours, and its impact on the wall is weaker. The number of attracting pairs is proportional to the square of the density, so the pressure is reduced by . The larger the molecules and the more strongly they “stick together”, the larger the attraction parameter .
- absolute pressure, MPa
- absolute temperature, K
- molar volume, m³/kmol
- universal gas constant, 0.008314 MPa·m³/(kmol·K), MPa·m³/(kmol·K)
- attraction parameter, MPa·m⁶/kmol²
- co-volume — the volume of the molecules themselves in a kilomole of the substance, m³/kmol
Units: metric: MPa, K, m³/kmol (any consistent system)
- and are constants for a substance and do not depend on temperature. This is the main simplification of the equation.
- Pressure and temperature are absolute.
- If , we get the ideal gas equation .
The first term is repulsion. It makes the pressure higher than for an ideal gas. The second is attraction. It lowers the pressure. In a rarefied gas both are small, and the gas is nearly ideal. In a liquid both are large and almost cancel each other, so a small change in the volume of the liquid changes the pressure sharply.
In other unit systems (2)
— psia, — °R, — ft³/lb-mol, — psia·ft⁶/lb-mol², — ft³/lb-mol.
The same gas constant converted to oilfield units (ideal gas equation).
and are dimensionless and the same in any system of units.
It comes from substituting .
Van der Waals tied the parameters and to the critical point (critical point). On the isotherm , the pressure at the critical point neither falls nor rises as the volume changes, and the curve changes its bend. The first and second derivatives of the pressure with respect to the volume are zero. These two conditions, together with the equation itself, give three relations. From them we find , and the critical molar volume.
- critical temperature and pressure of the substance, K, MPa
- critical molar volume; in this equation , m³/kmol
- critical Z-factor (the value of at the critical point), —
Units: any consistent units; with MPa·m³/(kmol·K), comes out in MPa·m⁶/kmol² and in m³/kmol
- At the critical point the isotherm has a horizontal inflection (it flattens and changes its bend): at .
- The parameters are chosen so that the equation passes exactly through the critical temperature and pressure. The critical volume then comes out as the equation gives it.
The van der Waals equation gives all substances the same critical Z-factor, 0.375. For real hydrocarbons it is from 0.29 for methane to 0.25 for decane (0.23 for water). So near the critical point the equation overestimates the molar volume and underestimates the density.
Below the critical temperature the isotherm of a cubic equation behaves strangely (see the figure). As the volume decreases, the pressure first rises, then falls along a loop, and then rises again. The section where the pressure rises together with the volume is physically impossible, because such a state would split by itself into two phases. In reality, at the vapour pressure the isotherm is horizontal, because gas and liquid coexist. The equation itself fixes the position of the horizontal line. It cuts off two equal areas from the loop, which is the same as saying that the fugacities of the gas and the liquid are equal (see the section on fugacity). The ends of the horizontal line are the molar volumes of the saturated liquid and the saturated gas.
Chart. The vertical axis is pressure, from 0 to 7 MPa. The horizontal axis is molar volume, from 0.07 to 2 m³/kmol, on a logarithmic scale. The 340 K isotherm drops steeply from the liquid region and forms a loop with a minimum near 0.6 MPa and a maximum near 2.9 MPa. Then it falls smoothly in the gas region. A horizontal segment at 2.44 MPa crosses it at three points: 0.11, 0.26 and 0.73 m³/kmol. The critical isotherm has a horizontal inflection at the point C, at 0.22 m³/kmol and 4.25 MPa. The 400 K isotherm falls all the way, without a loop. The dashed dome-shaped curve passes through the ends of the horizontal segment and through the point C. The labels of the lines are in the upper right corner.
Redlich–Kwong, Soave, Peng–Robinson
The next equations kept the repulsion but changed the attraction. Redlich and Kwong replaced in the denominator with , and made the attraction decrease with temperature: . Soave chose the temperature function so that the equation reproduces the vapour pressure of each substance. For this he added a third constant of the substance, the acentric factor. Peng and Robinson changed the denominator once more, to bring the liquid density and the critical Z-factor closer to reality.
- attraction parameter at the critical temperature, MPa·m⁶/kmol²
- temperature function of the attraction; , —
- numbers that set the form of the denominator of the attraction term (table below), —
- constants of the equation, found from the conditions at the critical point, —
- as in the van der Waals equation, MPa, K, m³/kmol
Units: any consistent system; , , , are dimensionless
- A substance is described by three constants: , and (for SRK and PR) the acentric factor .
- The equation passes exactly through the critical temperature and pressure of each substance, but not through its critical volume.
- does not depend on temperature. All the dependence on temperature is in .
All four equations are special cases of one form. So a program solves the same cubic equation and changes only the constants.
- Equation
- Van der Waals
- 27/64 = 0.4219
- 1/8 = 0.125
- 0; 0
- 0.375
- Equation
- Redlich–Kwong, SRK
- 0.42748
- 0.08664
- 1; 0
- 0.333
- Equation
- Peng–Robinson
- 0.45724
- 0.07780
- 0.307
| Equation | ||||
|---|---|---|---|---|
| Van der Waals | 27/64 = 0.4219 | 1/8 = 0.125 | 0; 0 | 0.375 |
| Redlich–Kwong, SRK | 0.42748 | 0.08664 | 1; 0 | 0.333 |
| Peng–Robinson | 0.45724 | 0.07780 | 0.307 |
is the critical Z-factor that the equation gives to any substance. For real hydrocarbons it is 0.25–0.29. The function is for van der Waals, for Redlich–Kwong, and the formula below for SRK and PR.
- attraction parameter at and co-volume of the component, MPa·m⁶/kmol², m³/kmol
- temperature function (next formula), —
- absolute pressure and temperature, molar volume, gas constant, MPa, K, m³/kmol
Units: metric: MPa, K, m³/kmol (the constants 0.45724 and 0.07780 are dimensionless and suit any system)
- The denominator is , that is, and .
- For a mixture, take and from the mixing rules (section on mixtures).
Compared with SRK, the co-volume is smaller ( instead of ). The new denominator of the attraction term also brings the critical Z-factor closer to the real one: 0.307 instead of 0.333. So the liquid comes out denser than with SRK.
In other unit systems (1)
the same units; in the original Redlich–Kwong equation .
- coefficient that depends on the acentric factor (forms below), —
- reduced temperature , —
Units: dimensionless; temperatures absolute
- The dependence was fitted to the vapour pressures of hydrocarbons, so each equation has its own.
- For heavy substances with , the PR equation uses a refined dependence (advanced section).
At the function is greater than 1, so the attraction grows on cooling. At it is less than 1. The larger , the steeper this dependence.
In other unit systems (2)
dimensionless
dimensionless
- acentric factor of the substance, —
- vapour pressure at the temperature , MPa
- base-10 logarithm, —
Units: dimensionless; pressures absolute, in the same units
- It is defined from the vapour pressure curve of the liquid. For carbon dioxide the temperature is below the triple point (where solid, liquid and gas coexist), so the curve is extended beyond it.
- For C7+ fractions and pseudo-components, is estimated from correlations.
For substances with small, almost spherical molecules (argon, krypton), the vapour pressure at is almost exactly , and . The longer and less symmetric the molecule, the lower its vapour pressure at the same reduced temperature, and the larger is: 0.011 for methane, 0.152 for propane, 0.49 for n-decane. Through the equation “knows” not only the end of the vapour pressure curve (the critical point) but also its slope.
The calculation needs three constants for each component. For individual substances they are reference values. For the C7+ fraction and pseudo-components we estimate them with correlations from the molar mass and density (C7+ fraction). This estimate becomes the main source of uncertainty in the calculation.
- Component
- Nitrogen
- , K
- 126.2
- , MPa
- 3.40
- 0.037
- , g/mol
- 28.01
- Component
- Carbon dioxide
- , K
- 304.2
- , MPa
- 7.38
- 0.225
- , g/mol
- 44.01
- Component
- Hydrogen sulfide
- , K
- 373.2
- , MPa
- 9.00
- 0.094
- , g/mol
- 34.08
- Component
- Methane
- , K
- 190.6
- , MPa
- 4.60
- 0.011
- , g/mol
- 16.04
- Component
- Ethane
- , K
- 305.4
- , MPa
- 4.87
- 0.099
- , g/mol
- 30.07
- Component
- Propane
- , K
- 369.9
- , MPa
- 4.25
- 0.152
- , g/mol
- 44.10
- Component
- Isobutane
- , K
- 407.9
- , MPa
- 3.64
- 0.184
- , g/mol
- 58.12
- Component
- n-Butane
- , K
- 425.2
- , MPa
- 3.80
- 0.200
- , g/mol
- 58.12
- Component
- n-Pentane
- , K
- 469.8
- , MPa
- 3.37
- 0.252
- , g/mol
- 72.15
- Component
- n-Hexane
- , K
- 507.7
- , MPa
- 3.03
- 0.301
- , g/mol
- 86.18
- Component
- n-Heptane
- , K
- 540.3
- , MPa
- 2.74
- 0.350
- , g/mol
- 100.20
- Component
- n-Decane
- , K
- 617.8
- , MPa
- 2.11
- 0.490
- , g/mol
- 142.28
| Component | , K | , MPa | , g/mol | |
|---|---|---|---|---|
| Nitrogen | 126.2 | 3.40 | 0.037 | 28.01 |
| Carbon dioxide | 304.2 | 7.38 | 0.225 | 44.01 |
| Hydrogen sulfide | 373.2 | 9.00 | 0.094 | 34.08 |
| Methane | 190.6 | 4.60 | 0.011 | 16.04 |
| Ethane | 305.4 | 4.87 | 0.099 | 30.07 |
| Propane | 369.9 | 4.25 | 0.152 | 44.10 |
| Isobutane | 407.9 | 3.64 | 0.184 | 58.12 |
| n-Butane | 425.2 | 3.80 | 0.200 | 58.12 |
| n-Pentane | 469.8 | 3.37 | 0.252 | 72.15 |
| n-Hexane | 507.7 | 3.03 | 0.301 | 86.18 |
| n-Heptane | 540.3 | 2.74 | 0.350 | 100.20 |
| n-Decane | 617.8 | 2.11 | 0.490 | 142.28 |
Reference values. The critical temperatures and pressures, in kelvins, are as in the table of the lesson on the composition of fluids.
The cubic equation in Z: one root or three
Usually we know the pressure and temperature and need the molar volume or density. If we substitute , we get a cubic equation in with dimensionless coefficients and . They are the same in any system of units.
- Z-factor of the phase, , —
- — dimensionless attraction, —
- — dimensionless co-volume, —
- parameters of the substance at temperature (for a mixture, from the mixing rules), MPa·m⁶/kmol², m³/kmol
Units: dimensionless form; and absolute
- and are calculated at the same absolute pressure and temperature for which is sought.
- For a mixture, and are calculated from the composition of the phase whose properties we want.
Each root immediately gives the molar volume and the density . Only roots with , that is , have physical meaning.
In other unit systems (2)
and are calculated with the SRK constants.
and are calculated with the van der Waals constants.
A cubic equation has one or three real roots (real-number solutions). For a pure substance, one root means that at the given pressure and temperature it is single-phase, so there is nothing to choose. Three roots appear where the isotherm forms a loop (figure above). The smallest root belongs to the liquid and the largest to the gas. The middle one lies on the section where the pressure rises together with the volume, and it has no meaning. For a mixture, the number of roots says nothing about stability. For the model oil of the topic Vapour–liquid equilibrium at 8 MPa, the equation for the composition of the whole mixture has one root, although the mixture splits into gas and liquid. A stability test shows whether a mixture will split into phases (stability check).
- 1The phase is a liquid
If you know the phase is a liquid (for example, the equilibrium liquid in a phase-equilibrium calculation), take the smallest root.
- 2The phase is a gas
If the phase is a gas, take the largest root.
- 3The phase is unknown
For a single-phase mixture at given and , calculate both possibilities. Take the one with the lower Gibbs energy (a measure of how stable a state is), which means the one with the smaller sum (section on fugacity). For a pure substance this means that above the vapour pressure the liquid is stable, and below it the gas is.
We solve the cubic equation with Cardano's formulas (advanced section) or with Newton's method. Programs usually start from the solution given by the formulas and refine it with one or two Newton steps.
- Substance
- propane: K, MPa, , g/mol
- Temperature
- 20 °C ( K)
- Pressure
- 0.84 MPa (absolute), about the vapour pressure
- Reduced temperature: . Coefficient: . Then .
- MPa·m³/kmol (here and below we use with enough digits for the calculation). MPa·m⁶/kmol², and . m³/kmol.
- . Then and .
- The equation is . It has three real roots: , and . All are greater than .
- Molar volumes : liquid 0.0844 m³/kmol, gas 2.43 m³/kmol. Densities : 523 and 18 kg/m³. The middle root would give 133 kg/m³, which is neither a liquid nor a gas.
What it means. At a pressure close to the vapour pressure, the equation allows both phases. The fugacities decide which one is stable (next sections). The molar volume of the liquid is only 1.50 times the co-volume . The liquid is squeezed almost to the limit, so its density is very sensitive to the constants of the equation. The measured density of liquid propane at 20 °C is about 500 kg/m³, and the calculation overestimates it by 4.6%. The section on volume translation shows how to correct this. The properties of propane are reference values.
Mixtures: mixing rules and binary interaction coefficients
We describe a mixture with the same equation, as if it were a single substance with “average” parameters and . The co-volume of the mixture is simply the average by mole fraction, because the volumes of the molecules themselves add up. The attraction is more complicated. It acts between pairs of molecules, so the parameter of the mixture is a sum over all pairs, including pairs of unlike molecules.
- mole fraction of the component in the phase: in the liquid, in the gas, in the mixture as a whole, fraction
- parameters of the component at temperature : , MPa·m⁶/kmol², m³/kmol
- binary interaction coefficient; , , —
Units: as for the parameters of the components
- The mixture is treated as one “average” substance (the van der Waals mixing rules).
- The do not depend on pressure, and in the simplest version not on temperature either.
- Use the composition of the phase whose properties you are calculating. The gas and the liquid of the same mixture have different and .
The attraction between unlike molecules is estimated by the geometric mean . This is a guess, and it is good for similar molecules. The factor corrects it. If , unlike molecules attract each other more weakly than the mean assumes, and the components separate more readily into different phases.
Binary interaction coefficients are fitted from experiments with binary mixtures (two components) or from PVT experiments with a particular fluid. They are empirical corrections to the mixing rule (they come from experiments, not from theory), and each belongs to one particular equation. For hydrocarbons of similar size they are usually taken as zero. Noticeable values are needed for pairs of methane with heavy hydrocarbons, and especially for pairs with non-hydrocarbon components.
- Pair of components
- Hydrocarbons of similar size ( — , — and so on)
- Order of
- 0–0.01
- Pair of components
- Methane — heavy hydrocarbons ( and heavier)
- Order of
- 0.02–0.06
- Pair of components
- Nitrogen — hydrocarbons
- Order of
- 0.02–0.12
- Pair of components
- Carbon dioxide — hydrocarbons
- Order of
- 0.09–0.15
- Pair of components
- Hydrogen sulfide — hydrocarbons
- Order of
- 0.05–0.09
| Pair of components | Order of |
|---|---|
| Hydrocarbons of similar size ( — , — and so on) | 0–0.01 |
| Methane — heavy hydrocarbons ( and heavier) | 0.02–0.06 |
| Nitrogen — hydrocarbons | 0.02–0.12 |
| Carbon dioxide — hydrocarbons | 0.09–0.15 |
| Hydrogen sulfide — hydrocarbons | 0.05–0.09 |
These are orders of magnitude for orientation, not data for calculation. The values depend on the equation, on how the heavy fractions are characterised and on tuning to experiments on a particular fluid. Pairs with water need special rules.
- Gas composition, mole fractions
- methane 0.88; ethane 0.07; propane 0.03; n-butane 0.02
- Pressure and temperature
- 25 MPa (absolute), 85 °C ( K)
- Binary interaction coefficients
- all (hydrocarbons of similar size)
- Component constants
- from the table above
- MPa·m³/kmol. For each component we find and as in the propane example. We get = 0.1824; 0.5538; 1.0374; 1.6748 MPa·m⁶/kmol² and = 0.02680; 0.04057; 0.05630; 0.07238 m³/kmol (methane, ethane, propane, butane). Methane here is above its critical temperature, so its .
- With all , the double sum collapses into a square: . The square roots are = 0.4271; 0.7442; 1.0185; 1.2941. So and MPa·m⁶/kmol². The co-volume of the mixture is m³/kmol.
- and .
- The equation has one real root, , so there is nothing to choose. We know in advance that a dry gas of this composition is single-phase at 85 °C. This is far above its cricondentherm, the highest temperature at which two phases are possible for it (Phase behaviour: pure substances and binary mixtures).
- The molar mass of the gas is g/mol, and its density is kg/m³.
- For comparison, here is the generalised chart (Ideal and real gas: the gas deviation factor (Z)). By Kay's rule, K and MPa. Then , and .
What it means. A difference of a couple of per cent is typical of an untuned equation. The SRK equation for the same gas gives , which is 4.4% above the chart, so it errs in the other direction. For a dry gas of this composition the generalised chart is built directly from measurements, and it is usually more accurate. The value of the equation lies elsewhere: with the same parameters it describes the condensate that drops out of a richer gas, oil, and the equilibrium between them. The data in this example are assumed for illustration; the component constants are reference values.
Chart. The vertical axis is Z, from 0.8 to 1.35. The horizontal axis is pressure, from 0 to 50 MPa. All the curves start at 1. The curve of the generalised chart falls to 0.87 near 15 MPa and rises to 1.18 by 50 MPa. The Peng–Robinson curve runs 1–3 per cent lower up to 30 MPa and moves further away at high pressures, reaching 1.11 at 50 MPa. The Soave–Redlich–Kwong curve runs 1–5 per cent above the chart. The dashed van der Waals curve falls deepest, to 0.84, then rises most steeply and reaches 1.33 by 50 MPa. The point at 25 MPa is marked, Z = 0.885. The labels of the lines are in the upper left corner.
Fugacity: the “corrected” pressure
How can we tell, from an equation of state, at what pressure propane boils at 20 °C? With three roots the equation gives both the liquid and the gas. But it does not say which phase is stable, or at what pressure the two coexist. For that we need a condition of equilibrium. For an ideal gas it is simple: a component moves to where its partial pressure (its own share of the total pressure) is lower, until the partial pressures become equal. For real phases, the role of the partial pressure is played by the fugacity (from the Latin fuga, “flight”). It is a “corrected” pressure that measures how strongly the molecules of a component tend to leave the phase.
- fugacity of component in the phase, MPa
- fugacity coefficient of the component in the phase (not to be confused with porosity); it tends to 1 as , —
- mole fraction of the component in the phase (in the gas it is denoted ), fraction
- absolute pressure, MPa
- labels for the liquid and the gas phase, —
Units: pressure in any units; is dimensionless
- The phases are at the same pressure and temperature.
- The fugacities of each component are equal in all phases. This is the condition of equilibrium, and it is equivalent to equal chemical potentials (the quantities that drive a component to move from one phase to another).
- For an ideal gas , and the fugacity equals the partial pressure .
A component moves from the phase where its fugacity is higher to the phase where it is lower, until the two become equal. If , the attraction holds the molecules more strongly than in an ideal gas. If , the component is “pushed out” of the phase. At equilibrium the ratio of the mole fractions is the equilibrium ratio, (Vapour–liquid equilibrium).
We calculate the fugacity coefficient from the same equation of state. It shows how far the isotherm of the real phase departs from the isotherm of an ideal gas when we compress from zero pressure (advanced section). For cubic equations the integral can be written in closed form. For the Peng–Robinson equation:
- — the attraction of a pair of components, MPa·m⁶/kmol²
- parameters of the phase from the mixing rules and their dimensionless forms, MPa·m⁶/kmol², m³/kmol; and are dimensionless
- the root chosen for this phase: the smallest for the liquid, the largest for the gas, —
- co-volume of the component, m³/kmol
Units: dimensionless; natural logarithms
- Van der Waals mixing rules with the coefficients .
- , and are calculated for the composition and the root of this particular phase.
The first two terms are the contribution of repulsion, and the last term is that of attraction. The sum shows how strongly the component is attracted to its surroundings in the given phase. That is why the same methane has different fugacity coefficients in oil and in gas.
In other unit systems (2)
the same quantities for one component (, , ).
the same notation, and with the SRK constants.
- Substance and temperature
- propane, 20 °C, as in the example above
- Initial approximation
- MPa, with the three roots of at this pressure from the previous example
- Measured vapour pressure
- 0.8364 MPa
- For the liquid root, , the formula for a pure substance gives . For the gas root, , it gives . The fugacities are MPa and MPa.
- : the liquid holds the molecules better than the gas, so the pressure is above the vapour pressure. The correction is MPa.
- At we find the roots and fugacity coefficients again. This gives MPa and MPa. Each time the correction shrinks by a factor of about 5. After 6 steps the pressure stops changing in the sixth decimal place: MPa.
- At : , and . The density of the saturated liquid is 523 kg/m³, and that of the saturated gas is 18.0 kg/m³.
- The same calculations with other equations give 0.844 MPa for SRK and 1.560 MPa for van der Waals.
What it means. The SRK and PR equations reproduce the vapour pressure well because their temperature function is fitted, through the acentric factor, to exactly this property. The van der Waals equation has no such tuning. The density of the saturated liquid is still overestimated by a few per cent, because equal fugacities do not correct it. The same procedure, refining the pressure by the ratio of the fugacities, is the basis for calculating the bubble point and dew point pressures of mixtures (Vapour–liquid equilibrium). The properties of propane are reference values.
Volume translation: how the liquid density is corrected
A two-parameter equation gives all substances the same critical Z-factor, so it reproduces the density of a liquid with a systematic error (an error that always goes the same way). We can see its size by comparing the calculation with the reference densities of liquid hydrocarbons.
- Substance
- Propane
- Reference
- 506.5
- SRK (error)
- 468.6 (−7.5%)
- PR (error)
- 531.6 (+5.0%)
- Substance
- n-Butane
- Reference
- 583.4
- SRK (error)
- 543.3 (−6.9%)
- PR (error)
- 614.9 (+5.4%)
- Substance
- n-Pentane
- Reference
- 630.4
- SRK (error)
- 575.9 (−8.6%)
- PR (error)
- 650.2 (+3.1%)
- Substance
- n-Hexane
- Reference
- 663.3
- SRK (error)
- 594.5 (−10.4%)
- PR (error)
- 670.0 (+1.0%)
- Substance
- n-Heptane
- Reference
- 687.3
- SRK (error)
- 603.0 (−12.3%)
- PR (error)
- 678.6 (−1.3%)
- Substance
- n-Decane
- Reference
- 733.3
- SRK (error)
- 603.9 (−17.6%)
- PR (error)
- 677.6 (−7.6%)
| Substance | Reference | SRK (error) | PR (error) |
|---|---|---|---|
| Propane | 506.5 | 468.6 (−7.5%) | 531.6 (+5.0%) |
| n-Butane | 583.4 | 543.3 (−6.9%) | 614.9 (+5.4%) |
| n-Pentane | 630.4 | 575.9 (−8.6%) | 650.2 (+3.1%) |
| n-Hexane | 663.3 | 594.5 (−10.4%) | 670.0 (+1.0%) |
| n-Heptane | 687.3 | 603.0 (−12.3%) | 678.6 (−1.3%) |
| n-Decane | 733.3 | 603.9 (−17.6%) | 677.6 (−7.6%) |
The reference densities come from the specific gravities at 60 °F (15.6 °C), which are 0.507, 0.584, 0.631, 0.664, 0.688 and 0.734, with a water density of 999.0 kg/m³. The calculation uses the equations of the lesson at the same temperature. Propane and butane are on the saturation line (at their own calculated vapour pressure), and the rest are at atmospheric pressure.
SRK underestimates the density of all liquids, and the more so the heavier the hydrocarbon. The Peng–Robinson equation overestimates the density for light liquids and underestimates it for heavy ones. In an oil the errors of the different components partly cancel each other, but you cannot rely on this.
In 1982 Péneloux and co-authors proposed a simple correction, volume translation. We subtract a constant correction, with its own value for each component, from the calculated molar volume.
- molar volume of the phase from the equation of state, m³/kmol
- translation of the component; it can also be negative, m³/kmol
- translation of the phase — the average over its composition, m³/kmol
- mole fraction of the component in the phase, fraction
Units: m³/kmol
- The do not depend on pressure, and in the simplest version not on temperature either.
- The are fitted to the measured density of a liquid (the pure component, stock-tank oil, which is oil at surface conditions, or reservoir oil) or estimated from correlations. For the volume decreases and the density rises.
The translation changes only volumes and densities. The fugacity coefficient of each component is multiplied by the same factor, , in both phases. So the ratios do not change, and neither do the equilibrium ratios, saturation pressures and phase compositions. For a gas, whose molar volume is many times larger than , the correction is small. For a liquid it is significant.
- Reference density of liquid propane
- at 15.6 °C: kg/m³; at 20 °C: about 500 kg/m³
- Equation
- Peng–Robinson, propane constants from the table
- At 15.6 °C ( K) the calculated vapour pressure is 0.741 MPa. The equation gives a molar volume of the saturated liquid of m³/kmol, and a density of 531.6 kg/m³.
- The reference density is kg/m³, so the molar volume is m³/kmol.
- The translation is m³/kmol. It is negative, because the equation gives too small a volume. As a fraction of the co-volume, .
- At 20 °C the equation gives m³/kmol (522.8 kg/m³). With the translation, , so the density is kg/m³.
- For the saturated gas at 20 °C, m³/kmol. The same translation changes its volume by only 0.17%. The vapour pressure, 0.835 MPa, does not change.
What it means. A constant translation works well near the temperature at which it was fitted. Closer to the critical temperature the error of the equation changes, and a constant correction fixes it less well. So programs also use translations that depend on temperature. For C7+ fractions we fit the translations so that the equation reproduces the measured densities of stock-tank and reservoir oil. The reference densities are rounded.
Where cubic equations are accurate and where they err
- Property
- Vapour pressure of pure hydrocarbons
- Typical error
- from fractions of a per cent to a few per cent
- Reason
- is fitted to the vapour pressure through
- Property
- and gas density
- Typical error
- 1–5%
- Reason
- two parameters are not enough to describe a dense gas accurately, and at very high pressures the error grows
- Property
- Liquid density
- Typical error
- PR a few per cent, SRK 7–18%; larger for heavy substances
- Reason
- one for all substances; volume translation corrects it
- Property
- Properties near the critical point of a mixture
- Typical error
- large
- Reason
- a cubic equation does not reproduce the shape of the isotherms near the critical point
- Property
- Mixtures with a C7+ fraction
- Typical error
- depends on how well the C7+ fraction is described
- Reason
- , and of the pseudo-components are estimated from correlations
- Property
- Water, methanol, glycols
- Typical error
- poor without special rules
- Reason
- hydrogen bonds (strong links between molecules) cannot be described by two parameters
| Property | Typical error | Reason |
|---|---|---|
| Vapour pressure of pure hydrocarbons | from fractions of a per cent to a few per cent | is fitted to the vapour pressure through |
| and gas density | 1–5% | two parameters are not enough to describe a dense gas accurately, and at very high pressures the error grows |
| Liquid density | PR a few per cent, SRK 7–18%; larger for heavy substances | one for all substances; volume translation corrects it |
| Properties near the critical point of a mixture | large | a cubic equation does not reproduce the shape of the isotherms near the critical point |
| Mixtures with a C7+ fraction | depends on how well the C7+ fraction is described | , and of the pseudo-components are estimated from correlations |
| Water, methanol, glycols | poor without special rules | hydrogen bonds (strong links between molecules) cannot be described by two parameters |
The equation does not give viscosity or interfacial tension (the tension at the boundary between two fluids). They are calculated with separate correlations, which use the densities and phase compositions that the equation gives.
That is why we tune an equation of state for a particular fluid. We fit the critical constants and acentric factors of the heavy pseudo-components, the of methane with the heavy fractions, and the volume translations. We fit them to the results of laboratory PVT experiments, which are tests on a fluid sample at different pressures and temperatures. These are the saturation pressure test, constant-composition expansion, constant-volume depletion, differential liberation and separator tests (Laboratory PVT tests). A tuned equation is a model of this particular fluid. It cannot be carried over to the fluid of another reservoir.
Terms and symbols
- Equation of state
- A formula that links the pressure, temperature and molar volume of a substance or mixture. Cubic equations describe both gas and liquid.
- Co-volume
- The volume of the molecules themselves in a kilomole of the substance. It is the limiting molar volume at infinite pressure.
- Attraction parameter
- A quantity that describes the attraction between molecules. In SRK and PR it depends on temperature through the function .
- Acentric factor
- It is at . It measures the slope of the vapour pressure curve, and it grows as the molecule gets larger and less symmetric.
- Critical Z-factor
- It equals . For real hydrocarbons it is 0.25–0.29, while a cubic equation gives one value to all substances (0.307 for PR).
- Mixing rules
- Formulas that calculate the parameters of a mixture from the parameters of the components and the composition of the phase.
- Binary interaction coefficient
- An empirical correction to the attraction between unlike molecules. It is specific to each equation.
- Fugacity and fugacity coefficient
- The fugacity is the “corrected” partial pressure of a component, and the fugacity coefficient is its ratio to . At equilibrium the fugacities of each component are equal in all the phases.
- Volume translation
- A correction to the molar volume from the equation. It fixes the liquid density without changing the phase equilibrium.
Common mistakes and misconceptions
“The equation gave three roots — I'll take the middle one, it is closer to the truth.”
The middle root lies on the unstable part of the loop and has no meaning. For a liquid take the smallest root, and for a gas take the largest. For a single-phase mixture of unknown nature, take the root with the lower Gibbs energy.
“All programs use the Peng–Robinson equation, so it is accurate.”
Without tuning, the liquid density is wrong by a few per cent, and by more for heavy components. Properties near the critical point are wrong by more still. For mixtures with C7+ everything depends on the constants of the pseudo-components. For a real fluid we tune the equation to PVT experiments.
“Volume translation corrected the oil density, so the saturation pressure will shift too.”
Volume translation changes neither the equilibrium ratios nor the saturation pressures, because the fugacity coefficients of each component change in the same way in both phases.
“The are physical constants of a pair of substances, they can be taken from any table.”
They are empirical corrections fitted for one particular equation, and often for one particular way of describing the heavy fractions. Coefficients from another equation make the calculation worse.
“I'll substitute 85 °C and the pressure from the gauge.”
Use only absolute values in equations of state: 358.15 K, and the pressure with the atmospheric pressure added.
In depth: advanced detail
How a cubic equation is solved
Write the equation in in the general form (for PR , , ). The substitution removes the term:
- the new unknown, , —
- coefficients of the depressed equation, —
- coefficients of the original equation in , —
Units: dimensionless
- The coefficients are real numbers. The sign of decides how many real roots there are.
This is a standard trick of algebra. The roots of the depressed equation (a cubic with no squared term) can be written with explicit formulas.
In other unit systems (2)
Cardano's formula
trigonometric form
When roots are close together, the formulas lose accuracy, because they subtract numbers that are almost equal. So we refine the roots with Newton steps, , where is the left-hand side of the equation. Then we discard the roots with and choose the one we need by the rules of the main section.
Where the formula for the fugacity coefficient comes from
Take a phase of moles of a mixture in a volume . The fugacity coefficient of a component is an integral of the equation of state, taken at constant temperature from the given volume to infinity, where any gas is ideal:
- total volume of the phase, m³
- amount of component in the phase, kmol
- the equation of state written for kilomoles of the mixture: it contains and , MPa
Units: dimensionless; , , , in consistent units
- We integrate at constant temperature and constant amounts of the other components.
- At infinite volume the phase is an ideal gas.
If we put in a cubic equation and differentiate with respect to using the mixing rules, we get the explicit formulas of the main section. They can be checked by numerical integration. For a pure substance, the equality is equivalent to Maxwell's equal-area rule: . In words, the horizontal line cuts off two equal areas from the loop of the isotherm.
Other equations and refinements
- The virial equation has and as its second and third virial coefficients. Molecular theory justifies it rigorously, but with two or three coefficients it suits only a gas of moderate density.
- Multi-parameter equations (for example, Benedict–Webb–Rubin) are accurate for pure light gases, but for mixtures they need a mixing rule for each constant.
- Equations for associating substances (substances whose molecules link up), for example CPA (cubic plus association), add a term for hydrogen bonds to the cubic equation. They are used when water, methanol or glycols matter in the calculation. Methanol and glycols are hydrate inhibitors (chemicals that stop gas hydrates, ice-like solids, from forming).
- coefficient of the temperature function , —
- acentric factor, —
Units: dimensionless
- The authors of the equation proposed it in 1978 for substances with . For smaller the formula of 1976 is used.
At the two formulas almost agree (1.066 and 1.070). For heavy pseudo-components with about 1 the difference is already noticeable. Check the documentation of a program to see which formula it uses.
Connections to other topics
- Ideal and real gas: the gas deviation factor (Z) — the gas deviation factor, the generalised chart and the law of corresponding states, with which the equation is compared.
- Phase behaviour: pure substances and binary mixtures — the vapour pressure, critical point and phase envelope that the equation reproduces.
- Composition of reservoir fluids — the components, the C7+ fraction and the pseudo-components, for which the constants of the equation are needed.
- Vapour–liquid equilibrium — how to calculate the compositions and fractions of the equilibrium phases of a mixture from fugacities.
- Equilibrium ratios: correlations and equations of state — equilibrium ratios from correlations and from an equation of state, requirements for compositional data.
- Types of reservoir simulation model — the compositional model, which solves an equation of state in every cell.
Check yourself
- 1
For a certain phase a cubic equation has given three roots: = 0.045; 0.19 and 0.71. Which root describes the gas phase?
- A.Their average
- B.0.19
- C.0.71
- D.0.045
Show the answer
Correct answer: C. 0.71
The largest root belongs to the gas, and the smallest to the liquid. The middle root lies on the section of the loop where the pressure rises together with the volume, and it has no physical meaning. If you do not know which of the two phases is stable, compare their Gibbs energies (or fugacities).
- 2
At the vapour pressure of a substance is . Find the acentric factor. Which hydrocarbon in the table of the lesson is this substance similar to?
Show the answer
, the same as for n-hexane. The vapour pressure is lower than for a “simple” substance (), because the molecule is long and asymmetric.
- 3
A volume translation fitted to the density of stock-tank oil was added to a calculation with the Peng–Robinson equation. What will change?
- A.Both the saturation pressure and the oil density
- B.Nothing
- C.Only the densities and volumes of the phases
- D.Only the saturation pressure
Show the answer
Correct answer: C. Only the densities and volumes of the phases
The translation multiplies the fugacity coefficient of each component in both phases by the same factor, . The ratios , the equilibrium ratios, saturation pressures and phase compositions stay as they were. Only the molar volumes and densities change.
- 4
Why can the van der Waals equation not give the density of liquid n-butane, 584 kg/m³, at 15.6 °C? For n-butane = 425.2 K, = 3.80 MPa, = 58.12 g/mol.
Show the answer
The co-volume is m³/kmol. In this equation the molar volume of any phase is greater than , so the density is less than kg/m³. The equation cannot reach the measured 584 kg/m³ at any pressure, because its is too large and its co-volume is overestimated.
- 5
For which pair of components is the binary interaction coefficient in the Peng–Robinson equation usually the largest?
- A.Methane — ethane
- B.Propane — n-butane
- C.n-Hexane — n-heptane
- D.Carbon dioxide — methane
Show the answer
Correct answer: D. Carbon dioxide — methane
For hydrocarbons of similar size the are almost zero, because the geometric mean describes the attraction between similar molecules well. Carbon dioxide interacts with hydrocarbons differently from the way they interact with one another. For pairs with it, is about 0.1.
- 6
For a dry gas the Peng–Robinson equation gave and the generalised chart gave 0.90. How much do the estimates of the amount of gas in the reservoir differ, and which estimate would you trust more?
Show the answer
The amount of gas in a given pore volume is inversely proportional to : , so the equation gives 2.3% more gas. For a dry “sweet” gas, the chart is built from measurements on such gases and is usually more accurate than an untuned equation. Best of all is to measure in the laboratory on a sample.
Updated: 7 October 2026