PO.ESP.System.Hfric
Description
Simplified friction head calculation, [ft].
Syntax
=PO.ESP.System.Hfric(Q, tubing_ID, tubing_length, SG)Parameters
| Parameter | Description |
|---|---|
| Q | Flow rate, [bbl/d]. |
| tubing_ID | Tubing inner diameter, [in]. |
| tubing_length | Tubing length, [ft]. |
| SG | Fluid specific gravity, [dimensionless]. |
SI Unit Version
Lambda Name
PO.ESP.System.Hfric.SIFormula
=LAMBDA(Q, tubing_ID, tubing_length, SG, LET(
Q_bbld, PO.UnitConverter(Q, "m3/d", "bbl/d"),
tubing_ID_in, PO.UnitConverter(tubing_ID, "cm", "in"),
tubing_length_ft, PO.UnitConverter(tubing_length, "m", "ft"),
result_ft, PO.ESP.System.Hfric(Q_bbld, tubing_ID_in, tubing_length_ft, SG),
PO.UnitConverter(result_ft, "ft", "m")))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
Q |
m3/d | Flow rate, [m3/d] |
tubing_ID |
cm | Tubing inner diameter, [cm] |
tubing_length |
m | Tubing length, [m] |
SG |
- | Fluid specific gravity, [dimensionless] |
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.ESP.System.Hfric.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.ESP.System.Hfric.SI(...) anywhere in your workbook.