Created
July 4, 2019 22:32
-
-
Save kperry2215/88a9426f7fdbff5f4ca7ccf26653249b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hyperbolic_equation(t, qi, b, di): | |
""" | |
Hyperbolic decline curve equation | |
Arguments: | |
t: Float. Time since the well first came online, can be in various units | |
(days, months, etc) so long as they are consistent. | |
qi: Float. Initial production rate when well first came online. | |
b: Float. Hyperbolic decline constant | |
di: Float. Nominal decline rate at time t=0 | |
Output: | |
Returns q, or the expected production rate at time t. Float. | |
""" | |
return qi/((1.0+b*di*t)**(1.0/b)) | |
def exponential_equation(t, qi, di): | |
""" | |
Exponential decline curve equation | |
Arguments: | |
t: Float. Time since the well first came online, can be in various units | |
(days, months, etc) so long as they are consistent. | |
qi: Float. Initial production rate when well first came online. | |
di: Float. Nominal decline rate (constant) | |
Output: | |
Returns q, or the expected production rate at time t. Float. | |
""" | |
return qi*np.exp(-di*t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment