Automating Google Workspace (GWS) & more with Apps Script
TPM.pptx
1. BY:-
ABHINAV BHOSALE
SHUBHAM KUMAR
NAKUL SANADHYA
Klinkenberg Effect
Dept. of Petroleum Engineering,
Indian Institute of Petroleum and Energy,
Vizag(AP)
Course-TPM
Course Instructor- Dr. Sivasankar P.
2. Problem statement
To find the absolute permeability from the Newton-
Raphson method is very lengthy and time taking, so
for this we have developed a programme in which
we give some input and from this input an output
will be provided and this output will be absolute
permeability of a core sample.
3. OBJECTIVE
•Our Objective is to calculate the absolute permeability in
minimum time.
•Using the corelation between absolute permeability, mean
pressure and air permeability.
•6.9 kL*0.64 + pmkL -pm kg = 0
•pm = mean pressure,psi
•kg = air permeability at pm,psi
•kL = absolute permeability (k), md
4. Methodology
Step 1: read Kg,Ki,Pm,er and initialize
iteration counter
Step 2: Calculate f(Ki)
Step 3: if abs(f(Ki)/f’(Ki)) > = er
Then ki + 1 = Ki-f(Ki)/f’(Ki)
Step 4: increment counter
Step 5: print final Ki...(when f(Ki) < er
then loop will break and final ki value with
number of iteration performed get
printed in GUI window)
from tkinter import *
root = Tk()
root.geometry("700x500")
root.maxsize(700, 500)
root.title("Permeability calculator")
root.wm_iconbitmap("icon.ico")
def calculate():
kg = float(val1.get())
ki = float(val2.get())
pm = float(val3.get())
er = float(val4.get())
c = 0
while abs(6.9*(ki**0.64)+(pm*ki)-
(pm*kg)) >= er:
ki = ki - ((6.9*(ki*0.64)+(pm*ki)-
(pm*kg))/(4.416(ki**(- 0.36))+pm))
c = c + 1
val5.set(str(ki.real))
val6.set(str(c)) f