PO.PVT.Rsw.ByMcCain


Description

Calculates solution gas-water ratio for reservoir water using McCain correlation, [scf/STB].

Syntax

=PO.PVT.Rsw.ByMcCain(Rsw_pure, salinity_pct, T_degF)

Parameters

Parameter Description
Rsw_pure Solution gas-water ratio for pure water, [scf/STB].
salinity_pct Salinity, [% by weight].
T_degF Temperature, [degF].

SI Unit Version

Lambda Name PO.PVT.Rsw.ByMcCain.SI
Formula
=LAMBDA(Rsw_pure, salinity_pct, T_degC, LET( Rsw_pure_scfSTB, PO.UnitConverter(Rsw_pure, "sm3/sm3", "scf/STB"), T_degF, PO.UnitConverter(T_degC, "degC", "degF"), result_scfSTB, PO.PVT.Rsw.ByMcCain(Rsw_pure_scfSTB, salinity_pct, T_degF), PO.UnitConverter(result_scfSTB, "scf/STB", "sm3/sm3")))
SI Parameters
Parameter Unit Description
Rsw_pure sm3/sm3 Pure water solution GOR
salinity_pct - Salinity (wt%)
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:

  1. Go to Formulas → Name Manager → New
  2. Enter a name, e.g. PO.PVT.Rsw.ByMcCain.SI
  3. In Refers to, paste the LAMBDA formula without the trailing invocation (...)
  4. Click OK

Now use =PO.PVT.Rsw.ByMcCain.SI(...) anywhere in your workbook.

Missing a formula? Suggest a New Formula

An unhandled error has occurred. Reload X