Comp Prog Practical Exams-2022
Comp Prog Practical Exams-2022
(ii) Write python codes with comments to calculate the acreage of the water drive reservoir
discovered at PE3 Oilfield, Ghana. [7 marks]
(ii) Use the following reservoir data obtained from the PE3 Oilfield, Ghana to test the codes written
in (i) to calculate the acreage of the water drive reservoir. [3 marks]
Swi = 30% h = 20 ft = 25% Boi = 1.24 bbl / STB N = 660 MM STB
(b) Find the friction factors (f) for the following Reynolds numbers in the table below with the
Colebrook equation by writing python programming codes. State two comments with regards to
the friction factors (f) computed and the Reynolds numbers. [10 marks]
1 18.7
= 1.74 − 2 Log10 2 +
d N
f Re f
Given that the relative roughness = 0.000166
d
Reynolds number (NRe) Friction factor (f)
300
600
900
3000
6000
9000
Page 1 of 4
QUESTION 2
(a) The following well logging data pertain to a shaly sandstone formation discovered at PE3
Oilfield, Ghana with Fertl and Hammack water saturation equation given by:
1/2
FR Vsh Rw
Sw = w −
Rt 0.4e Rsh
(i) Write python codes with comments to calculate the true resistivity (Rt) using Fertl and
Hammack water saturation equation. [5 marks]
(ii) Use the following reservoir data obtained from PE3 Oilfield, Ghana to test the codes written
in (i) to calculate the true resistivity (Rt) using Fertl and Hammack water saturation equation. [3
marks]
Sw = 30% Rw = 0.05 . m e = 18% Vsh = 20% Rsh = 1 . m
(b) The table below consists of water saturation (Sw), water and oil relative permeability (krw, kro)
and capillary pressure data to be used for two-phase flow numerical reservoir simulation study.
Sw krw kro Pc (psi)
.
Use python programming language Matplotlib to perform the following tasks:
(i) Plot water saturation (Sw) versus water and oil relative permeability (krw, kro) [4 marks]
(ii) Plot water saturation (Sw) versus semi-log of (krw, kro). [4 marks]
(iii) Plot water saturation (Sw) versus capillary pressure (Pc). [4 marks]
Page 2 of 4
QUESTION 3
(a) The linear reservoir flow system discovered at PE3 Oilfield, Ghana is under an active water
drive where the wells are located in uniform rows along the strike on 40 ac spacing. The daily
production of each of the three wells located along the dip is 200 STB of oil per day and the total
reservoir throughput, qt , is 900 bbl/day. For the active water drive, the oil formation volume factor
is 1.50 bbl/STB and porosity is 25%. The cross-sectional area is the product of the width, 1320 ft,
and the formation thickness of 20 ft. The ratio of water viscosity to oil viscosity is 0.50. The
distances the various constant water saturation planes will travel are 60, 120, and 240 days.
Sw ko fw f w f w f w f w
46 92 184
kw w S w S w S w S w
= 0.50
o (60 days ) (120 days ) (240 days)
Page 3 of 4
Use python programming language Matplotlib to perform the following tasks:
(a) Enter the data in the table above for Buckley-Leverett frontal advance calculations into the
python programming language. [3 marks]
(b) Plot the distances versus water saturation (Sw) for the various constant water saturation planes
travel in 60, 120, and 240 days. [3 marks]
(c) Plot water saturation (Sw) versus water cut (fw). [2 marks]
f
(d) Plot water saturation (Sw) versus derivative w . [2 marks]
S w
f
(e) Plot water saturation (Sw) versus water cut (fw) as the primary axis and derivative w as
S w
the secondary axis on the same graph. [4 marks]
(b) The cost per foot ($/ft) for drilling a gas well at PE3 Oilfield, Ghana is expressed as:
$ CB + CRTT + CRTR
=
ft Y
(i) Write python codes to define a function with comments to compute the cost of drilling the gas
well at PE3 Oilfield, Ghana. [4 marks]
(ii) Using the following drilling parameters provided, call the main function in (i) to compute the
cost of drilling the gas well at PE3 Oilfield, Ghana. [2 marks]
Bit cos t ( CB ) = $4000 Rig cos t ( CR ) = $9000 / day Footage per bit run (Y ) = 2000 ft
Trip time (TT ) = 10 hr Rotating time (TR ) = 70 hr
Page 4 of 4