PNG 301
Introduction to Petroleum and Natural Gas Engineering

5.4.2.1: Derivation of the Diffusivity Equation in Radial-Cylindrical Coordinates for Compressible Gas Flow

PrintPrint

As with the flow of oil, we begin the derivation of diffusivity equation for compressible gas flow with a mass balance on a thin ring or Representative Elemental Volume, REV, in the reservoir as shown in Figure 5.05. This mass balance results in:

Mass InMass Out=Mass Accumulation
Equation 5.26

We can elaborate on the definitions of terms in Equation 5.26 as:

Mass In=ρ q ] r +dr  dt=( ρ g q g ] r + ( ρ g q g ) r dr )dt
Equation 5.27
Mass Out=( ρ g q g ] r )dt
Equation 5.28

and,

Mass Accumulation=ϕ V b REV ρ g =2πr dr ϕh  ρ g
Equation 5.29

Where:

  • ρ g is the gas density, lb/ft3
  • q g is the gas rate, ft3/day
  • r is the radial coordinate in a radial-cylindrical coordinate system, ft
  • r is the radius of the representative elemental volume, REV, ft
  • t is time, days
  • ϕ is the porosity of the reservoir, fraction
  • V b REV is the bulk volume of the representative elemental volume, REV, ft3
  • h is the reservoir thickness, ft
Diagram showing REV in a radial-cylindrical coordinates with arrows showing mass in and mass out pointing toward the center of the circle
Figure 5.05: Representative Elemental Volume, REV, in Radial-Cylindrical Coordinates
Source: Greg King

Substituting Equation 5.27 through Equation 5.29 into Equation 5.26 results in:

[ ( ρ g q g ] r + ( ρ g q g ) r dr ) ρ g q g ] r ]dt=2πrdr ϕ ρ g
Equation 5.30a

or,

( ρ g q g ) r dr dt=2πrdr ϕ ρ g
Equation 5.30b

Dividing by the term r dr dt results in:

1 r ( ρ g q g ) r =2π ϕh ρ g dt
Equation 5.31

Now, substituting Darcy’s Law, Equation 5.06 with l=r and without the formation volume factor, B g , (we want the flow rate in reservoir ft3/day not SCF/day). The unit conversion factor of 5.615 ft3/bbl converts Darcy’s Law from bbl/day to ft3/day:

1 r r [ ( 5.615 )( 0.001127 ) ρ g k g ( 2πrh ) μ g p r ]=2π ϕh ρ g dt
Equation 5.32

If we assume that the permeability, k g , and the thickness, h , are uniform, then we have:

1 r r ( r ρ g μ g p r )= ϕ ( 5.615 )( 0.001127 ) k g ρ g dt
Equation 5.33a

or,

1 r r ( r ρ g μ g p r )= ϕ 0.006328  k g ρ g dt
Equation 5.33b

To this point, the derivation for the compressible gas equation is identical to the derivation for a slightly compressible liquid equation. This derivation will begin to deviate now. Applying the definition of density for a real gas (Equation 3.71):

ρ g = p M W g ZR T r
Equation 5.34

Equation 5.34 is a direct result of the Real Gas Law. Substituting into Equation 5.33b results in:

1 r r ( r pM W g μ g ZR T r p r )= ϕ 0.006328  k g dt ( pM W g ZR T r )
Equation 5.35a

or,

1 r r ( r p μ g Z p r )= ϕ 0.006328  k g dt ( p Z )
Equation 5.35b

or,

1 r r ( r p μ g Z p r )= ϕ 0.006328  k g dp ( p Z ) p dt
Equation 5.35c

Now, we saw in Lesson 3 that for a real gas, the definition of compressibility is (Equation 3.70b):

c g = p Z d dp ( Z p ) ] T=Tr = p Z d dp [ ( p Z ) 1 ] ] T=Tr = 1 p 1 Z dZ dp
Equation 5.36a

or,

d dp ( p Z ) ] T=Tr = c g p Z
Equation 5.36b

Substituting into Equation 5.35c results in:

1 r r ( r p μ g Z p r )= ϕ c g 0.006328  k g p Z p dt
Equation 5.37

Equation 5.37 is the nonlinear diffusivity equation describing the transient behavior of compressible (real) gases. We say that it is Nonlinear because of the functions of pressure appearing in the equation. In this nonlinear form, we cannot solve the equation analytically (exactly). In order to obtain analytical solutions to this equation, we must first Linearize it. We do this in the same manner as we linearized the stabilized flow equations: by use of the Pressure, the Pressure-Squared, and the Pseudo-Pressure Formulations.