convert_oilfield_units
Convert between oilfield and SI units for volume, rate, pressure, length, density, temperature, permeability, viscosity, and energy. Supports units like bbl, m3, psi, kPa, API gravity, and more.
Instructions
Convert between oilfield and SI units.
Supports volume (bbl, m3, gal, liters, Mcf, MMcf, Bcf), rate (bbl/day, m3/day, Mcf/day, bbl/month), pressure (psi, kPa, MPa, bar, atm), length (ft, m, in, cm, miles, km), density (g/cc, kg/m3, lb/ft3, API gravity, SG), temperature (F, C, K), permeability (md, m2), viscosity (cp, Pa.s), and energy/BOE (BOE, MMBtu, Mcf_gas).
Args: value: Numeric value to convert. from_unit: Source unit (e.g. 'bbl', 'psi', 'API'). to_unit: Target unit (e.g. 'm3', 'kPa', 'SG').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| from_unit | Yes | ||
| to_unit | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |