PO.SF.PL.Liq.dP
Description
Pressure drop for liquid pipeline using Darcy-Weisbach equation, [psi]
Syntax
=PO.SF.PL.Liq.dP(Ql, Rho_l, Ul, pipe_ID, pipe_length, pipe_roughness)Parameters
| Parameter | Description |
|---|---|
| Ql | Liquid flow rate, [bbl/d] |
| Rho_l | Liquid density, [lb/ft3] |
| Ul | Liquid viscosity, [cP] |
| pipe_ID | Pipe inner diameter, [in] |
| pipe_length | Pipe length, [ft] |
| pipe_roughness | Relative roughness (e/D) |
SI Unit Version
Lambda Name
PO.SF.PL.Liq.dP.SIFormula
=LAMBDA(Ql, Rho_l, Ul, pipe_ID, pipe_length, pipe_roughness, LET(
Ql_bbld, PO.UnitConverter(Ql, "m3/d", "bbl/d"),
Rho_l_lbft3, PO.UnitConverter(Rho_l, "kg/m3", "lb/ft3"),
pipe_ID_in, PO.UnitConverter(pipe_ID, "cm", "in"),
pipe_length_ft, PO.UnitConverter(pipe_length, "m", "ft"),
result_psi, PO.SF.PL.Liq.dP(Ql_bbld, Rho_l_lbft3, Ul, pipe_ID_in, pipe_length_ft, pipe_roughness),
PO.UnitConverter(result_psi, "psi", "kPa")))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
Ql |
m3/d | Liquid flow rate, [m3/d] |
Rho_l |
kg/m3 | Liquid density, [kg/m3] |
Ul |
- | Liquid viscosity, [cP] |
pipe_ID |
cm | Pipe inner diameter, [cm] |
pipe_length |
m | Pipe length, [m] |
pipe_roughness |
- | Relative roughness (e/D) |
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.SF.PL.Liq.dP.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.SF.PL.Liq.dP.SI(...) anywhere in your workbook.