PO.SF.PL.Gas.PanhandleA.Pout
Description
Outlet pressure for gas pipeline using Panhandle A equation, [psia]
Syntax
=PO.SF.PL.Gas.PanhandleA.Pout(Qg, P_in, pipe_ID, pipe_length, SG_gas, T, Z, E)Parameters
| Parameter | Description |
|---|---|
| Qg | Gas flow rate, [Mscf/d] |
| P_in | Inlet pressure, [psia] |
| pipe_ID | Pipe inner diameter, [in] |
| pipe_length | Pipe length, [miles] |
| SG_gas | Gas specific gravity (air=1) |
| T | Average temperature, [degF] |
| Z | Gas compressibility factor |
| E | Pipeline efficiency (0-1) |
SI Unit Version
Lambda Name
PO.SF.PL.Gas.PanhandleA.Pout.SIFormula
=LAMBDA(Qg, P_in, pipe_ID, pipe_length, SG_gas, T, Z, E, LET(
Qg_Mscfd, PO.UnitConverter(Qg, "sm3/d", "Mscf/d"),
P_in_psi, PO.UnitConverter(P_in, "kPa", "psi"),
pipe_ID_in, PO.UnitConverter(pipe_ID, "cm", "in"),
pipe_length_mi, PO.UnitConverter(pipe_length, "km", "mi"),
T_degF, PO.UnitConverter(T, "degC", "degF"),
result_psi, PO.SF.PL.Gas.PanhandleA.Pout(Qg_Mscfd, P_in_psi, pipe_ID_in, pipe_length_mi, SG_gas, T_degF, Z, E),
PO.UnitConverter(result_psi, "psi", "kPa")))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
Qg |
sm3/d | Gas flow rate, [sm3/d] |
P_in |
kPa | Inlet pressure, [kPa] |
pipe_ID |
cm | Pipe inner diameter, [cm] |
pipe_length |
km | Pipe length, [km] |
SG_gas |
- | Gas specific gravity (air=1) |
T |
degC | Average temperature, [degC] |
Z |
- | Gas compressibility factor |
E |
- | Pipeline efficiency (0-1) |
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.Gas.PanhandleA.Pout.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.SF.PL.Gas.PanhandleA.Pout.SI(...) anywhere in your workbook.