PO.PVT.Uw.ByMcCain
Description
Calculates water viscosity using McCain correlation, [cP].
Syntax
=PO.PVT.Uw.ByMcCain(P, Uw_1atm)Parameters
| Parameter | Description |
|---|---|
| P | Pressure, [psi]. |
| Uw_1atm | Water viscosity at atmospheric pressure, [cP]. |
SI Unit Version
Lambda Name
PO.PVT.Uw.ByMcCain.SIFormula
=LAMBDA(P, Uw_1atm, LET(
P_psi, PO.UnitConverter(P, "kPa", "psi"),
Uw_1atm_cP, PO.UnitConverter(Uw_1atm, "mPa*s", "cP"),
result_cP, PO.PVT.Uw.ByMcCain(P_psi, Uw_1atm_cP),
PO.UnitConverter(result_cP, "cP", "mPa*s")))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
P |
kPa | Pressure |
Uw_1atm |
mPa*s | Water viscosity at 1 atm |
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.ByMcCain.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.PVT.Uw.ByMcCain.SI(...) anywhere in your workbook.