Decline Curve Analysis
Classic and unconventional decline models, decline diagnostics, rate conversions, field production profiles and the cash-flow economics a forecast feeds.
Classic Decline Models
PO.DCA.Arps.RateCalculates rate using Arps (1945) decline curve, {L3/T}. Units of volume {L3} and time {T} must be consistent. Use b=0 for exponential, 0<b<1 for hyperbolic, b=1 for harmonic.PO.DCA.Arps.ProdCalculates cumulative production using Arps (1945) decline curve, {L3}. Units of volume {L3} and time {T} must be consistent. Use b=0 for exponential, 0<b<1 for hyperbolic, b=1 for harmonic.PO.DCA.Arps.TimeTime to reach an economic rate limit for Arps decline, {T}. Returns the time when the production rate falls to the specified economic limit.PO.DCA.Arps.EUREstimated Ultimate Recovery (EUR) to an economic rate limit for Arps decline, {L3}. Returns cumulative production up to the time the rate reaches the economic limit.PO.DCA.Arps.FitFit Arps decline to rate-time data and return parameters as a column array (Qi, Di, b).PO.DCA.Arps.WFitFit Arps decline to rate-time data with weights and return parameters as a column array (Qi, Di, b).PO.DCA.ModHyp.RateCalculates rate using modified hyperbolic production decline curve. Units of volume {L3} and time {T} must be consistent.PO.DCA.ModHyp.ProdCalculates cumulative production using modified hyperbolic production decline curve. Units of volume {L3} and time {T} must be consistent.PO.DCA.ModHyp.TimeTime to reach an economic rate limit for modified hyperbolic decline, {T}. Returns the time when the production rate falls to the specified economic limit.PO.DCA.ModHyp.EUREstimated Ultimate Recovery (EUR) to an economic rate limit for modified hyperbolic decline, {L3}. Returns cumulative production up to the time the rate reaches the economic limit.PO.DCA.ModHyp.FitFit Modified Hyperbolic decline to rate-time data and return parameters as a column array (Qi, Di, Dlim, b).PO.DCA.ModHyp.WFitWeighted fit of Modified Hyperbolic decline to rate-time data and return parameters as a column array (Qi, Di, Dlim, b).
Unconventional Decline Models
PO.DCA.THM.RateCalculates production rate using Transient Hyperbolic Model. Units of volume {L3} and time {T} must be consistent.PO.DCA.THM.ProdCalculates cumulative production using Transient Hyperbolic Model. Units of volume {L3} and time {T} must be consistent.PO.DCA.THM.TimeTime to reach an economic rate limit for Transient Hyperbolic Model, {T}.PO.DCA.THM.EUREstimated Ultimate Recovery (EUR) to an economic rate limit for Transient Hyperbolic Model, {L3}.PO.DCA.THM.FitFit Transient Hyperbolic Model to rate-time data and return parameters as a column array (Qi, Di, bi, bf, telf).PO.DCA.THM.WFitWeighted fit of Transient Hyperbolic Model to rate-time data and return parameters as a column array (Qi, Di, bi, bf, telf).PO.DCA.PLE.RateCalculates production rate using Power Law Exponential (PLE) rate decline model. Units of volume {L3} and time {T} must be consistent.PO.DCA.PLE.ProdCalculates cumulative production using Power Law Exponential (PLE) rate decline model. Units of volume {L3} and time {T} must be consistent.PO.DCA.PLE.TimeTime to reach an economic rate limit for Power Law Exponential (PLE) decline, {T}. Returns the time when the production rate falls to the specified economic limit.PO.DCA.PLE.EUREstimated Ultimate Recovery (EUR) to an economic rate limit for Power Law Exponential (PLE) decline, {L3}. Returns cumulative production up to the time the rate reaches the economic limit.PO.DCA.PLE.FitFit Power Law Exponential (PLE) decline to rate-time data and return parameters as a column array (Qi_intercept, Di_intercept, D_inf, n).PO.DCA.PLE.WFitWeighted fit of Power Law Exponential (PLE) decline to rate-time data and return parameters as a column array (Qi_intercept, Di_intercept, D_inf, n).PO.DCA.SEDM.RateCalculates production rate using Stretched Exponential decline model. Units of volume {L3} and time {T} must be consistent.PO.DCA.SEDM.ProdCalculates cumulative production using Stretched Exponential decline model. Units of volume {L3} and time {T} must be consistent.PO.DCA.SEDM.TimeTime to reach an economic rate limit for Stretched Exponential decline, {T}.PO.DCA.SEDM.EUREstimated Ultimate Recovery (EUR) to an economic rate limit for Stretched Exponential decline, {L3}.PO.DCA.SEDM.FitFit Stretched Exponential decline to rate-time data and return parameters as a column array (Qi, Tau, N).PO.DCA.SEDM.WFitWeighted fit of Stretched Exponential decline to rate-time data and return parameters as a column array (Qi, Tau, N).PO.DCA.EEDM.RateCalculates production rate using Extended Exponential Decline Model (EEDM). Units of volume {L3} and time {T} must be consistent.PO.DCA.EEDM.ProdCalculates cumulative production using Extended Exponential Decline Model (EEDM). Units of volume {L3} and time {T} must be consistent.PO.DCA.EEDM.TimeTime to reach an economic rate limit for Extended Exponential Decline Model (EEDM), {T}.PO.DCA.EEDM.EUREstimated Ultimate Recovery (EUR) to an economic rate limit for Extended Exponential Decline Model (EEDM), {L3}. Returns cumulative production until the rate reaches the economic limit; with Q_econ 0 or less, the terminal-decline estimate Q0/BetaL.PO.DCA.EEDM.FitFit Extended Exponential Decline Model (EEDM) to rate-time data and return parameters as a column array (Q0, BetaL, BetaE, n).PO.DCA.EEDM.WFitWeighted fit of Extended Exponential Decline Model (EEDM) to rate-time data and return parameters as a column array (Q0, BetaL, BetaE, n).PO.DCA.Duong.RateCalculates rate using Duong decline model, {L3/T}. Units of volume {L3} and time {T} must be consistent.PO.DCA.Duong.ProdCalculates cumulative production using Duong decline model, {L3}. Units of volume {L3} and time {T} must be consistent.PO.DCA.Duong.TimeTime to reach an economic rate limit for Duong decline, {T}. Returns the time when the rate falls to the specified limit.PO.DCA.Duong.EUREstimated Ultimate Recovery (EUR) to an economic rate limit for Duong decline, {L3}.PO.DCA.Duong.FitFit Duong decline to rate-time data and return parameters as a column array (q1, qInf, a, m).PO.DCA.Duong.WFitWeighted fit of Duong decline to rate-time data and return parameters as a column array (q1, qInf, a, m).PO.DCA.LGM.RateCalculates production rate using Logistic Growth Model (LGM). Units of volume {L3} and time {T} must be consistent.PO.DCA.LGM.ProdCalculates cumulative production using Logistic Growth Model (LGM). Units of volume {L3} and time {T} must be consistent.PO.DCA.LGM.TimeTime to reach an economic rate limit for Logistic Growth Model (LGM), {T}.PO.DCA.LGM.EUREstimated Ultimate Recovery (EUR) to an economic rate limit for Logistic Growth Model (LGM), {L3}. Returns cumulative production up to the time the rate reaches the economic limit; with Q_econ 0 or less, the carrying capacity K.PO.DCA.LGM.FitFit Logistic Growth Model (LGM) to rate-time data and return parameters as a column array (K, a, n).PO.DCA.LGM.WFitWeighted fit of Logistic Growth Model (LGM) to rate-time data and return parameters as a column array (K, a, n).PO.DCA.AKB.RateCalculates production rate using Ansah-Knowles-Buba (2000) semi-analytical decline model for bounded reservoirs. Units of volume {L3} and time {T} must be consistent.PO.DCA.AKB.ProdCalculates cumulative production using Ansah-Knowles-Buba (2000) semi-analytical decline model for bounded reservoirs. Units of volume {L3} and time {T} must be consistent.PO.DCA.AKB.TimeTime to reach an economic rate limit for Ansah-Knowles-Buba (2000) decline, {T}. Returns the time when the production rate falls to the specified economic limit.PO.DCA.AKB.EUREstimated Ultimate Recovery (EUR) to an economic rate limit for Ansah-Knowles-Buba (2000) decline, {L3}. Returns cumulative production up to the time the rate reaches the economic limit.PO.DCA.AKB.FitFit Ansah-Knowles-Buba (2000) decline to rate-time data and return parameters as a column array (Qi, Alpha, Beta).PO.DCA.AKB.WFitWeighted fit of Ansah-Knowles-Buba (2000) decline to rate-time data and return parameters as a column array (Qi, Alpha, Beta).
Decline Diagnostics
PO.DCA.Diag.BourdetCalculates the Bourdet (smoothed) derivative at point t. Used for flow regime identification and production diagnostics.PO.DCA.Diag.Bourdet.SemiLogCalculates the classical Bourdet derivative dy/d(ln x) at point t, the log-domain estimator used for semilog and log-log well-test analysis. Multiply by LN(10) for a slope per log cycle.PO.DCA.Diag.BetaComputes the beta diagnostic β = t×D(t) for flow regime identification. β≈0.5: linear flow, β≈0.25: bilinear, β≈1.0: boundary-dominated.PO.DCA.Diag.bParamComputes the time-varying Arps b-parameter. b=0: exponential, 0<b<1: hyperbolic, b=1: harmonic, b>1: transient (unconventional).PO.DCA.Arps.DCalculates instantaneous decline rate D(t) for Arps decline, {1/T}. D(t) = Di/(1+b×Di×t). Computed numerically.PO.DCA.ModHyp.DCalculates instantaneous decline rate D(t) for Modified Hyperbolic decline, {1/T}. Computed numerically.PO.DCA.PLE.DCalculates instantaneous decline rate D(t) for Power Law Exponential (PLE) model, {1/T}. D(t) = D∞ + n×Di0×t^(n-1). Computed numerically.PO.DCA.SEDM.DCalculates instantaneous decline rate D(t) for Stretched Exponential model, {1/T}. D(t) = (n/τ)×(t/τ)^(n-1). Computed numerically.PO.DCA.EEDM.DCalculates instantaneous decline rate D(t) for Extended Exponential Decline Model (EEDM), {1/T}. Computed analytically.PO.DCA.Duong.DCalculates instantaneous decline rate D(t) for Duong model, {1/T}. Computed numerically.PO.DCA.LGM.DCalculates instantaneous decline rate D(t) for Logistic Growth Model (LGM), {1/T}. Computed analytically.PO.DCA.THM.DCalculates instantaneous decline rate D(t) for Transient Hyperbolic Model, {1/T}. Computed analytically.PO.DCA.AKB.DCalculates instantaneous decline rate D(t) for Ansah-Knowles-Buba (2000) decline, {1/T}. Computed numerically.
Decline Rate Conversions
PO.DCA.Convert.NominalToEffectiveConverts nominal (continuous) decline rate to effective (periodic) decline rate. De = 1 - exp(-Dn).PO.DCA.Convert.EffectiveToNominalConverts effective (periodic) decline rate to nominal (continuous) decline rate. Dn = -ln(1 - De).PO.DCA.Convert.AnnualToMonthlyConverts annual effective decline rate to monthly effective decline rate using compound conversion.PO.DCA.Convert.MonthlyToAnnualConverts monthly effective decline rate to annual effective decline rate using compound conversion.PO.DCA.Convert.DailyToAnnualConverts daily effective decline rate to annual effective decline rate using compound conversion.
Production Data Quality
PO.DCA.Data.OutlierFlagFlags outliers using rolling window Z-score analysis. Returns a column, one TRUE or FALSE per data point, in input order: TRUE where the point is an outlier by local statistics.PO.DCA.Data.CleanCleans production data by interpolating over outlier points. Returns a column, one rate per data point, in input order, with outliers replaced by interpolated values.
Curve-Fit Objectives
PO.Stats.SSEComputes the sum of squared errors (SSE) between observed and predicted rate sequences. Returns a scalar value.PO.Stats.WSSEComputes the weighted SSE between observed and predicted sequences.PO.Stats.LogSSEComputes the sum of squared errors (SSE) in log-space between observed and predicted rate sequences. Small positive epsilon added before taking logs to avoid log(0).PO.Stats.WLogSSEComputes the weighted log-space SSE between observed and predicted sequences. Small positive epsilon added before taking logs to avoid log(0).PO.Stats.RMSEComputes the root mean squared error (RMSE) between observed and predicted sequences. RMSE = sqrt(SSE/n).PO.Stats.R2Computes the coefficient of determination (R²) between observed and predicted sequences. R² = 1 - SSE/TSS. Returns 1.0 for perfect fit.
Field Production Profiles
PO.FPP.Field.RateCalculates field production rate at time t using buildup-plateau-decline model. Linear ramp during buildup, constant rate during plateau, Arps decline after. Supports exponential (b=0), hyperbolic (0<b<1), and harmonic (b=1) decline.PO.FPP.Field.ProdCalculates cumulative field production at time t using buildup-plateau-decline model. Integrates rate over buildup, plateau, and decline phases. Supports exponential (b=0), hyperbolic (0<b<1), and harmonic (b=1) decline.PO.FPP.Sched.RateCalculates aggregated field rate from drilling schedule. Uses convolution of well profile with drilling schedule.PO.FPP.Sched.ProdCalculates cumulative field production from drilling schedule. Uses trapezoidal integration of aggregated rate profile.
Can't find what you need? Request a formula