Analytical Solution of the Diffusivity Equation Home Introduction Learning Objectives Introduction Analytical Solution Linear Systems Analytical Solution Radial Systems Program Exercise Resources Radial System HOME Linear System Programming Exercise Resources Info FAQ References Summary Learning Objectives Learning Objectives Introduction Learning objectives in this module: Analytical Solution Linear Systems Radial Systems Program Exercise Resources 1. Develop problem solution skills using computers and numerical methods 2. Review flow equations and methods for analytical solution the equations 3. Develop programming skills using FORTRAN No new FORTRAN elements are introduced in this module, you should, from what you have learnt earlier, be able to solve this problem without any problems Info FAQ References Summary Introduction Learning Objectives Introduction Analytical Solution Linear Systems Radial Systems Program Exercise In analysis of fluid flow in petroleum reservoirs, we need partial differential equations that describe the fluids flowing and the reservoir they are flowing in. Then we need to be able to solve the equations for the conditions of flow that we are interested in. Derivation of the equations normally involves the following elements: Resources Continuity equations Darcy’s equations PVT relationships for the fluids Compressibility of reservoir rock Examples of such equations are the simplest forms of the diffusivity equations for linear and radial flow Info FAQ References Summary Introduction Learning Objectives Introduction Analytical Solution Below, the geometries of the two simple reservoir systems and the corresponding partial differential equations are shown: Linear Systems Radial Systems 2P c P ( ) k t x 2 Program Exercise Resources x=L Q Linear flow x=0 1 P c P (r ) r r r k t r Radial flow Info FAQ References Summary Analytical Solution Learning Objectives Introduction Analytical Solution Linear Systems Radial Systems Program Exercise In order to solve the partial differential equations shown earlier, we need to have initial conditions, i.e. initial pressure distribution in the system, and boundary conditions, i.e. rates or pressures at for instance left and right sides of the systems. We will examine two of the most common sets of conditions and analytical solutions for these Resources Linear System Radial System Info FAQ References Summary Linear System Learning Objectives Introduction Analytical Solution Linear Systems For the linear system, we have a horizontal porous rod, where fluid is being injected into the left face at a flow rate Q. The injected fluid will be transported through the rod and eventually be produced out of the right face of the rod. Radial Systems Program Exercise Resources The one-phase partial differential equation (PDE) for this system, in it’s simplest form, is called the linear diffusivity equation. It is valid for one-dimensional flow of a liquid in a horizontal system, where it is assumed that porosity (), viscosity (), permeability (k ) and compressibility (c ) all are constants. PR PL Qout x=L Qin x=0 Info FAQ References Summary Linear System Learning Objectives Introduction The linear diffusivity equation may be written as: Analytical Solution Linear Systems Radial Systems Program Exercise 2 P c P ( ) 2 x k t (1) Continue Resources If the initial pressure of the rod is PR , and we assume constant pressures at the end faces, PL and PR for left and right faces, respectively, we have the following analytical solution: x 2 1 n2 2 k n x P(x,t ) PL (PR PL ) exp( 2 t )sin( ) L n L c L n 1 Info FAQ References (2) Summary Linear System Learning Objectives Introduction Analytical Solution Linear Systems The pressure solution is dependent on position, x, as well as time, t. As time increases, the exponential term becomes smaller, and eventually the solution reduces to the steady-state form: Radial Systems Program Exercise Resources x 2 1 n2 2 k n x P(x,t ) PL (PR PL ) exp( 2 t )sin( ) L n L c L n 1 (2) (3) ? the Click to expression see what the to as time increases which is forequation a straightreduces line Info FAQ References Summary Linear System Learning Objectives Introduction Analytical Solution The corresponding steady state differential equation is obtained by setting the right hand side of Eq. (1) equal to zero: Linear Systems d 2P 0 dx 2 Radial Systems Program Exercise (4) Graphically, the solution may be presented as: Resources P Left side pressure Steady state solution Transient solution Initial and right side pressure x As can be observed from the figure, the pressure will increase in all parts of the system for some period of time (transient solution), and eventually approach the final distribution (steady state), described by a straight line between the two end pressures Info FAQ References Summary Radial System Learning Objectives Introduction Analytical Solution Linear Systems Radial Systems For the radial system below (one-dimensional cylindrical coordinates), we have a horizontal porous disk, where fluid is being injected at the outer boundary and produced at the center. The onephase one-dimensional (radial) flow equation (PDE) in this coordinate system becomes: Continue Program Exercise 1 1 P c P r r r r k r Resources (5) rw r For an infinite reservoir at an initial pressure Pi and with P(r∞)=Pi Continue and well rate q from a well in the center (at r=rw) the analytical solution is: cr2 q P Pi Ei 4 kh 4kt (6) where e u Ei( x) du u is the exponential integral x Info FAQ References Summary Radial System Learning Objectives Introduction Analytical Solution Linear Systems A steady state solution does not exist for an infinite system, since the pressure will continue to decrease as long as we produce from the center. However, if we use a different set of boundary conditions, so that: Radial Systems Program Exercise Resources P(r rw ) Pw P(r re ) Pe (7) we can solve the steady state form of the equation: Continue 1 d 1 dP 0 r dr r dr (8) By integrating twice, the steady state solution becomes: Continue P Pw Pe Pw ln r / rw ln re / rw (9) Info FAQ References Summary Program Exercise Learning Objectives Introduction Analytical Solution Linear Systems Radial Systems Program Exercise Resources This programming exercise involves the construction of a reservoir simulation program, although in a very simple form. The following steps should be carried out: 1. Make a FORTRAN program that computes the analytical solutions of Eqs. (2) and (6). When the program is started, it should ask on the screen which geometry should be used, LIN or RAD, and the name of the input data file (where all parameters are to be read from) 2. Read from the screen which values of x (or r) and t the solution should be computed for. 3. The results should be written to the screen as well as to an output file Data set for linear system Here Data set for radial system Here Info FAQ References Summary Data Set for Linear System Learning Objectives Introduction Analytical Solution Linear Systems Radial Systems Program Exercise Resources PL=2 atm = 0.25 k=1.0 Darcy P0=PR=1 atm L=100 cm A=10 cm3 =1.0 cp c=0.0001 atm-1 t-intervals: t=10-3 , 10-2 , 10-1 s x-intervals: x=5, 50 cm k = permeability [Darcy] L = length (of rod) [cm] =viscosity [cp] = porosity c = compressibility [atm-1] Info FAQ References Summary Data Set for Radial System Learning Objectives Introduction Analytical Solution Linear Systems Radial Systems Program Exercise Resources h=1000 cm = 0.25 k=1.0 Darcy c=0.0001 atm-1 rw=25 cm q=104 cm3/s =1.0 cp t-intervals: t= 1E06, 5E06, 10E06 s r-intervals: r=100, 1000, 5000 cm k = permeability [Darcy] rw=wellbore radius [cm] =viscosity [cp] = porosity c = compressibility [atm-1] q=flowrate [cm3/s] Info FAQ References Summary Resources Learning Objectives Introduction Analytical Solution Linear Systems Radial Systems Program Exercise Resources Introduction to Fortran Fortran Template here The whole exercise in a printable format here Web sites Numerical Recipes In Fortran Fortran Tutorial Professional Programmer's Guide to Fortran77 Programming in Fortran77 Info FAQ References Summary General information Learning Objectives Introduction Analytical Solution Linear Systems Title: Analytical Solution of the Diffusivity Equation Teacher(s): Professor Jon Kleppe Assistant(s): Per Jørgen Dahl Svendsen Abstract: Provide a good background for solving problems within petroleum related topics using numerical methods 4 keywords: Diffusivity Equation, Linear Flow, Radial Flow, Fortran Radial Systems Program Exercise Resources Topic discipline: Level: 2 Prerequisites: None Learning goals: Develop problem solution skills using computers and numerical methods Size in megabytes: 0.7 MB Software requirements: MS Power Point 2002 or later, Flash Player 6.0 Estimated time to complete: Copyright information: The author has copyright to the module and use of the content must be in agreement with the responsible author or in agreement with http://www.learningjournals.net. About the author Info FAQ References Summary FAQ Learning Objectives Introduction Analytical Solution Linear Systems Radial Systems No questions have been posted yet. However, when questions are asked they will be posted here. Remember, if something is unclear to you, it is a good chance that there are more people that have the same question Program Exercise Resources For more general questions and definitions try these Dataleksikon Webopedia Schlumberger Oilfield Glossary Info FAQ References Summary References Learning Objectives Introduction Analytical Solution Linear Systems Radial Systems See for instance: H. S. Carslaw and J. C. Jaeger: Conduction of Heat in Solids, 2nd ed., Oxford, 1985 Program Exercise Resources Numerical Recipes in Fortran in pdf format online: Numerical Recipes in Fortran Info FAQ References Summary Summary Learning Objectives Introduction Analytical Solution Subsequent to this module you should... Linear Systems Radial Systems Program Exercise Resources be able to keep track of loops and conditional statements have no problems handling output and input data have obtained a better understanding on solving problems in Fortran Info FAQ References Summary