Notes
Slide Show
Outline
1
PETE 310
Lectures # 34 to 35
  • Cubic Equations of State
2
Instructional Objectives
  • Know the data needed in the EOS to evaluate fluid properties
  • Know how to use the EOS for single and for multicomponent systems
  • Evaluate the volume (density, or z-factor) roots from a cubic equation of state for


    • Gas phase (when two phases exist)
    • Liquid Phase (when two phases exist)
    • Single phase when only one phase exists


3
Equations of State (EOS)
  • Single Component Systems
    •   Equations of State (EOS) are mathematical relations between pressure (P) temperature (T), and molar volume (V).
  • Multicomponent Systems
    •    For multicomponent mixtures in addition to (P, T & V) , the overall molar composition and a set of mixing rules are needed.


4
Uses of Equations of State (EOS)
  • Evaluation of gas injection processes (miscible and immiscible)
  • Evaluation of properties of a reservoir oil (liquid) coexisting with a gas cap (gas)
  • Simulation of volatile and gas condensate production through constant volume depletion evaluations
  • Recombination tests using separator oil and gas streams
  • Many more…


5
Equations of State (EOS)
  • One of the most used EOS’ is the Peng-Robinson EOS (1975). This is a three-parameter corresponding states model.



6
Equations of State (EOS)
  • Peng-Robinson EOS is a three-parameter corresponding states model.
    • Critical Temperature Tc
    • Critical Pressure Pc
    • Acentric factor w

7
PV Phase Behavior
8
Equations of State (EOS)
  • The critical point conditions are used to determine the EOS parameters


9
Equations of State (EOS)
  • Solving these two equations simultaneously for the Peng-Robinson EOS provides
10
Equations of State (EOS)
  • Where


  • and


  • with
11
EOS for a Pure Component
12
EOS for a Pure Component
  • Maxwell equal area rule (Van der Waals loops)
  • For a fixed Temperature lower than Tc the vapor pressure is found when A1 = A2
  • Equations of State cannot be quadratic polynomials
  • Lowest root is liquid molar volume, largest root is gas molar volume
  • Middle root has no physical significance
13
Equations of State (EOS)
  • Phase equilibrium for a single component at a given temperature can be graphically determined by selecting the saturation pressure such that the areas above and below the loop are equal, these are known as the van der Waals loops.
14
Equations of State (EOS)
  • PR equation can be expressed as a cubic polynomial in V, density, or Z.
15
Equations of State (EOS)
  • When working with mixtures (aa) and (b) are evaluated using a set of mixing rules
  •  The most common mixing rules are:
    • Quadratic for a
    • Linear for b
16
Quadratic MR for a


  • where kij’s are the binary interaction parameters and by definition


17
Linear MR for b
18
Example
  • For a three-component mixture (Nc = 3) the attraction (a) and the repulsion constant (b) are given by
19
Equations of State (EOS)
  • The constants a and b are evaluated using


    • Overall compositions zi with i = 1, 2…Nc
    • Liquid compositions xi with i = 1, 2…Nc
    • Vapor compositions yi with i = 1, 2…Nc


20
Equations of State (EOS)
  • The cubic expression for a mixture is then evaluated using





21
Analytical Solution of Cubic Equations
  • The cubic EOS can be arranged into a polynomial and be solved analytically as follows.
22
Analytical Solution of Cubic Equations
  • Let’s write the polynomial in the following way





    • Note:  “x” could be either the molar volume, or the density, or the z-factor
23
Analytical Solution of Cubic Equations
  • When the equation is expressed in terms of the z factor, the coefficients a1 to a3 are:


24
Procedure to Evaluate the Roots of a Cubic Equation Analytically
  • Let
25
Procedure to Evaluate the Roots of a Cubic Equation Analytically
  • The solutions are,
26
Procedure to Evaluate the Roots of a Cubic Equation Analytically
  • If a1, a2 and a3 are real (always here) The discriminant  is
    •      D = Q3 + R2
    • Then
    • One root is real and two complex conjugate if D > 0;
    • All roots are real and at least two are equal if D = 0;
    • All roots are real and unequal if D < 0.
27
Procedure to Evaluate the Roots of a Cubic Equation Analytically





      • where
28
Procedure to Evaluate the Roots of a Cubic Equation Analytically







    • where x1, x2 and x3 are the three roots.
29
Procedure to Evaluate the Roots of a Cubic Equation Analytically
  • The range of solutions useful for engineers are those for positive volumes and pressures, we are not concerned about imaginary numbers.


30
Solutions of a Cubic Polynomial
31
Solutions of a Cubic Polynomial

  • http://www.uni-koeln.de/math-nat-fak/phchem/deiters/quartic/quartic.html  contains Fortran codes to solve the roots of polynomials up to fifth degree.




32
Web site to download Fortran source codes to solve polynomials up to fifth degree
33
EOS for a Pure Component
34
Parameters needed to solve EOS
  • Tc, Pc, (acentric factor for some equations i.e. Peng Robinson)
  • Compositions (when dealing with mixtures)
  • For a single component
    • Specify P and T à determine Vm
    • Specify P and Vm à determine T
    • Specify T and Vm à determine P

35
Tartaglia: the solver of cubic equations
36
Cubic Equation Solver
  • http://www.1728.com/cubic.htm
37
WWW Cubic Equation Solver
  • Only to check your results
  • You will not be able to use it in the exam if needed
  • Special bonus HW will be invalid if using this code, you MUST provide evidence of work
  • Write your own code (Excel is OK)


38
Two-phase VLE
  • The phase equilibria equations are expressed in terms of the equilibrium ratios, the “K-values”.
39
Dew Point Calculations
  • Equilibrium is always stated as:
  •                                      (i = 1, 2, 3 ,…Nc)


  • with the following material balance constrains
40
Dew Point Calculations
  • At the dew-point
41
Dew Point Calculations
  • Rearranging, we obtain the Dew-Point objective function
42
Bubble Point Equilibrium Calculations
  • For a Bubble-point
43
Flash Equilibrium Calculations
  • Flash calculations are the work-horse of any compositional reservoir simulation package.
  • The objective is to find the fv in a VL mixture at a specified T and P such that
44
Evaluation of Fugacity Coefficients and K-values from an EOS
  • The general expression to evaluate the fugacity coefficient for component “i” is
45
Evaluation of Fugacity Coefficients and K-values from an EOS
  • The final expression to evaluate the fugacity coefficient of component ‘i’ in the vapor phase using an EOS is.






  • A similar expression replacing v by l is used for the liquid
46
Equations of State are not perfect…
  • EOS provide self consistent fluid properties
    • Density (o & g) trends are correctly predicted with pressure, temperature, and compositions (and all derived properties…)
    • Same phase equilibrium model for gas and liquid phases (material balance consistency)



47
Equations of State are not perfect…
  • However… predicted fluid property values may differ substantially from data
  • EOS are routinely “calibrated” to selected & limited experimental data
  • After “calibration” EOS predictions beyond range of data can be used with confidence
  • EOS are extensively used in reservoir simulation



48
What is EOS calibration?
  • Minimization of  squared differences between experimental and predicted fluid properties






  • These Properties (gi) include:
    • Densities, saturation pressures
    • Relative amounts of gas and liquid phases
    • Compositions, etc.
49
What is EOS calibration?
  • Accomplished by changing within certain limits selected EOS parameters
  • Minor adjustments (1 to 2%) of binary interaction parameters (kij) can change saturation pressures by 20 to 30%
  • Different properties of the C7+ fraction affect liquid dropout and densities. These properties include
    • Molecular weight (uncertainty is +/- 10%)
    • Specific gravity
    • Critical properties and acentric factors which are highly dependent on correlations – Cannot be easily measured and not usually done.


50
Pre and post calibration predictions from an EOS
51
Pre and post calibration predictions from an EOS
52
Pre and post calibration predictions from an EOS
53
Pre and post calibration predictions from an EOS
54
Special Homework Bonus
  • Determine the equilibrium ratio of C1 from multiple flash calculations using SOPE. Select a mixture and a suitable pressure temperature range


    • Discuss the trends, how does kC1change with T at a fixed P?
    • Discuss the trends, how does kC1change with P at a fixed T?
    • Provide well documented graphs


55
Special Homework Bonus

  • Compare the equilibrium ratio of C1 at 4000 psia and at 200 oF with that of the convergence pressure chart using.
    • A mixture of C1 and C2
    • A mixture of C1 and C4
    • A mixture of C1 and C8
    • Discuss the results obtained and provide overlapped plots
  • Calibrate one of EOS’s in SOPE to the bubble point data reported by Standings in the following table
56
Special Homework Bonus
57
Special Homework Bonus
    • Mole fraction of C1
    • Dew point pressure
    • Bubblepoint pressure
    • Z-factors of mixture (gas and liquid)
    • Molar volumes of mixture gas & liquid
      • All at T = 160oF (not shown here)
58
Special Homework Bonus
  • Select one EOS (Vdw, RK, SRK, PR, or Cubic-4G)
  • Select one bubble point pressure for one composition of methane
  • Plot pb predicted vs binary interaction parameter selected
  • Select the best kij that matches the bubble point pressure
  • Compare the values of experimental vs. predicted molar volumes
59
You should be obtaining a plot like this one…
60
This is the end, we survived!!!