calculate_oil_co
Calculate oil compressibility for reservoir engineering using Vasquez-Beggs and material-balance methods based on API gravity, gas specific gravity, temperature, and pressure inputs.
Instructions
Calculate oil compressibility above and below bubble point.
Uses Vasquez-Beggs (1980) above Pb and material-balance approach below Pb.
Args: api_gravity: Oil API gravity (degrees). gas_sg: Gas specific gravity (air = 1.0). temperature: Reservoir temperature in F. pressure: Current reservoir pressure in psi. bubble_point_pressure: Known bubble point pressure in psi (optional). rs_at_pb: Solution GOR at bubble point in scf/STB (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_gravity | Yes | ||
| gas_sg | Yes | ||
| temperature | Yes | ||
| pressure | Yes | ||
| bubble_point_pressure | No | ||
| rs_at_pb | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |