Heterogeneity is the spatial variability in permeability and can be calculated by two methods:
1- Dykstra-Parson Coefficient
2- Lorentz Coefficient
1-Dykstra-Parsons coefficient The Dykstra-Parsons method involves plotting the frequency distribution of the permeability on a log-normal probability graph paper. This is done by arranging the permeability values in descending order and then calculating for each permeability, the percent of the samples with permeability greater than that value. to avoid values of zero or 100%, the percent greater than or equal to value is normalized by n+1, where n it is the number of samples.
data=read.csv("karpur.csv")
head(data)
## depth caliper ind.deep ind.med gamma phi.N R.deep R.med SP
## 1 5667.0 8.685 618.005 569.781 98.823 0.410 1.618 1.755 -56.587
## 2 5667.5 8.686 497.547 419.494 90.640 0.307 2.010 2.384 -61.916
## 3 5668.0 8.686 384.935 300.155 78.087 0.203 2.598 3.332 -55.861
## 4 5668.5 8.686 278.324 205.224 66.232 0.119 3.593 4.873 -41.860
## 5 5669.0 8.686 183.743 131.155 59.807 0.069 5.442 7.625 -34.934
## 6 5669.5 8.686 109.512 75.633 57.109 0.048 9.131 13.222 -39.769
## density.corr density phi.core k.core Facies
## 1 -0.033 2.205 33.9000 2442.590 F1
## 2 -0.067 2.040 33.4131 3006.989 F1
## 3 -0.064 1.888 33.1000 3370.000 F1
## 4 -0.053 1.794 34.9000 2270.000 F1
## 5 -0.054 1.758 35.0644 2530.758 F1
## 6 -0.058 1.759 35.3152 2928.314 F1
data=data[order(data$k.core,decreasing = TRUE),]
K=data$k.core
sample=c(1: length(K))
Next, figure out what percentage of the samples had permeabilities higher than that value for each permeability. We just created a list containing the numbers 1, 2, 3,…, n, and divided each number by (n+1) because the permeability is sorted descending order.
K_percent = (sample * 100) / length(K)
Plot the data using K_sorted on the y-axis and k_percent on the x-axis to create a log-normal probability graph.
xlab = "all samples with values greater than or equal to K"
ylab = "permeability"
plot(K_percent,K,log = 'y',xlab=xlab,ylab=ylab, pch=10, cex=0.5,col = "red")
log_K=log(K)
model = lm(log_K~K_percent)
plot(K_percent,log_K,xlab = xlab, ylab = ylab,pch=10, cex=0.5,col = "red")
abline(model, col = 'blue', lwd = 2)
summary(model)
##
## Call:
## lm(formula = log_K ~ K_percent)
##
## Residuals:
## Min 1Q Median 3Q Max
## -5.8697 -0.2047 0.1235 0.3150 0.4280
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 9.2584172 0.0377994 244.94 <2e-16 ***
## K_percent -0.0425617 0.0006541 -65.07 <2e-16 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.5404 on 817 degrees of freedom
## Multiple R-squared: 0.8382, Adjusted R-squared: 0.838
## F-statistic: 4234 on 1 and 817 DF, p-value: < 2.2e-16
The Dykstra-Parsons coefficient of permeability variation, V, is determined from the graph as:
V=(k50−k84.1)/k50
where:
k50 = permeability value at %k>= 50 (log mean)
k84.1= permeability value at %k >= 84.1 (one standard deviation) to calc HI:
new_data = data.frame(K_percent = c(50, 84.1))
predicted_values = predict(model,new_data)
heterogeneity_index=(predicted_values[1] - predicted_values[2])/predicted_values[1]
heterogeneity_index
## 1
## 0.2035464
2-Lorenz model
we need to calculate the thickness of each permeability:
data=read.csv("karpur.csv")
thickness = c(0.5)
for (i in 2: length(data$depth)) { h= data$depth[i]-data$depth[i-1]
thickness=append(thickness,h)}
data=data[order(data$k.core,decreasing = TRUE),]
Determine the storage and flow capacities. Next, determine each one’s cumulative sum:
Kh = thickness * data$k.core
Ph = thickness * data$phi.core
cum_sum_kh = cumsum(Kh)
cum_sum_ph = cumsum(Ph)
The fraction total volume and % total flow must be calculated:
fraction_total_volume = (cum_sum_ph/100) / max(cum_sum_ph/100)
fraction_total_flow = cum_sum_kh / max(cum_sum_kh)
plotting storage capacity on X-axis and the flow capacity on Y-axis:
plot(fraction_total_volume,fraction_total_flow, pch = 8, cex = 0.4, col = 'red', text(0.4, 0.8, "D"))
text(0,0, "A", pos = 2)
text(1,1, "B", pos = 1)
text(1,0, "C", pos = 2)
abline(0,1, col = 'blue', lwd = 2)
Calc area under the graph:
require("DescTools")
## Loading required package: DescTools
library(DescTools)
area = AUC(fraction_total_volume, fraction_total_flow, method="trapezoid")
Lorenz_Coefficient = (area - 0.5) / 0.5
Lorenz_Coefficient
## [1] 0.4524741