fit_decline
Fit decline curves to oil and gas production data using industry-standard models like Arps, modified hyperbolic, and Duong for unconventional wells. Returns fitted parameters, R-squared values, and predicted rates with physics constraints.
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 |