PO.PVT.Rs.ByAlMarhoun
Description
Calculates solution gas-oil ratio using Al-Marhoun (1988) correlation, P <= Pb, [scf/STB].
Syntax
=PO.PVT.Rs.ByAlMarhoun(SG_gas, API, P, T_degF)Parameters
| Parameter | Description |
|---|---|
| SG_gas | Gas specific gravity, [dimensionless]. |
| API | Oil gravity, [API]. |
| P | Pressure, [psi]. |
| T_degF | Temperature, [degF]. |
SI Unit Version
Lambda Name
PO.PVT.Rs.ByAlMarhoun.SIFormula
=LAMBDA(SG_gas, API, P, T_degC, LET(
P_psi, PO.UnitConverter(P, "kPa", "psi"),
T_degF, PO.UnitConverter(T_degC, "degC", "degF"),
result_scfSTB, PO.PVT.Rs.ByAlMarhoun(SG_gas, API, P_psi, T_degF),
PO.UnitConverter(result_scfSTB, "scf/STB", "sm3/sm3")))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
SG_gas |
- | Gas specific gravity (air = 1.0) |
API |
- | Oil API gravity |
P |
kPa | Pressure |
T_degC |
degC | Temperature |
How to save as a reusable Excel function
LAMBDA is a built-in Excel feature (Microsoft 365) that lets you create custom functions without VBA. The formula above works as-is when pasted into a cell.
To save a LAMBDA as a reusable named function:
- Go to Formulas → Name Manager → New
- Enter a name, e.g.
PO.PVT.Rs.ByAlMarhoun.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.PVT.Rs.ByAlMarhoun.SI(...) anywhere in your workbook.