Mapping of every v1.8 Excel UDF (213 functions across 7 categories) to its v2.x equivalent. v2.0 uses a dotted namespace (PO.<module>.<family>.<operation>) and groups thematically (e.g., Arps Exponential/Harmonic/Hyperbolic collapsed into one PO.DCA.Arps.* family with a b parameter). Every function was renamed, so the tables don't repeat it. The What else changed column lists the rest: parameter order, added or removed parameters, and unit changes. — means the name is the only change. ⚠ Different result marks a function that returns a different number for the same inputs, because a later v2.x release changed its method or corrected it against its published reference.
Unit notation used below: {T} = time unit (days, months — consistent across inputs); {L3} = volume unit; {1/T} = nominal decline rate; {1/T^n} = PLE generalized decline rate (dimension varies with exponent n); rates in [bbl/D], [STB/d], [mscf/D] (thousand scf/day), [mmscf/D] (million scf/day); pressure in [psi] (absolute) or [psig] (gauge — flagged explicitly); temperature in [degF], [degR], [K]; viscosity in [cP]; IFT in [dynes/cm]; permeability in [mD]; dimensions [ft], [in]; formation volume factor [bbl/STB], [rcf/scf]; solution GOR [scf/STB].
When to use this doc
Open this document if, after upgrading from v1.8 to v2.0, your Excel sheets show #NAME? errors or formulas referencing the old UDF names. Ctrl-F your old function name, read the migration note, and update your formula.
How v2.0 names work
v2.0 uses a dotted namespace: PO.<module>.<family>.<operation>. Enter the full dotted name directly in a cell — Excel treats the dots as part of the identifier:
=PO.DCA.Arps.Rate(Qi, Di, b, time)
Parameter names in v2.0 use snake_case (pipe_ID, T_degF, SG_gas) where v1.8 used camelCase (pipeID, T, SGgas). This is cosmetic — Excel doesn't care about parameter names, only position.
Breaking changes — read first
Most v1.8 → v2.0 migrations are pure renames. Seven cases require a real math or input change and will silently produce wrong numbers if you only rename:
- Gas-flow rate unit flip (1000×) —
ReynoldsNumberGas, InletPipePressureGas, OutletPipePressureGas: Qg was [mscf/d] (thousand scf/day), now [mmscf/D] (million scf/day). Divide old Qg values by 1000.
- Arps Exponential and Harmonic collapse into unified Arps —
ExponentialDecline* and HarmonicDecline* functions no longer exist; use PO.DCA.Arps.* with b=0 (exponential) or b=1 (harmonic).
- Duong parameter reorder — v1.8
(a, m, q1, qInf, time) became v2.0 (q1, Qinf, a, m, time). Fit output order also reordered to [q1, qInf, a, m].
- PLE
Di0 dimension refinement — Di_intercept {1/T} → Di0 {1/T^n}. Old values may need recomputation depending on how they were calibrated.
- Gauge vs absolute pressure in one PVT correlation —
RsoDindorukChristman2001 took P in [psig]; v2.0 PO.PVT.Rs.ByDindorukChristman takes [psi] (absolute). Add ~14.7 psi.
- Multiphase VFP parameter reorder — Beggs-Brill / Gray / Hagedorn-Brown
.Pin / .Pout signatures were standardized; see the PipeFlow section for each rewrite.
- Results corrected since v1.8 — later v2.x releases checked each correlation against its published reference and fixed the ones that disagreed, so some functions return a different number for the same inputs. Rows marked ⚠ list the ones on this page. The full lists are in Upgrading Workbooks from v2.2 to v2.3 and, from v2.4, in Upgrading Workbooks from v2.3 to v2.4.
Other unit wording changes ([STB/d] → [bbl/D], [psia] → [psi], [dymes/cm] → [dynes/cm]) are cosmetic — same number, relabeled.
Use the "On this page" sidebar to jump to a specific v1.8 category — Decline (54), PipeFlow (17), PTA (18), PVT (44), SCAL (38), Utilities (17), WellFlow (25).
Decline
All Arps (exponential, harmonic, hyperbolic) v1.8 functions collapse into a single PO.DCA.Arps.* family in v2.0 — the user now supplies b (0=exponential, 1=harmonic, 0<b<1=hyperbolic). Cumulative (*Cumulative) → *.Prod, EUR/Time unchanged semantically but econRate parameter renamed Q_econ. The new category also adds .D (instantaneous decline rate), .Diag.* (flow-regime diagnostics), .Convert.* (nominal/effective), and .Data.* (cleaning/outlier) families with no v1.8 equivalents. SSE/R2 statistics moved from Decline into a separate PO.Stats.* namespace.
Ansah-Knowles-Buba
| Old (v1.8) |
New (v2.x) |
What else changed |
AnsahKnowlesBubaDeclineRate(Qi, alpha, beta, time) |
PO.DCA.AKB.Rate(Qi, alpha, beta, time) |
— |
AnsahKnowlesBubaDeclineCumulative(Qi, alpha, beta, time) |
PO.DCA.AKB.Prod(Qi, alpha, beta, time) |
— |
AnsahKnowlesBubaDeclineEUR(Qi, alpha, beta, econRate) |
PO.DCA.AKB.EUR(Qi, alpha, beta, Q_econ) |
parameter econRate → Q_econ |
AnsahKnowlesBubaDeclineTime(Qi, alpha, beta, econRate) |
PO.DCA.AKB.Time(Qi, alpha, beta, Q_econ) |
parameter econRate → Q_econ |
AnsahKnowlesBubaDeclineFitParameters(timeValues, rateValues) |
PO.DCA.AKB.Fit(times, rates) |
— |
AnsahKnowlesBubaDeclineWeightedFitParameters(timeValues, rateValues, weightsValues) |
PO.DCA.AKB.WFit(times, rates, weights) |
— |
Arps Exponential / Harmonic / Hyperbolic (now unified under PO.DCA.Arps)
| Old (v1.8) |
New (v2.x) |
What else changed |
ExponentialDeclineRate(Qi, Di, time) |
PO.DCA.Arps.Rate(Qi, Di, b, time) |
added parameter b (pass b=0) |
ExponentialDeclineCumulative(Qi, Di, time) |
PO.DCA.Arps.Prod(Qi, Di, b, time) |
added parameter b (pass b=0) |
ExponentialDeclineEUR(Qi, Di, econRate) |
PO.DCA.Arps.EUR(Qi, Di, b, Q_econ) |
added parameter b (pass b=0); parameter econRate → Q_econ |
ExponentialDeclineTime(Qi, Di, econRate) |
PO.DCA.Arps.Time(Qi, Di, b, Q_econ) |
added parameter b (pass b=0); parameter econRate → Q_econ |
ExponentialDeclineFitParameters(timeValues, rateValues) |
PO.DCA.Arps.Fit(times, rates) |
returns [Qi, Di, b] instead of [Qi, Di] |
ExponentialDeclineWeightedFitParameters(timeValues, rateValues, weightsValues) |
PO.DCA.Arps.WFit(times, rates, weights) |
returns [Qi, Di, b] instead of [Qi, Di] |
HarmonicDeclineRate(Qi, Di, time) |
PO.DCA.Arps.Rate(Qi, Di, b, time) |
added parameter b (pass b=1) |
HarmonicDeclineCumulative(Qi, Di, time) |
PO.DCA.Arps.Prod(Qi, Di, b, time) |
added parameter b (pass b=1) |
HarmonicDeclineEUR(Qi, Di, econRate) |
PO.DCA.Arps.EUR(Qi, Di, b, Q_econ) |
added parameter b (pass b=1); parameter econRate → Q_econ |
HarmonicDeclineTime(Qi, Di, econRate) |
PO.DCA.Arps.Time(Qi, Di, b, Q_econ) |
added parameter b (pass b=1); parameter econRate → Q_econ |
HarmonicDeclineFitParameters(timeValues, rateValues) |
PO.DCA.Arps.Fit(times, rates) |
returns [Qi, Di, b] instead of [Qi, Di] |
HarmonicDeclineWeightedFitParameters(timeValues, rateValues, weightsValues) |
PO.DCA.Arps.WFit(times, rates, weights) |
returns [Qi, Di, b] instead of [Qi, Di] |
HyperbolicDeclineRate(Qi, Di, b, time) |
PO.DCA.Arps.Rate(Qi, Di, b, time) |
— |
HyperbolicDeclineCumulative(Qi, Di, b, time) |
PO.DCA.Arps.Prod(Qi, Di, b, time) |
— |
HyperbolicDeclineEUR(Qi, Di, b, econRate) |
PO.DCA.Arps.EUR(Qi, Di, b, Q_econ) |
parameter econRate → Q_econ |
HyperbolicDeclineTime(Qi, Di, b, econRate) |
PO.DCA.Arps.Time(Qi, Di, b, Q_econ) |
parameter econRate → Q_econ |
HyperbolicDeclineFitParameters(timeValues, rateValues) |
PO.DCA.Arps.Fit(times, rates) |
— |
HyperbolicDeclineWeightedFitParameters(timeValues, rateValues, weightsValues) |
PO.DCA.Arps.WFit(times, rates, weights) |
— |
Modified Hyperbolic
| Old (v1.8) |
New (v2.x) |
What else changed |
ModifiedHyperbolicDeclineRate(Qi, Di, Dlim, b, time) |
PO.DCA.ModHyp.Rate(Qi, Di, Dlim, b, time) |
— |
ModifiedHyperbolicDeclineCumulative(Qi, Di, Dlim, b, time) |
PO.DCA.ModHyp.Prod(Qi, Di, Dlim, b, time) |
— |
ModifiedHyperbolicDeclineEUR(Qi, Di, Dlim, b, econRate) |
PO.DCA.ModHyp.EUR(Qi, Di, Dlim, b, Q_econ) |
parameter econRate → Q_econ |
ModifiedHyperbolicDeclineTime(Qi, Di, Dlim, b, econRate) |
PO.DCA.ModHyp.Time(Qi, Di, Dlim, b, Q_econ) |
parameter econRate → Q_econ |
ModifiedHyperbolicDeclineFitParameters(timeValues, rateValues) |
PO.DCA.ModHyp.Fit(times, rates) |
— |
ModifiedHyperbolicDeclineWeightedFitParameters(timeValues, rateValues, weightsValues) |
PO.DCA.ModHyp.WFit(times, rates, weights) |
— |
Duong
| Old (v1.8) |
New (v2.x) |
What else changed |
DuongDeclineRate(a, m, q1, qInf, time) |
PO.DCA.Duong.Rate(q1, Qinf, a, m, time) |
parameter order changed: was (a, m, q1, qInf, time), now (q1, Qinf, a, m, time) |
DuongDeclineCumulative(a, m, q1, qInf, time) |
PO.DCA.Duong.Prod(q1, Qinf, a, m, time) |
parameter order changed: was (a, m, q1, qInf, time), now (q1, Qinf, a, m, time) |
DuongDeclineEUR(a, m, q1, qInf, econRate) |
PO.DCA.Duong.EUR(q1, Qinf, a, m, Q_econ) |
parameter order changed (as above); parameter econRate → Q_econ |
DuongDeclineTime(a, m, q1, qInf, econRate) |
PO.DCA.Duong.Time(q1, Qinf, a, m, Q_econ) |
parameter order changed (as above); parameter econRate → Q_econ |
DuongDeclineFitParameters(timeValues, rateValues) |
PO.DCA.Duong.Fit(times, rates) |
fit now returns [q1, qInf, a, m] instead of [a, m, q1, qInf] |
DuongDeclineWeightedFitParameters(timeValues, rateValues, weightsValues) |
PO.DCA.Duong.WFit(times, rates, weights) |
fit now returns [q1, qInf, a, m] instead of [a, m, q1, qInf] |
Power Law Exponential (PLE)
| Old (v1.8) |
New (v2.x) |
What else changed |
PowerLawExponentialDeclineRate(Qi_intercept, Di_intercept, D_inf, n, time) |
PO.DCA.PLE.Rate(Qi0, Di0, Dinf, n, time) |
parameters shortened; dimension of Di0 refined from {1/T} to {1/T^n} (v1.8 label was inaccurate; numeric value unchanged if Di was calibrated consistently) |
PowerLawExponentialDeclineCumulative(Qi_intercept, Di_intercept, D_inf, n, time) |
PO.DCA.PLE.Prod(Qi0, Di0, Dinf, n, time) |
parameters shortened; dimension of Di0 refined from {1/T} to {1/T^n} (v1.8 label was inaccurate; numeric value unchanged if Di was calibrated consistently) |
PowerLawExponentialDeclineEUR(Qi_intercept, Di_intercept, D_inf, n, econRate) |
PO.DCA.PLE.EUR(Qi0, Di0, Dinf, n, Q_econ) |
parameters shortened; dimension of Di0 refined from {1/T} to {1/T^n} (v1.8 label was inaccurate; numeric value unchanged if Di was calibrated consistently); parameter econRate → Q_econ |
PowerLawExponentialDeclineTime(Qi_intercept, Di_intercept, D_inf, n, econRate) |
PO.DCA.PLE.Time(Qi0, Di0, Dinf, n, Q_econ) |
parameters shortened; dimension of Di0 refined from {1/T} to {1/T^n} (v1.8 label was inaccurate; numeric value unchanged if Di was calibrated consistently); parameter econRate → Q_econ |
PowerLawExponentialDeclineFitParameters(timeValues, rateValues) |
PO.DCA.PLE.Fit(times, rates) |
— |
PowerLawExponentialDeclineWeightedFitParameters(timeValues, rateValues, weightsValues) |
PO.DCA.PLE.WFit(times, rates, weights) |
— |
Stretched Exponential (SEDM)
| Old (v1.8) |
New (v2.x) |
What else changed |
StretchedExponentialDeclineRate(Qi, tau, n, time) |
PO.DCA.SEDM.Rate(Qi, tau, n, time) |
— |
StretchedExponentialDeclineCumulative(Qi, tau, n, time) |
PO.DCA.SEDM.Prod(Qi, tau, n, time) |
— |
StretchedExponentialDeclineEUR(Qi, tau, n, econRate) |
PO.DCA.SEDM.EUR(Qi, tau, n, Q_econ) |
parameter econRate → Q_econ |
StretchedExponentialDeclineTime(Qi, tau, n, econRate) |
PO.DCA.SEDM.Time(Qi, tau, n, Q_econ) |
parameter econRate → Q_econ |
StretchedExponentialDeclineFitParameters(timeValues, rateValues) |
PO.DCA.SEDM.Fit(times, rates) |
— |
StretchedExponentialDeclineWeightedFitParameters(timeValues, rateValues, weightsValues) |
PO.DCA.SEDM.WFit(times, rates, weights) |
— |
SSE / Error statistics (moved to PO.Stats)
| Old (v1.8) |
New (v2.x) |
What else changed |
ComputeSse(observedValues, predictedValues) |
PO.Stats.SSE(observed, predicted) |
— |
ComputeLogSse(observedValues, predictedValues) |
PO.Stats.LogSSE(observed, predicted) |
— |
ComputeWeightedSse(observedValues, predictedValues, weightsValues) |
PO.Stats.WSSE(observed, predicted, weights) |
— |
ComputeWeightedLogSse(observedValues, predictedValues, weightsValues) |
PO.Stats.WLogSSE(observed, predicted, weights) |
— |
Field Profile (now in PO.FPP module)
| Old (v1.8) |
New (v2.x) |
What else changed |
BasicFieldProfile(time_buildup, time_plateau, Q_plateau, Di, time) |
PO.FPP.Field.Rate(t_buildup, t_plateau, Q_plateau, Di, b, t) |
added parameter b (Arps b-factor; pass b=0 for exponential tail) |
CombinedFieldProfile(timeSeries, profile, schedule, time) |
PO.FPP.Sched.Rate(timeSeries, profile, schedule, t) |
— |
PipeFlow
v1.8 PipeFlow is split into two v2.0 modules: PO.VFP (vertical/wellbore flow with inclination) for multiphase and single-phase-with-angle cases, and PO.SF.PL (surface pipeline) for horizontal-only liquid/gas pipelines. The v2.0 multiphase .Pin/.Pout correlations take a normalized parameter order: (Ql, Qg, P_boundary, T_degF, Rho_l, Ul, SG_gas, IFT_gl, pipe_ID, pipe_length, pipe_roughness[, pipe_angle]) — this differs from v1.8 which interleaved pressure/temperature near the end. Multiphase .dPdL (pressure gradient) adds PVT-property inputs Bl, Rho_g, Ug, Bg, Rs that were previously computed internally.
Single-phase liquid (horizontal) — moved to PO.VFP.Liq / PO.SF.PL.Liq
| Old (v1.8) |
New (v2.x) |
What else changed |
FrictionPressureDropLiquid(Ql, Ul, Rho_l, pipeID, pipeRoughness, pipeLength) |
PO.VFP.Liq.dPfrc(Ql, Rho_l, Ul, pipe_ID, pipe_length, pipe_roughness) |
parameter order changed: Ul, Rho_l → Rho_l, Ul; pipeLength, pipeRoughness reordered |
PotentialEnergyPressureDropLiquid(Rho_l, pipeLength, pipeAngle) |
PO.VFP.Liq.dPgrv(Rho_l, pipe_length, pipe_angle) |
— |
ReynoldsNumberLiquid(Ql, Rho_l, pipeID, Ul) |
PO.VFP.Liq.Re(Ql, Rho_l, pipe_ID, Ul) |
— |
InletPipePressureLiquid(P_out, Ql, Ul, Rho_l, pipeID, pipeRoughness, pipeLength, pipeAngle) |
PO.VFP.Liq.Pin(Ql, P_out, Rho_l, Ul, pipe_ID, pipe_length, pipe_roughness, pipe_angle) |
parameter order changed: Ql moved first; Ul, Rho_l swapped; pipeRoughness, pipeLength reordered |
OutletPipePressureLiquid(P_in, Ql, Ul, Rho_l, pipeID, pipeRoughness, pipeLength, pipeAngle) |
PO.VFP.Liq.Pout(Ql, P_in, Rho_l, Ul, pipe_ID, pipe_length, pipe_roughness, pipe_angle) |
parameter order changed (same as InletPipePressureLiquid) |
Single-phase gas (with angle) — moved to PO.VFP.Gas
| Old (v1.8) |
New (v2.x) |
What else changed |
ReynoldsNumberGas(Qg, SGgas, pipeID, Ug) |
PO.VFP.Gas.Re(Qg, SG_gas, pipe_ID, Ug) |
unit Qg [mscf/d] → [mmscf/D] (1000× flip — divide old values by 1000) |
InletPipePressureGas(Qg, P_out, pipeLength, pipeID, pipeAngle, pipeRoughness, zFactor, T, SGgas, Ug) |
PO.VFP.Gas.Pin(Qg, P_out, T_degF, SG_gas, Ug, Z, pipe_ID, pipe_length, pipe_roughness, pipe_angle) |
parameter order changed; unit Qg [mscf/d] → [mmscf/D] (1000× flip — divide old values by 1000) |
OutletPipePressureGas(Qg, P_in, pipeLength, pipeID, pipeAngle, pipeRoughness, zFactor, T, SGgas, Ug) |
PO.VFP.Gas.Pout(Qg, P_in, T_degF, SG_gas, Ug, Z, pipe_ID, pipe_length, pipe_roughness, pipe_angle) |
parameter order changed (same as .Pin); unit Qg [mscf/d] → [mmscf/D] (1000× flip — divide old values by 1000) |
Multiphase Beggs-Brill
| Old (v1.8) |
New (v2.x) |
What else changed |
InletPressureBeggsBrill(Ql, Rho_l, Ul, Qg, SGgas, IFTgl, pipeID, pipeLength, pipeRoughness, pipeAngle, P_out, T) |
PO.VFP.BeggsBrill.Pin(Ql, Qg, P_out, T_degF, Rho_l, Ul, SG_gas, IFT_gl, pipe_ID, pipe_length, pipe_roughness, pipe_angle) |
parameter order changed (normalized to Ql, Qg, P, T, Rho_l, Ul, SG, IFT, geometry) |
OutletPressureBeggsBrill(Ql, Rho_l, Ul, Qg, SGgas, IFTgl, pipeID, pipeLength, pipeRoughness, pipeAngle, P_in, T) |
PO.VFP.BeggsBrill.Pout(Ql, Qg, P_in, T_degF, Rho_l, Ul, SG_gas, IFT_gl, pipe_ID, pipe_length, pipe_roughness, pipe_angle) |
parameter order changed (as above) |
PressureGradientBeggsBrill(Ql, Rho_l, Ul, Qg, Ug, SGgas, zFactor, IFTgl, pipeID, pipeRoughness, pipeAngle, P, T) |
PO.VFP.BeggsBrill.dPdL(Ql, Qg, P, Rho_l, Ul, Bl, Rho_g, Ug, Bg, IFT_gl, Rs, pipe_ID, pipe_roughness, pipe_angle) |
parameter order changed; added parameters Bl, Rho_g, Bg, Rs; removed SGgas, zFactor, T (gas properties now passed explicitly) |
Multiphase Gray
| Old (v1.8) |
New (v2.x) |
What else changed |
InletPressureGray(Ql, Rho_l, Ul, Qg, SGgas, IFTgl, pipeID, pipeLength, pipeRoughness, pipeAngle, P_out, T) |
PO.VFP.Gray.Pin(Ql, Qg, P_out, T_degF, Rho_l, Ul, SG_gas, IFT_gl, pipe_ID, pipe_length, pipe_roughness, pipe_angle) |
parameter order changed |
OutletPressureGray(Ql, Rho_l, Ul, Qg, SGgas, IFTgl, pipeID, pipeLength, pipeRoughness, pipeAngle, P_in, T) |
PO.VFP.Gray.Pout(Ql, Qg, P_in, T_degF, Rho_l, Ul, SG_gas, IFT_gl, pipe_ID, pipe_length, pipe_roughness, pipe_angle) |
parameter order changed |
PressureGradientGray(Ql, Rho_l, Ul, Qg, Ug, SGgas, zFactor, IFTgl, pipeID, pipeRoughness, pipeAngle, P, T) |
PO.VFP.Gray.dPdL(Ql, Qg, P, Rho_l, Ul, Bl, Rho_g, Ug, Bg, IFT_gl, Rs, pipe_ID, pipe_roughness, pipe_angle) |
parameter order changed; added Bl, Rho_g, Bg, Rs; removed SGgas, zFactor, T |
Multiphase Hagedorn-Brown
| Old (v1.8) |
New (v2.x) |
What else changed |
InletPressureHarBrown(Ql, Rho_l, Ul, Qg, SGgas, IFTgl, pipeID, pipeLength, pipeRoughness, P_out, T) |
PO.VFP.HagedornBrown.Pin(Ql, Qg, P_out, T_degF, Rho_l, Ul, SG_gas, IFT_gl, pipe_ID, pipe_length, pipe_roughness) |
parameter order changed; |
OutletPressureHarBrown(Ql, Rho_l, Ul, Qg, SGgas, IFTgl, pipeID, pipeLength, pipeRoughness, P_in, T) |
PO.VFP.HagedornBrown.Pout(Ql, Qg, P_in, T_degF, Rho_l, Ul, SG_gas, IFT_gl, pipe_ID, pipe_length, pipe_roughness) |
parameter order changed; |
PressureGradientHarBrown(Ql, Rho_l, Ul, Qg, Ug, SGgas, zFactor, IFTgl, pipeID, pipeRoughness, P, T) |
PO.VFP.HagedornBrown.dPdL(Ql, Qg, P, Rho_l, Ul, Bl, Rho_g, Ug, Bg, IFT_gl, Rs, pipe_ID, pipe_roughness) |
parameter order changed; added Bl, Rho_g, Bg, Rs; removed SGgas, zFactor, T; |
PTA
v1.8 PTA prefix Pdw* / Pw* / pta* reorganized into PO.PTA.PD.VW.* (dimensionless wellbore pressure for vertical wells), PO.PTA.Pw.VW.* (dimensional wellbore pressure), and PO.PTA.ToDim.* (converters from dimensional to dimensionless). Boundary suffixes renamed: LCPB → LinConP, LSFB → LinSealF, PCPB → PerpConP, PMB → PerpMix, PSFB → PerpSealF. The Pw* family also changes the prodData parameter unit from [STB/D] to [bbl/D] (numerically identical for oil at standard conditions — relabel only) and renames the permeability parameter from lowercase k to uppercase K.
| Old (v1.8) |
New (v2.x) |
What else changed |
PdLSSIHR(td, rd) |
PO.PTA.PD.LSS(tD, rD) |
— |
PdwVWIHR(td, cd, skinFactor) |
PO.PTA.PD.VW(tD, CD, S) |
— |
PdwVWIHRLCPB(td, cd, skinFactor, Ld) |
PO.PTA.PD.VW.LinConP(tD, CD, S, LD) |
— |
PdwVWIHRLSFB(td, cd, skinFactor, Ld) |
PO.PTA.PD.VW.LinSealF(tD, CD, S, LD) |
— |
PdwVWIHRPCPB(td, cd, skinFactor, Ld1, Ld2) |
PO.PTA.PD.VW.PerpConP(tD, CD, S, LD1, LD2) |
— |
PdwVWIHRPMB(td, cd, skinFactor, Ld1, Ld2) |
PO.PTA.PD.VW.PerpMix(tD, CD, S, LD1, LD2) |
— |
PdwVWIHRPSFB(td, cd, skinFactor, Ld1, Ld2) |
PO.PTA.PD.VW.PerpSealF(tD, CD, S, LD1, LD2) |
— |
PwVWIHR(time, prodData, B, Ul, C, Rw, S, Ct, porosity, h, k) |
PO.PTA.Pw.VW(time, prod_data, B, Ul, C, Rw, S, Ct, porosity, h, K) |
parameter k → K; unit prodData [STB/D] → [bbl/D] |
PwVWIHRLCPB(time, prodData, B, Ul, C, Rw, S, Ct, porosity, h, k, L) |
PO.PTA.Pw.VW.LinConP(time, prod_data, B, Ul, C, Rw, S, Ct, porosity, h, K, L) |
parameter k → K; unit prodData [STB/D] → [bbl/D] |
PwVWIHRLSFB(time, prodData, B, Ul, C, Rw, S, Ct, porosity, h, k, L) |
PO.PTA.Pw.VW.LinSealF(time, prod_data, B, Ul, C, Rw, S, Ct, porosity, h, K, L) |
parameter k → K; unit prodData [STB/D] → [bbl/D] |
PwVWIHRPCPB(time, prodData, B, Ul, C, Rw, S, Ct, porosity, h, k, L1, L2) |
PO.PTA.Pw.VW.PerpConP(time, prod_data, B, Ul, C, Rw, S, Ct, porosity, h, K, L1, L2) |
parameter k → K; unit prodData [STB/D] → [bbl/D] |
PwVWIHRPMB(time, prodData, B, Ul, C, Rw, S, Ct, porosity, h, k, L1, L2) |
PO.PTA.Pw.VW.PerpMix(time, prod_data, B, Ul, C, Rw, S, Ct, porosity, h, K, L1, L2) |
parameter k → K; unit prodData [STB/D] → [bbl/D] |
PwVWIHRPSFB(time, prodData, B, Ul, C, Rw, S, Ct, porosity, h, k, L1, L2) |
PO.PTA.Pw.VW.PerpSealF(time, prod_data, B, Ul, C, Rw, S, Ct, porosity, h, K, L1, L2) |
parameter k → K; unit prodData [STB/D] → [bbl/D] |
ptaCd(C, poro, ct, h, rw) |
PO.PTA.ToDim.CD(C, porosity, Ct, h, Rw) |
— |
ptaLd(l, rw) |
PO.PTA.ToDim.LD(L, Rw) |
— |
ptaPd(P, Pi, q, k, h, B, mu) |
PO.PTA.ToDim.PD(P, Pi, q, K, h, B, Ul) |
parameter mu → Ul; parameter k → K; unit q [STB/D] → [bbl/D] |
ptaRwd(r, rw) |
PO.PTA.ToDim.rD(r, Rw) |
— |
ptaTd(t, k, poro, mu, ct, rw) |
PO.PTA.ToDim.tD(t, K, porosity, Ul, Ct, Rw) |
parameter mu → Ul; parameter k → K |
PVT
PVT reorganizes by quantity → correlation: e.g., every bubble-point correlation becomes PO.PVT.Pb.By<Author>. Oil viscosity splits cleanly into .Dead, .Sat, .UnSat families. Temperature parameters now explicitly suffix _degF or _degR to prevent unit confusion. SGoilAPI → API, SGgas → SG_gas, Rso/Rsob → Rs/Rsb, zFactor → Z. New correlations (Beal, Glaso dead oil, ChewConnally, Kouzel) are new in v2.0. v2.0 relabels [psia] → [psi] across most PVT rows (numerically identical — both mean absolute pressure); [degR], [degF], [cP], [rcf/scf], [bbl/STB], [scf/STB] are unchanged. Individual rows do NOT flag the psia → psi relabel — it applies universally. Only the one real gauge-vs-absolute change (RsoDindorukChristman2001: [psig] → [psi]) is flagged.
Gas properties
| Old (v1.8) |
New (v2.x) |
What else changed |
Bg(P, T, zFactor) |
PO.PVT.Bg.ByDefinition(P, T_degR, Z) |
— |
Cg(P, T, SGgas) |
PO.PVT.Cg.ByDefinition(P, T_degR, SG_gas) |
⚠ Different result from v2.4 — corrected: the z-factor derivative is taken at the reduced density (PE 324 Example A-6: 4.21e-4 → 5.11e-4 1/psi) |
GasDensity(P, T, SGgas, zFactor) |
PO.PVT.Rho.Gas.ByDefinition(P, T_degR, SG_gas, Z) |
— |
UgLGE(zFactor, SGgas, P, T) |
PO.PVT.Ug.ByLGE(Z, SG_gas, P, T_degR) |
— |
PpcStanding(SGgas) |
PO.PVT.Ppc.ByStanding(SG_gas) |
⚠ Different result from v2.4 — corrected: the constant is 677 (was 667), so Ppc is about 10 psi higher below SG_gas 0.75, and the natural-gas curve applies at every gravity (SG_gas 0.854: 653.8 → 662.5 psi) |
PpcSutton(SGgas) |
PO.PVT.Ppc.BySutton(SG_gas) |
— |
TpcStanding(SGgas) |
PO.PVT.Tpc.ByStanding(SG_gas) |
⚠ Different result from v2.4 — corrected: the natural-gas curve applies at every gravity (SG_gas 0.854: 414.1 → 436.4 degR) |
TpcSutton(SGgas) |
PO.PVT.Tpc.BySutton(SG_gas) |
— |
ZfactorBrillBeggs(Ppr, Tpr) |
PO.PVT.Z.ByBrillBeggs(Ppr, Tpr) |
— |
ZfactorDAK(Ppr, Tpr) |
PO.PVT.Z.ByDAK(Ppr, Tpr) |
— |
Oil — bubble-point pressure
| Old (v1.8) |
New (v2.x) |
What else changed |
PboAlMarhoun(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Pb.ByAlMarhoun(SG_gas, API, Rs, T_degF) |
— |
PboDindorukChristman(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Pb.ByDindorukChristman(SG_gas, API, Rs, T_degF) |
— |
PboDoklaOsman(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Pb.ByDoklaOsman(SG_gas, API, Rs, T_degF) |
— |
PboGlaso(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Pb.ByGlaso(SG_gas, API, Rs, T_degF) |
— |
PboPetroskyFarshad(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Pb.ByPetroskyFarshad(SG_gas, API, Rs, T_degF) |
— |
PboStanding(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Pb.ByStanding(SG_gas, API, Rs, T_degF) |
— |
PboVasquezBeggs(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Pb.ByVasquezBeggs(SG_gas, API, Rs, T_degF) |
— |
| Old (v1.8) |
New (v2.x) |
What else changed |
BoSatAlMarhoun1988(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Bo.Sat.ByAlMarhoun(SG_gas, API, Rs, T_degF) |
— |
BoSatDindorukChristman2001(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Bo.Sat.ByDindorukChristman(SG_gas, API, Rs, T_degF) |
— |
BoSatGlaso1980(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Bo.Sat.ByGlaso(SG_gas, API, Rs, T_degF) |
— |
BoSatPetrosky1990(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Bo.Sat.ByPetrosky(SG_gas, API, Rs, T_degF) |
— |
BoSatStanding1947(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Bo.Sat.ByStanding(SG_gas, API, Rs, T_degF) |
— |
BoSatVasquezBeggs1980(SGgas, SGoilAPI, Rso, T) |
PO.PVT.Bo.Sat.ByVasquezBeggs(SG_gas, API, Rs, T_degF) |
— |
BoUSat(Bob, Co, Pb, P) |
PO.PVT.Bo.UnSat.ByDefinition(Bob, Co, Pb, P) |
— |
Oil — solution gas-oil ratio (Rs)
| Old (v1.8) |
New (v2.x) |
What else changed |
RsoAlMarhoun1988(SGgas, SGoilAPI, P, T) |
PO.PVT.Rs.ByAlMarhoun(SG_gas, API, P, T_degF) |
— |
RsoDindorukChristman2001(SGgas, SGoilAPI, P, T) |
PO.PVT.Rs.ByDindorukChristman(SG_gas, API, P, T_degF) |
unit P [psig] → [psi] (real change: v1.8 took gauge pressure, v2.0 takes absolute — add ~14.7 psi) |
RsoGlaso1980(SGgas, SGoilAPI, P, T) |
PO.PVT.Rs.ByGlaso(SG_gas, API, P, T_degF) |
— |
RsoPetroskyFarshad1993(SGgas, SGoilAPI, P, T) |
PO.PVT.Rs.ByPetroskyFarshad(SG_gas, API, P, T_degF) |
— |
RsoStanding1981(SGgas, SGoilAPI, P, T) |
PO.PVT.Rs.ByStanding1981(SG_gas, API, P, T_degF) |
— (the same 1981 form; new in v2.4). Through v2.3 this form was PO.PVT.Rs.ByStanding. From v2.4, PO.PVT.Rs.ByStanding is Standing (1947), the exact inverse of PO.PVT.Pb.ByStanding, and differs by about 0.4 % (518.1 → 520.0 SCF/STB at Pb for SG_gas 0.72, 33 API, 190 degF) |
RsoVasquezBeggs1980(SGgas, SGoilAPI, P, T) |
PO.PVT.Rs.ByVasquezBeggs(SG_gas, API, P, T_degF) |
— |
Oil — compressibility, viscosity, interfacial tension
| Old (v1.8) |
New (v2.x) |
What else changed |
CoSatVillenaLanzi1985(P, Pb, T, Rsob, SGoilAPI) |
PO.PVT.Co.Sat.ByVillenaLanzi(P, Pb, T_degF, Rsb, API) |
— |
CoUSatVasquezBeggs1980(Rsob, SGgas, SGoilAPI, T, P) |
PO.PVT.Co.UnSat.ByVasquezBeggs(Rsb, SG_gas, API, T_degF, P) |
— |
UodEgbogah1983(SGoilAPI, T) |
PO.PVT.Uo.Dead.ByEgbogah(API, T_degF) |
— |
UoSatBeggsRobinson1975(Rso, Uod) |
PO.PVT.Uo.Sat.ByBeggsRobinson(Rs, Uo_dead) |
— |
UoUSatVasquezBeggs1980(P, Pb, Uob) |
PO.PVT.Uo.UnSat.ByVasquezBeggs(P, Pb, Uob) |
— |
IFTgoAbdulMajeed(SGoilAPI, T, Rso) |
PO.PVT.IFT.GasOil.ByAbdulMajeed(API, T_degF, Rs) |
result unit [dymes/cm] typo fixed to [dynes/cm] |
IFTgoBakerSwerdloff(SGoilAPI, T, P) |
PO.PVT.IFT.GasOil.ByBakerSwerdloff(API, T_degF, P) |
result unit [dymes/cm] typo fixed to [dynes/cm] |
Water
| Old (v1.8) |
New (v2.x) |
What else changed |
BwMcCain(P, T) |
PO.PVT.Bw.ByMcCain(P, T_degF) |
— |
CwSatMcCain(P, T, Cs) |
PO.PVT.Cw.Sat.ByMcCain(P, T_degF, salinity_gl, SG_gas) |
parameter Cs → salinity_gl (units g NaCl/l unchanged); SG_gas added in v2.3 (was fixed at 0.63) |
CwUSatOsif(P, T, Cs) |
PO.PVT.Cw.UnSat.ByOsif(P, T_degF, salinity_gl) |
parameter Cs → salinity_gl (units g NaCl/l unchanged) |
RswpMcCain(P, T) |
PO.PVT.Rsw.Pure.ByMcCain(P, T_degF) |
— |
RswMcCain(Rswp, salinity, T) |
PO.PVT.Rsw.ByMcCain(Rsw_pure, salinity_pct, T_degF) |
salinity units % by weight unchanged |
Uw1McCain(T, salinity) |
PO.PVT.Uw.1Atm.ByMcCain(T_degF, salinity_pct) |
salinity units % by weight unchanged |
UwMcCain(P, Uw1) |
PO.PVT.Uw.ByMcCain(P, Uw_1atm) |
— |
SCAL
SCAL modules split by system (gas-oil, gas-water, gas-condensate, two-phase oil-water) and by wettability (SWW / WW / IW / OW). The v1.8 Krow*/Krw* prefix is replaced with a hierarchical PO.SCAL.<Model>.<Rock>.<Wettability>.Krow / .Krw. Parameter lists and units are unchanged in every case — the only parameter rename is lowercase k → uppercase K for permeability. New v2.0 additions (not migrated from v1.8): Stone I/II three-phase, Brooks-Corey, Van Genuchten, Leverett J-function, and Honarpour.*.GasOil.* which add krgAtSorg. v1.8's pore-volume compressibility CfNewman[L|S] becomes PO.SCAL.Cf.[Lime|Sand].ByNewman.
Rock compressibility
| Old (v1.8) |
New (v2.x) |
What else changed |
CfNewmanL(porosity) |
PO.SCAL.Cf.Lime.ByNewman(porosity) |
— |
CfNewmanS(porosity) |
PO.SCAL.Cf.Sand.ByNewman(porosity) |
— |
Corey / LET two-phase
| Old (v1.8) |
New (v2.x) |
What else changed |
KrowCorey(Sw, Swi, Sorw, KrowSwi, No) |
PO.SCAL.Corey.Krow(Sw, Swi, Sorw, Krow_Swi, No) |
— |
KrwCorey(Sw, Swi, Sorw, KrwSorw, Nw) |
PO.SCAL.Corey.Krw(Sw, Swi, Sorw, Krw_Sorw, Nw) |
— |
KrowLET(Sw, Swi, Sorw, KrowSwi, Lo, Eo, To) |
PO.SCAL.LET.Krow(Sw, Swi, Sorw, Krow_Swi, Lo, Eo, To) |
— |
KrwLET(Sw, Swi, Sorw, KrwSorw, Lw, Ew, Tw) |
PO.SCAL.LET.Krw(Sw, Swi, Sorw, Krw_Sorw, Lw, Ew, Tw) |
— |
Honarpour oil-water (sandstone / carbonate × WW / IW)
| Old (v1.8) |
New (v2.x) |
What else changed |
KrowHonarpourSandWaterWet(Sw, Swi, Sorw, porosity) |
PO.SCAL.Honarpour.Sand.WW.Krow(Sw, Swi, Sorw, porosity) |
— |
KrwHonarpourSandWaterWet(Sw, Swi, Sorw, porosity) |
PO.SCAL.Honarpour.Sand.WW.Krw(Sw, Swi, Sorw, porosity) |
— |
KrowHonarpourSandInterWet(Sw, Swi, Sorw, porosity) |
PO.SCAL.Honarpour.Sand.IW.Krow(Sw, Swi, Sorw, porosity) |
— |
KrwHonarpourSandInterWet(Sw, Swi, Sorw, porosity) |
PO.SCAL.Honarpour.Sand.IW.Krw(Sw, Swi, Sorw, porosity) |
— |
KrowHonarpourCarbWaterWet(Sw, Swi, Sorw, porosity, k) |
PO.SCAL.Honarpour.Carb.WW.Krow(Sw, Swi, Sorw, porosity, K) |
parameter k → K |
KrwHonarpourCarbWaterWet(Sw, Swi, Sorw, porosity, k) |
PO.SCAL.Honarpour.Carb.WW.Krw(Sw, Swi, Sorw, porosity, K) |
parameter k → K |
KrowHonarpourCarbInterWet(Sw, Swi, Sorw) |
PO.SCAL.Honarpour.Carb.IW.Krow(Sw, Swi, Sorw) |
— |
KrwHonarpourCarbInterWet(Sw, Swi, Sorw) |
PO.SCAL.Honarpour.Carb.IW.Krw(Sw, Swi, Sorw) |
— |
Ibrahim-Koederitz oil-water (sandstone / carbonate × SWW / WW / IW / OW)
| Old (v1.8) |
New (v2.x) |
What else changed |
KrowIKSandStrongWaterWet(Sw, Swi, Sorw, Swc, porosity, k) |
PO.SCAL.IK.Sand.SWW.Krow(Sw, Swi, Sorw, Swc, porosity, K) |
parameter k → K |
KrwIKSandStrongWaterWet(Sw, Swi, Sorw, Swc, porosity, k) |
PO.SCAL.IK.Sand.SWW.Krw(Sw, Swi, Sorw, Swc, porosity, K) |
parameter k → K |
KrowIKSandWaterWet(Sw, Swi, Sorw, Swc, porosity, k) |
PO.SCAL.IK.Sand.WW.Krow(Sw, Swi, Sorw, Swc, porosity, K) |
parameter k → K |
KrwIKSandWaterWet(Sw, Swi, Sorw, Swc, porosity, k) |
PO.SCAL.IK.Sand.WW.Krw(Sw, Swi, Sorw, Swc, porosity, K) |
parameter k → K |
KrowIKSandInterWet(Sw, Swi, Sorw) |
PO.SCAL.IK.Sand.IW.Krow(Sw, Swi, Sorw) |
— |
KrwIKSandInterWet(Sw, Swi, Sorw) |
PO.SCAL.IK.Sand.IW.Krw(Sw, Swi, Sorw) |
— |
KrowIKSandOilWet(Sw, Swi, Sorw) |
PO.SCAL.IK.Sand.OW.Krow(Sw, Swi, Sorw) |
— |
KrwIKSandOilWet(Sw, Swi, Sorw) |
PO.SCAL.IK.Sand.OW.Krw(Sw, Swi, Sorw) |
— |
KrowIKCarbStrongWaterWet(Sw, Swi, Sorw, Swc) |
PO.SCAL.IK.Carb.SWW.Krow(Sw, Swi, Sorw, Swc) |
— |
KrwIKCarbStrongWaterWet(Sw, Swi, Sorw, Swc) |
PO.SCAL.IK.Carb.SWW.Krw(Sw, Swi, Sorw, Swc) |
— |
KrowIKCarbWaterWet(Sw, Swi, Sorw, Swc, porosity, k) |
PO.SCAL.IK.Carb.WW.Krow(Sw, Swi, Sorw, Swc, porosity, K) |
parameter k → K |
KrwIKCarbWaterWet(Sw, Swi, Sorw, Swc, porosity, k) |
PO.SCAL.IK.Carb.WW.Krw(Sw, Swi, Sorw, Swc, porosity, K) |
parameter k → K |
KrowIKCarbInterWet(Sw, Swi, Sorw, Swc, porosity, k) |
PO.SCAL.IK.Carb.IW.Krow(Sw, Swi, Sorw, Swc, porosity, K) |
parameter k → K |
KrwIKCarbInterWet(Sw, Swi, Sorw, Swc, porosity, k) |
PO.SCAL.IK.Carb.IW.Krw(Sw, Swi, Sorw, Swc, porosity, K) |
parameter k → K |
KrowIKCarbOilWet(Sw, Swi, Sorw, Swc, porosity, k) |
PO.SCAL.IK.Carb.OW.Krow(Sw, Swi, Sorw, Swc, porosity, K) |
parameter k → K |
KrwIKCarbOilWet(Sw, Swi, Sorw, Swc, porosity, k) |
PO.SCAL.IK.Carb.OW.Krw(Sw, Swi, Sorw, Swc, porosity, K) |
parameter k → K |
Ibrahim-Koederitz gas-oil / gas-water / gas-condensate
| Old (v1.8) |
New (v2.x) |
What else changed |
KrgIKGasOilSand(Sg, Sgc, Sorg, Swc, Slc, porosity) |
PO.SCAL.IK.Sand.GasOil.Krg(Sg, Sgc, Sorg, Swc, Slc, porosity) |
— |
KrogIKGasOilSand(Sg, Sgc, Sorg, Swc, Slc, porosity) |
PO.SCAL.IK.Sand.GasOil.Krog(Sg, Sgc, Sorg, Swc, Slc, porosity) |
— |
KrgIKGasOilCarb(Sg, Sgc, Swc, Slc, porosity, k) |
PO.SCAL.IK.Carb.GasOil.Krg(Sg, Sgc, Swc, Slc, porosity, K) |
parameter k → K |
KrogIKGasOilCarb(Sg, Sgc, Swc, Slc, porosity, k) |
PO.SCAL.IK.Carb.GasOil.Krog(Sg, Sgc, Swc, Slc, porosity, K) |
parameter k → K |
KrgwIKGasWater(Sg, Sgc, Swc, Slc, porosity, k) |
PO.SCAL.IK.GasWat.Krgw(Sg, Sgc, Swc, Slc, porosity, K) |
parameter k → K |
KrwIKGasWater(Sg, Sgc, Swc, Slc, porosity, k) |
PO.SCAL.IK.GasWat.Krw(Sg, Sgc, Swc, Slc, porosity, K) |
parameter k → K |
KrgIKGasCond(Sg, Sgc, Slc) |
PO.SCAL.IK.GasCond.Krg(Sg, Sgc, Slc) |
— |
KrcgIKGasCond(Sg, Sgc, Slc) |
PO.SCAL.IK.GasCond.Krcg(Sg, Sgc, Slc) |
— |
Utilities
Spline and interpolation functions moved into PO.Spline.* and PO.Math.*. Parameter names follow snake_case convention (xValues → x_values) but units and semantics are unchanged. API2SG / SG2API moved into the PVT module. UnitConverter keeps its top-level flat identifier as PO.UnitConverter.
| Old (v1.8) |
New (v2.x) |
What else changed |
API2SG(SGoilAPI) |
PO.PVT.SG.Oil.FromAPI(API) |
moved to PVT module |
SG2API(SGoil) |
PO.PVT.API.FromSGoil(SG_oil) |
moved to PVT module |
UnitConverter(Value, UnitFrom, UnitTo) |
PO.UnitConverter(value, unit_from, unit_to) |
— |
ExpIntegralEi(x) |
PO.Math.Ei(x) |
— |
DataDifferentiate(xValues, yValues, t, l) |
PO.Math.DataDiff(x_values, y_values, t, l) |
— |
CubicSplineInterpolate(xValues, yValues, t) |
PO.Spline.Cubic.Interp(x_values, y_values, t) |
— |
CubicSplineDifferentiate(xValues, yValues, t) |
PO.Spline.Cubic.Diff(x_values, y_values, t) |
— |
CubicSplineIntegrate(xValues, yValues, t) |
PO.Spline.Cubic.Integ(x_values, y_values, t) |
— |
CubicSplineIntegrateT1T2(xValues, yValues, t1, t2) |
PO.Spline.Cubic.IntegT1T2(x_values, y_values, t1, t2) |
— |
CubicSplinesIntersection(xValues1, yValues1, xValues2, yValues2) |
PO.Spline.Cubic.Intersect(x_values_1, y_values_1, x_values_2, y_values_2, [occurrence]) |
optional occurrence: 1 or omitted is the first crossing (the v1.8 answer), -1 the last; PO.Spline.Cubic.Intersect.All lists every crossing |
LinearSplineInterpolate(xValues, yValues, t) |
PO.Spline.Linear.Interp(x_values, y_values, t) |
— |
LinearSplineDifferentiate(xValues, yValues, t) |
PO.Spline.Linear.Diff(x_values, y_values, t) |
— |
LinearSplineIntegrate(xValues, yValues, t) |
PO.Spline.Linear.Integ(x_values, y_values, t) |
— |
LinearSplineIntegrateT1T2(xValues, yValues, t1, t2) |
PO.Spline.Linear.IntegT1T2(x_values, y_values, t1, t2) |
— |
LinearSplinesIntersection(xValues1, yValues1, xValues2, yValues2) |
PO.Spline.Linear.Intersect(x_values_1, y_values_1, x_values_2, y_values_2, [occurrence]) |
optional occurrence: 1 or omitted is the first crossing (the v1.8 answer), -1 the last; PO.Spline.Linear.Intersect.All lists every crossing |
ProximalInterpolate(xValues, yValues, t) |
PO.Spline.Proximal.Interp(x_values, y_values, t) |
— |
StepInterpolate(xValues, yValues, t) |
PO.Spline.Step.Interp(x_values, y_values, t) |
— |
WellFlow
v1.8 WellFlow maps to v2.0 PO.IPR (Inflow Performance Relationships). Vertical vs horizontal well split into PO.IPR.VW.* and PO.IPR.HW.*; PSS / SS / TF flow regimes exposed as explicit sub-namespaces. Gas well functions grouped under PO.IPR.GW.*. ProdIndex* → PO.IPR.*.PI, FlowRate* → PO.IPR.*.Rate. Many vertical-well rows shift result unit wording from [STB/d] / [STB/(d.psi)] to [bbl/D] / [bbl/(D.psi)] — numerically identical for oil at standard conditions. Horizontal-well PI rows (ByBorisov, ByBabuOdeh, ByGRJ, ByJoshi, ByRenardDupuy) keep [STB/(d.psi)] unchanged.
Utility functions
| Old (v1.8) |
New (v2.x) |
What else changed |
DrainageRadius(A) |
PO.IPR.Re(A) |
— |
EffectiveWellboreRadius(Rw, S) |
PO.IPR.Rwa(Rw, S) |
— |
EquivalentSkinFactor(Xf, W, K_fracture, K, Rw) |
PO.FRAC.Well.SkinEq(Xf, W, Kf, K, Rw) |
parameter K_fracture → Kf; moved to new FRAC module |
Vertical well — productivity index and flow rate
| Old (v1.8) |
New (v2.x) |
What else changed |
ProdIndexPSS(K, h, Bl, Ul, Re, Rw, S) |
PO.IPR.VW.PSS.PI(K, h, Bl, Ul, Re, Rw, S) |
result unit [STB/(d.psi)] → [bbl/(D.psi)] (relabel only, numerically equivalent for oil at standard conditions) |
ProdIndexSS(K, h, Bl, Ul, Re, Rw, S) |
PO.IPR.VW.SS.PI(K, h, Bl, Ul, Re, Rw, S) |
result unit [STB/(d.psi)] → [bbl/(D.psi)] (relabel only) |
ProdIndexTF(time, K, h, Bl, Ul, porosity, Ct, Rw, S) |
PO.IPR.VW.TF.PI(time, K, h, Bl, Ul, porosity, Ct, Rw, S) |
result unit [STB/(d.psi)] → [bbl/(D.psi)] (relabel only) |
FlowRatePSS(J, P_average, Pwf) |
PO.IPR.VW.PSS.Rate(J, P_average, Pwf) |
result unit [STB/d] → [bbl/D] (relabel only) |
FlowRateSS(J, Pe, Pwf) |
PO.IPR.VW.SS.Rate(J, Pe, Pwf) |
result unit [STB/d] → [bbl/D] (relabel only) |
FlowRateTF(J, Pi, Pwf) |
PO.IPR.VW.TF.Rate(J, Pi, Pwf) |
result unit [STB/d] → [bbl/D] (relabel only) |
FlowRatePSSVogel(J, P_average, Pwf, Pb) |
PO.IPR.VW.PSS.Rate.ByVogel(J, P_average, Pwf, Pb) |
result unit [STB/d] → [bbl/D] (relabel only) |
FlowRateSSVogel(J, Pe, Pwf, Pb) |
PO.IPR.VW.SS.Rate.ByVogel(J, Pe, Pwf, Pb) |
result unit [STB/d] → [bbl/D] (relabel only) |
FlowRateTFVogel(J, Pi, Pwf, Pb) |
PO.IPR.VW.TF.Rate.ByVogel(J, Pi, Pwf, Pb) |
result unit [STB/d] → [bbl/D] (relabel only) |
TimeToPSS(Re, K, Ul, porosity, Ct) |
PO.IPR.VW.PSS.Time(Re, K, Ul, porosity, Ct) |
— |
Gas well
| Old (v1.8) |
New (v2.x) |
What else changed |
GasFlowRatePSS(K, h, P_average, Pwf, zFactor, Ug, Re, Rw, S, T) |
PO.IPR.GW.PSS.Rate(K, h, P_average, Pwf, Z, Ug, Re, Rw, S, T_degR) |
— |
GasFlowRatePSSNonDarcy(K, h, P_average, Pwf, zFactor, Ug, Re, Rw, S, T, D) |
PO.IPR.GW.PSS.Rate.NonDarcy(K, h, P_average, Pwf, Z, Ug, Re, Rw, S, T_degR, D) |
— |
NonDarcyCoefficient(Rw, h, h_perf, SGgas, Ug, K) |
PO.IPR.GW.D(Rw, h, h_perf, SG_gas, Ug, K) |
— |
TimeToPSSGas(Re, Rw, porosity, K, Ct, Ug) |
PO.IPR.GW.PSS.Time(Re, K, porosity, Ct, Ug) |
parameter order changed: porosity, K → K, porosity; Rw removed in v2.3 (both r_w factors cancel) |
Horizontal well — productivity index and drainage
| Old (v1.8) |
New (v2.x) |
What else changed |
DrainageAreaHorWell1(L, b) |
PO.IPR.HW.DrainArea.Rect(L, b) |
— |
DrainageAreaHorWell2(L, b) |
PO.IPR.HW.DrainArea.Ellipse(L, b) |
— |
ProdIndexHorWellBO(sizeX, sizeY, sizeZ, Kx, Ky, Kz, L, Rw, Bl, Ul, S, x1, y0, z0) |
PO.IPR.HW.PSS.PI.ByBabuOdeh(size_x, size_y, size_z, Kx, Ky, Kz, L, Rw, Bl, Ul, S, x1, y0, z0) |
— |
ProdIndexHorWellBO2(sizeX, sizeY, sizeZ, Kx, Ky, Kz, L, Rw, Bl, Ul, S) |
PO.IPR.HW.PSS.PI.ByBabuOdeh.Centered(size_x, size_y, size_z, Kx, Ky, Kz, L, Rw, Bl, Ul, S) |
— |
ProdIndexHorWellBorisov(L, Rw, Re, h, K, Bl, Ul) |
PO.IPR.HW.SS.PI.ByBorisov(L, Rw, Re, h, K, Bl, Ul) |
regime re-declared as SS |
ProdIndexHorWellGRJ(L, Rw, Re, h, Kz, Kxy, Bl, Ul) |
PO.IPR.HW.SS.PI.ByGRJ(L, Rw, Re, h, Kz, Kxy, Bl, Ul) |
⚠ Different result from v2.4 — corrected: the root takes 1 − (L/2Re)², not 1 + (Ahmed Example 7-13b: 32.50 → 44.58, book 44.57) |
ProdIndexHorWellJoshi(L, Rw, Re, h, Kz, Kxy, Bl, Ul) |
PO.IPR.HW.SS.PI.ByJoshi(L, Rw, Re, h, Kz, Kxy, Bl, Ul) |
— |
ProdIndexHorWellRD(L, Rw, Re, h, Kz, Kxy, Bl, Ul) |
PO.IPR.HW.SS.PI.ByRenardDupuy(L, Rw, Re, h, Kz, Kxy, Bl, Ul) |
— |
Unmapped / deprecated
All 213 v1.8 functions map to a v2.x equivalent. None deprecated or removed. RsoStanding1981 maps to PO.PVT.Rs.ByStanding1981, added in v2.4 to keep the 1981 form once PO.PVT.Rs.ByStanding moved to Standing (1947). EquivalentSkinFactor moved across modules (WellFlow → PO.FRAC.Well.SkinEq) but semantics are identical.