PO.VFP.Liq.Pin


Description

Calculates inlet pipe pressure for single phase pipe flow of incompressible, Newtonian fluid, [psi].

Syntax

=PO.VFP.Liq.Pin(Ql, P_out, Rho_l, Ul, pipe_ID, pipe_length, pipe_roughness, pipe_angle)

Parameters

Parameter Description
Ql Liquid rate, [bbl/D].
P_out Outlet pipe pressure, [psi].
Rho_l Liquid density, [lb/ft3].
Ul Liquid viscosity, [cP].
pipe_ID Pipe inner diameter, [in].
pipe_length Pipe length, [ft].
pipe_roughness Pipe relative roughness, [dimensionless].
pipe_angle Pipe angle from horizontal, [degrees]. Horizontal flow: angle = 0; Vertical well producer: angle = 90; Vertical well injector: angle = -90.

SI Unit Version

Lambda Name PO.VFP.Liq.Pin.SI
Formula
=LAMBDA(Ql, P_out, Rho_l, Ul, pipe_ID, pipe_length, pipe_roughness, pipe_angle, LET( Ql_bbld, PO.UnitConverter(Ql, "m3/d", "bbl/d"), P_out_psi, PO.UnitConverter(P_out, "kPa", "psi"), 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.VFP.Liq.Pin(Ql_bbld, P_out_psi, Rho_l_lbft3, Ul, pipe_ID_in, pipe_length_ft, pipe_roughness, pipe_angle), PO.UnitConverter(result_psi, "psi", "kPa")))
SI Parameters
Parameter Unit Description
Ql m3/d Liquid rate, [m3/d]
P_out kPa Outlet pipe pressure, [kPa]
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 - Pipe relative roughness, [dimensionless]
pipe_angle - Pipe angle from horizontal, [degrees]. Horizontal flow: angle = 0; Vertical well producer: angle = 90; Vertical well injector: angle = -90
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.VFP.Liq.Pin.SI
  3. In Refers to, paste the LAMBDA formula without the trailing invocation (...)
  4. Click OK

Now use =PO.VFP.Liq.Pin.SI(...) anywhere in your workbook.

Missing a formula? Suggest a New Formula

An unhandled error has occurred. Reload X