PO.VFP.Gas.Pin.SI
Description
Calculates inlet pipe pressure for single phase pipe flow of gas (compressible fluid), [kPa] (SI units).
Formula
=LAMBDA(Qg, P_out, T, SG_gas, Ug, Z, pipe_ID, pipe_length, pipe_roughness, pipe_angle, LET(
Qg_mmscfd, PO.UnitConverter(Qg, "sm3/d", "mmscf/d"),
P_out_psi, PO.UnitConverter(P_out, "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.Pin(Qg_mmscfd, P_out_psi, T_degF, SG_gas, Ug, Z, pipe_ID_in, pipe_length_ft, pipe_roughness, pipe_angle),
PO.UnitConverter(result_psi, "psi", "kPa")))Parameters
| Parameter | Unit | Description |
|---|---|---|
Qg |
sm3/d | Gas rate, [sm3/d] |
P_out |
kPa | Outlet 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 |
Examples
| Invocation | Expected |
|---|---|
=PO.VFP.Gas.Pin.SI(28317, 6895, 93.33, 0.65, 0.015, 0.85, 6.35, 914.4, 0.0006, 90) |
7377.6733 |