fit_decline
Fit decline curves to oil and gas production data using Arps (exponential, hyperbolic, harmonic, modified hyperbolic) and Duong models. Returns fitted parameters, R-squared, and predicted rates with physics-constrained bounds.
Instructions
Fit decline curves to production data.
Supports Arps models (exponential, hyperbolic, harmonic), modified hyperbolic with Dmin terminal decline switch, and Duong model for unconventional/shale wells with fracture-dominated flow.
Returns fitted parameters, R-squared, and predicted rates. Physics-constrained: b-factor bounded to [0, 2], non-negative rates enforced.
Args: production_data: List of dicts with 'time' (months) and 'rate' keys, or 'oil'/'gas' keys (time assumed as sequential months). model: Decline model - 'exponential', 'hyperbolic', 'harmonic', 'modified_hyperbolic', or 'duong'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| production_data | Yes | ||
| model | No | hyperbolic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |