The term “reservoir heterogeneity” is employed in this context to elucidate the geological intricacies inherent in a reservoir and their consequential impact on fluid flow dynamics within the reservoir.
Reservoirs inherently manifest as heterogeneous amalgamations of depositional facies and subfacies, each characterized by distinct sediment textures, stratification types, and bedding architectures, as expounded in the literature on Clastic lithofacies and Carbonate lithofacies. The inherent variability is further compounded by postdepositional modifications of the strata, including compaction, cementation, and tectonic deformation.
can be quantified by two techniques:
Dykstra-Parsons
Lorenz Coefficient
The data-set used:
data = read.csv("karpur.csv")
head(data)
1- Dykstra-Parsons
The Dykstra-Parsons methodology entails the construction of a log-normal probability graph by plotting the frequency distribution of permeability values. This procedure involves arranging permeability values in a descending order and subsequently calculating the percentage of samples possessing permeability values exceeding a given threshold. To prevent instances of zero or 100%, a normalization procedure is implemented, wherein the percentage greater than or equal to a specified value is normalized by the quantity (n+1), where ‘n’ denotes the total number of samples in the dataset.
kcore= data$k.core
depth=data$depth
summary(data)
depth caliper ind.deep ind.med gamma
Min. :5667 Min. :8.487 Min. : 6.532 Min. : 9.386 Min. : 16.74
1st Qu.:5769 1st Qu.:8.556 1st Qu.: 28.799 1st Qu.: 27.892 1st Qu.: 40.89
Median :5872 Median :8.588 Median :217.849 Median :254.383 Median : 51.37
Mean :5873 Mean :8.622 Mean :275.357 Mean :273.357 Mean : 53.42
3rd Qu.:5977 3rd Qu.:8.686 3rd Qu.:566.793 3rd Qu.:544.232 3rd Qu.: 62.37
Max. :6083 Max. :8.886 Max. :769.484 Max. :746.028 Max. :112.40
phi.N R.deep R.med SP
Min. :0.0150 Min. : 1.300 Min. : 1.340 Min. :-73.95
1st Qu.:0.2030 1st Qu.: 1.764 1st Qu.: 1.837 1st Qu.:-42.01
Median :0.2450 Median : 4.590 Median : 3.931 Median :-32.25
Mean :0.2213 Mean : 24.501 Mean : 21.196 Mean :-30.98
3rd Qu.:0.2640 3rd Qu.: 34.724 3rd Qu.: 35.853 3rd Qu.:-19.48
Max. :0.4100 Max. :153.085 Max. :106.542 Max. : 25.13
density.corr density phi.core k.core
Min. :-0.067000 Min. :1.758 Min. :15.70 Min. : 0.42
1st Qu.:-0.016000 1st Qu.:2.023 1st Qu.:23.90 1st Qu.: 657.33
Median :-0.007000 Median :2.099 Median :27.60 Median : 1591.22
Mean :-0.008883 Mean :2.102 Mean :26.93 Mean : 2251.91
3rd Qu.: 0.002000 3rd Qu.:2.181 3rd Qu.:30.70 3rd Qu.: 3046.82
Max. : 0.089000 Max. :2.387 Max. :36.30 Max. :15600.00
Facies
Length:819
Class :character
Mode :character
make sort the permeability in decreasing order:
sorted_k = sort(kcore,decreasing = TRUE)
head(sorted_k)
[1] 15600.00 14225.31 13544.98 13033.53 11841.74 11117.40
Subsequently, the procedure involves generating an additional vector that encapsulates the count of samples with permeability values greater than or equal to the designated threshold ‘k’. In the context of descending data ordering, the initial ‘K’ elements within this vector are characterized by possessing solely one permeability value equal to or exceeding the specified threshold, whereas the concluding ‘K’ elements encompass a total of 819 permeability values equal to or exceeding their respective designated thresholds, given the overall data length of 819.
n = length(sorted_k)
# find the percent for each permeability
k_percent = c(1:n)/(n+1)
summary(k_percent)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.00122 0.25061 0.50000 0.50000 0.74939 0.99878
mod1=lm(log10(sorted_k) ~ k_percent)
plot(k_percent, sorted_k, log="y", lwd = 2)
abline(mod1)
The Dykstra-Parsons coefficient of permeability variation (V) is determined from the graph as:
V=(k50−k84.1)/k50
k50=10^predict(mod1,data.frame(k_percent=c(0.5)))
k84.1=10^predict(mod1,data.frame(k_percent=c(0.841)))
V=(k50 - k84.1)/(k50)
print(V)
1
0.7661618
Thus, the heterogeneity index is determined to be 0.204, signifying a permeability distribution that falls within the category of slight heterogeneity. The relatively low heterogeneity value facilitates the utilization of a homogeneous model with minimal error.
is a numerical measure of income or wealth inequality. It is derived from the Lorenz curve. The lorenz coefficient is calculated as the ratio of the area between the Lorenz curve and the perfect equality line to the total area under the perfect equality line. The coefficient ranges from 0 (perfect equality) to 1 (perfect inequality, where one person or group has all the income or wealth).
thickness from the differences in depths.
thickness = depth[2:n]-depth[1:n-1]
summary(thickness)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.5000 0.5000 0.5000 0.5086 0.5000 1.0000
thickness=append(thickness, 0.5)
ta=data.frame(data)
ta["thickness"]=thickness
j=ta[order(kcore, decreasing = TRUE),]
summary(j)
depth caliper ind.deep ind.med gamma
Min. :5667 Min. :8.487 Min. : 6.532 Min. : 9.386 Min. : 16.74
1st Qu.:5769 1st Qu.:8.556 1st Qu.: 28.799 1st Qu.: 27.892 1st Qu.: 40.89
Median :5872 Median :8.588 Median :217.849 Median :254.383 Median : 51.37
Mean :5873 Mean :8.622 Mean :275.357 Mean :273.357 Mean : 53.42
3rd Qu.:5977 3rd Qu.:8.686 3rd Qu.:566.793 3rd Qu.:544.232 3rd Qu.: 62.37
Max. :6083 Max. :8.886 Max. :769.484 Max. :746.028 Max. :112.40
phi.N R.deep R.med SP
Min. :0.0150 Min. : 1.300 Min. : 1.340 Min. :-73.95
1st Qu.:0.2030 1st Qu.: 1.764 1st Qu.: 1.837 1st Qu.:-42.01
Median :0.2450 Median : 4.590 Median : 3.931 Median :-32.25
Mean :0.2213 Mean : 24.501 Mean : 21.196 Mean :-30.98
3rd Qu.:0.2640 3rd Qu.: 34.724 3rd Qu.: 35.853 3rd Qu.:-19.48
Max. :0.4100 Max. :153.085 Max. :106.542 Max. : 25.13
density.corr density phi.core k.core
Min. :-0.067000 Min. :1.758 Min. :15.70 Min. : 0.42
1st Qu.:-0.016000 1st Qu.:2.023 1st Qu.:23.90 1st Qu.: 657.33
Median :-0.007000 Median :2.099 Median :27.60 Median : 1591.22
Mean :-0.008883 Mean :2.102 Mean :26.93 Mean : 2251.91
3rd Qu.: 0.002000 3rd Qu.:2.181 3rd Qu.:30.70 3rd Qu.: 3046.82
Max. : 0.089000 Max. :2.387 Max. :36.30 Max. :15600.00
Facies thickness
Length:819 Min. :0.5000
Class :character 1st Qu.:0.5000
Mode :character Median :0.5000
Mean :0.5085
3rd Qu.:0.5000
Max. :1.0000
ta['kh']= j$k.core * j$thickness
ta['sum_kh']=cumsum(ta['kh'])
ta['sum_kh/total']=ta['sum_kh']/ta[n, 'sum_kh']
ta['phih'] = j$phi.core * j$thickness
ta['sum_phih'] = cumsum(ta['phih'])
ta['sum_phih/total'] = ta['sum_phih']/ta[n, 'sum_phih']
plot(ta['sum_phih/total'][1:n,1], ta['sum_kh/total'][1:n,1], xlab = "fraction of total volume (phih)",
ylab = "fraction of total flow capacity (kh)")
x = c(ta['sum_phih/total'][1:n,1])
dx = x[2:n] - x[1:n-1]
y1 = c(ta['sum_kh/total'][1:n,1])[1:n-1]
y2 = c(ta['sum_kh/total'][1:n,1])[2:n]
lower_area = sum(y1*dx) #Reduce("+", y1*dx)
upper_area = sum(y2*dx) #Reduce("+", y2*dx)
AUC = (lower_area + upper_area)/2
print(AUC)
[1] 0.7247318
Lorenz_coefficient = (AUC - 0.5)/0.5
print(Lorenz_coefficient)
[1] 0.4494636
The computed value is 0.45; within the Lorenz method, a closer proximity of the value to zero indicates a higher degree of heterogeneity. Therefore, the present value is characterized as denoting a reservoir of heterogeneity, specifically falling within the category of high heterogeneity.