PO.PVT.PseudoP


Description

Returns the real-gas pseudo-pressure m(p) = 2∫ p/(μg·Z) dp of a natural gas, from a base pressure up to p, in psi²/cp. The pseudo-pressure takes the pressure dependence of the gas viscosity and Z-factor into the flow equation, so a gas well's deliverability and a gas well test can be written in m(p) at any pressure, where the pressure-squared form holds only while μg·Z stays constant (below about 2,000 psia). The difference m(Pr) − m(Pwf) is what a gas well's drawdown is measured in. Z comes from `PO.PVT.Z.ByDAK` and μg from `PO.PVT.Ug.ByLGE`, both at Sutton's pseudo-critical pressure and temperature for the gas gravity, at every step of the integral.

Formula

=LAMBDA(p, t_r, sg_g, p_base, steps, IF((p<p_base)+(t_r<=0)+(sg_g<=0)+(steps<1)+(p_base/PO.PVT.Ppc.BySutton(sg_g)<0.01), NA(), LET( ppc, PO.PVT.Ppc.BySutton(sg_g), tpr, t_r/PO.PVT.Tpc.BySutton(sg_g), n, INT(steps), dp, (p-p_base)/n, f, MAP(p_base+dp*SEQUENCE(n+1, 1, 0), LAMBDA(x, LET( z, PO.PVT.Z.ByDAK(x/ppc, tpr), x/(PO.PVT.Ug.ByLGE(z, sg_g, x, t_r)*z)))), 2*dp*(SUM(f)-(INDEX(f, 1)+INDEX(f, n+1))/2))))

Parameters

Parameter Unit Description
p psia Pressure to integrate up to; at least p_base
t_r °R Reservoir temperature, °F + 459.67; above 0
sg_g — Gas specific gravity (air = 1), a sweet gas; above 0
p_base psia Base pressure the integral starts from, usually 14.7; at least 1 % of the pseudo-critical pressure (about 7 psia), where DAK starts
steps — Number of equal pressure steps of the trapezoid rule; at least 1, 50 for 0.01 %

Examples

Invocation Expected
=PO.PVT.PseudoP(3000, 619.67, 0.7, 14.7, 50) 613556320
=PO.PVT.PseudoP(2000, 619.67, 0.7, 14.7, 50) 304926878
=PO.PVT.PseudoP(1000, 619.67, 0.7, 14.7, 50) 81243972
=PO.PVT.PseudoP(3000, 619.67, 0.7, 14.7, 400) 613556320
=PO.PVT.PseudoP(14.7, 619.67, 0.7, 14.7, 50) 0

Need a custom LAMBDA? Suggest a New Lambda