PO.GL.Inj.Grad
Description
Calculates gas gradient in the annulus, [psi/ft].
Syntax
=PO.GL.Inj.Grad(SG, P, T, Z)Parameters
| Parameter | Description |
|---|---|
| SG | Gas specific gravity (air = 1.0), [dimensionless]. |
| P | Average pressure, [psia]. |
| T | Average temperature, [°R]. |
| Z | Gas compressibility factor, [dimensionless]. |
SI Unit Version
Lambda Name
PO.GL.Inj.Grad.SIFormula
=LAMBDA(SG, P, T, Z, LET(
P_psi, PO.UnitConverter(P, "kPa", "psi"),
T_degR, PO.UnitConverter(T, "degK", "degR"),
result_psift, PO.GL.Inj.Grad(SG, P_psi, T_degR, Z),
PO.UnitConverter(result_psift, "psi/ft", "kPa/m")))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
SG |
- | Gas specific gravity (air = 1.0), [dimensionless] |
P |
kPa | Average pressure, [kPa] |
T |
degK | Average temperature, [degK] |
Z |
- | Gas compressibility factor, [dimensionless] |
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.GL.Inj.Grad.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.GL.Inj.Grad.SI(...) anywhere in your workbook.