PO.PVT.Uw.1Atm.ByMcCain
Description
Calculates water viscosity at atmospheric pressure and reservoir temperature using McCain correlation, [cP].
Syntax
=PO.PVT.Uw.1Atm.ByMcCain(T_degF, salinity_pct)Parameters
| Parameter | Description |
|---|---|
| T_degF | Temperature, [degF]. |
| salinity_pct | Salinity, [% by weight]. |
SI Unit Version
Lambda Name
PO.PVT.Uw.1Atm.ByMcCain.SIFormula
=LAMBDA(T_degC, salinity_pct, LET(
T_degF, PO.UnitConverter(T_degC, "degC", "degF"),
result_cP, PO.PVT.Uw.1Atm.ByMcCain(T_degF, salinity_pct),
PO.UnitConverter(result_cP, "cP", "mPa*s")))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
T_degC |
degC | Temperature |
salinity_pct |
- | Salinity (wt%) |
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.Uw.1Atm.ByMcCain.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.PVT.Uw.1Atm.ByMcCain.SI(...) anywhere in your workbook.