Created
July 4, 2019 22:31
-
-
Save kperry2215/70236007b79910213e5a3395c6ff6a9e to your computer and use it in GitHub Desktop.
hyperbolic_exponential_equations
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