PO.VFP.Gas.Pout
Description
Calculates outlet pipe pressure for single phase pipe flow of gas (compressible fluid), [psi].
Syntax
=PO.VFP.Gas.Pout(Qg, P_in, T_degF, SG_gas, Ug, Z, pipe_ID, pipe_length, pipe_roughness, pipe_angle)Parameters
| Parameter | Description |
|---|---|
| Qg | Gas rate, [mmscf/D]. |
| P_in | Inlet pipe pressure, [psi]. |
| T_degF | Temperature at middle point of the pipe, [degF]. |
| SG_gas | Gas specific gravity, [dimensionless]. |
| Ug | Gas viscosity, [cP]. |
| Z | Gas compressibility factor (Z), [dimensionless]. |
| 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.Gas.Pout.SIFormula
=LAMBDA(Qg, P_in, T, SG_gas, Ug, Z, pipe_ID, pipe_length, pipe_roughness, pipe_angle, LET(
Qg_mmscfd, PO.UnitConverter(Qg, "sm3/d", "mmscf/d"),
P_in_psi, PO.UnitConverter(P_in, "kPa", "psi"),
T_degF, PO.UnitConverter(T, "degC", "degF"),
pipe_ID_in, PO.UnitConverter(pipe_ID, "cm", "in"),
pipe_length_ft, PO.UnitConverter(pipe_length, "m", "ft"),
result_psi, PO.VFP.Gas.Pout(Qg_mmscfd, P_in_psi, T_degF, SG_gas, Ug, Z, pipe_ID_in, pipe_length_ft, pipe_roughness, pipe_angle),
PO.UnitConverter(result_psi, "psi", "kPa")))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
Qg |
sm3/d | Gas rate, [sm3/d] |
P_in |
kPa | Inlet pipe pressure, [kPa] |
T |
degC | Temperature at middle point of the pipe, [degC] |
SG_gas |
- | Gas specific gravity, [dimensionless] |
Ug |
- | Gas viscosity, [cP] |
Z |
- | Gas compressibility factor (Z), [dimensionless] |
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:
- Go to Formulas → Name Manager → New
- Enter a name, e.g.
PO.VFP.Gas.Pout.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.VFP.Gas.Pout.SI(...) anywhere in your workbook.