PO.SF.PL.Gas.PanhandleA.Rate


Description

Gas flow rate using Panhandle A equation for medium-pressure transmission, [Mscf/d]

Syntax

=PO.SF.PL.Gas.PanhandleA.Rate(P_in, P_out, pipe_ID, pipe_length, SG_gas, T, Z, E)

Parameters

Parameter Description
P_in Inlet pressure, [psia]
P_out Outlet 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.Rate.SI
Formula
=LAMBDA(P_in, P_out, pipe_ID, pipe_length, SG_gas, T, Z, E, LET( P_in_psi, PO.UnitConverter(P_in, "kPa", "psi"), P_out_psi, PO.UnitConverter(P_out, "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_Mscfd, PO.SF.PL.Gas.PanhandleA.Rate(P_in_psi, P_out_psi, pipe_ID_in, pipe_length_mi, SG_gas, T_degF, Z, E), PO.UnitConverter(result_Mscfd, "Mscf/d", "sm3/d")))
SI Parameters
Parameter Unit Description
P_in kPa Inlet pressure, [kPa]
P_out kPa Outlet 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:

  1. Go to Formulas → Name Manager → New
  2. Enter a name, e.g. PO.SF.PL.Gas.PanhandleA.Rate.SI
  3. In Refers to, paste the LAMBDA formula without the trailing invocation (...)
  4. Click OK

Now use =PO.SF.PL.Gas.PanhandleA.Rate.SI(...) anywhere in your workbook.

Missing a formula? Suggest a New Formula

An unhandled error has occurred. Reload X