Flow correlations¶
rodlift.flow.correlations ¶
Registry of multiphase pressure-gradient correlations.
Every correlation is a function f(state: FlowState) -> GradientResult. Use
:func:get_correlation or :func:rodlift.flow.pressure_gradient to select one by name,
and :func:available_correlations to list the implemented ones.
get_correlation ¶
get_correlation(name: str) -> CorrelationFunction
Return the correlation function registered under name.
Raises:
| Type | Description |
|---|---|
ValueError
|
If the name is unknown. |
NotImplementedError
|
If the correlation is registered but not yet available in this version. |
available_correlations ¶
available_correlations() -> list[str]
Names of the correlations implemented in this version.
rodlift.flow.correlations.beggs_brill ¶
Beggs & Brill correlation for gas-liquid flow in pipes at any inclination.
References
.. [BeggsBrill1973] Beggs, H.D. and Brill, J.P. (1973). "A study of two-phase flow in inclined pipes." J. Pet. Technol., 25(5), 607-617. .. [BrillBeggs1991] Brill, J.P. and Beggs, H.D. (1991). Two-Phase Flow in Pipes, 6th ed. University of Tulsa. .. [Palmer1975] Palmer, C.M. (1975). Evaluation of Inclined Pipe Two-Phase Liquid Holdup Correlations Using Experimental Data. M.S. thesis, University of Tulsa. .. [Payne1979] Payne, G.A., Palmer, C.M., Brill, J.P. and Beggs, H.D. (1979). "Evaluation of inclined-pipe, two-phase liquid holdup and pressure-loss correlations using experimental data." J. Pet. Technol., 31(9), 1198-1208.
beggs_brill ¶
beggs_brill(state: FlowState) -> GradientResult
Beggs & Brill (1973) correlation [BeggsBrill1973]_.
Holdup from the horizontal flow pattern (segregated, intermittent or distributed, original 1973 map) corrected for inclination; two-phase friction factor from the no-slip smooth-pipe factor times Beggs & Brill's ratio; acceleration from the kinetic-energy group.
The reported regime is the horizontal flow pattern used to select the holdup equation: stratified (segregated), slug (intermittent) or bubble (distributed).
beggs_brill_palmer ¶
beggs_brill_palmer(state: FlowState) -> GradientResult
Beggs & Brill with the revised flow-pattern map and Palmer's holdup factors.
Uses the revised horizontal map with a transition region [BrillBeggs1991]_ and
multiplies the holdup by 0.924 for uphill and 0.685 for downhill flow [Palmer1975],
[Payne1979]. Otherwise identical to :func:beggs_brill.
rodlift.flow.correlations.hagedorn_brown ¶
Hagedorn & Brown correlation for vertical upward gas-liquid flow.
The liquid holdup comes from three charts in the Duns & Ros dimensionless groups:
- the viscosity-number coefficient
CN_Las a function ofN_L; - the holdup factor
H_L/ψas a function of(N_LV / N_GV^0.575) (p/p_a)^0.1 (CN_L / N_D)withp_a = 14.7psia; - the secondary correction
ψas a function ofN_GV N_L^0.380 / N_D^2.14.
The friction factor is read from the Moody diagram at the two-phase Reynolds number
Re = ρ_n v_m d / μ_s with μ_s = μ_L^H_L μ_G^(1-H_L), and the friction gradient is
f ρ_n² v_m² / (2 g_c ρ_s d) [HagedornBrown1965]. The acceleration term is computed
from the kinetic-energy group E_k = ρ_s v_m v_sg / (g_c p) [BrillMukherjee1999].
The chart curves are tabulated and interpolated linearly (CN_L log-log, H_L/ψ
against the logarithm of its abscissa, ψ linear); outside the charts the end values
are used.
References
.. [HagedornBrown1965] Hagedorn, A.R. and Brown, K.E. (1965). "Experimental study of pressure gradients occurring during continuous two-phase flow in small-diameter vertical conduits." J. Pet. Technol., 17(4), 475-484. .. [BrillBeggs1991] Brill, J.P. and Beggs, H.D. (1991). Two-Phase Flow in Pipes, 6th ed. University of Tulsa. .. [BrillMukherjee1999] Brill, J.P. and Mukherjee, H. (1999). Multiphase Flow in Wells. SPE Monograph 17, Society of Petroleum Engineers, Richardson, TX. .. [GriffithWallis1961] Griffith, P. and Wallis, G.B. (1961). "Two-phase slug flow." J. Heat Transfer, 83(3), 307-318.
hagedorn_brown ¶
hagedorn_brown(state: FlowState) -> GradientResult
Original Hagedorn & Brown (1965) correlation [HagedornBrown1965]_.
Holdup from the three published charts (it can fall below the no-slip holdup, a
known weakness of the original method; it is limited to 1). Friction from the Moody
friction factor at the two-phase Reynolds number, acceleration from E_k
(capped at 0.95 near critical flow). The correlation identifies no flow regime.
Developed for vertical upward flow; for an inclined pipe only the elevation term
uses the inclination. Single-phase states are delegated to
:func:rodlift.flow.single_phase_gradient.
hagedorn_brown_modified ¶
hagedorn_brown_modified(state: FlowState) -> GradientResult
Hagedorn & Brown with the Brill & Beggs modifications [BrillBeggs1991]_.
- Bubble flow, when the no-slip gas fraction
λ_Gis belowL_B = 1.071 - 0.2218 v_m²/d(v_min ft/s,din ft;L_B ≥ 0.13), is computed with the Griffith & Wallis slip model [GriffithWallis1961]_ and reported as :attr:~rodlift.flow.FlowRegime.BUBBLE. - Otherwise the chart holdup is not allowed below the no-slip holdup [BrillMukherjee1999]_ and the regime is reported as unknown.
Otherwise identical to :func:hagedorn_brown.
rodlift.flow.correlations.duns_ros ¶
Duns & Ros correlation for vertical two-phase flow.
Flow regions are defined on a map of the gas and liquid velocity numbers. In the bubble and slug regions the holdup follows from a dimensionless slip velocity read from the Duns & Ros charts; in the mist region there is no slip and friction is governed by the gas phase. The charts are digitised and interpolated linearly.
References
.. [DunsRos1963] Duns, H. Jr. and Ros, N.C.J. (1963). "Vertical flow of gas and liquid mixtures in wells." Proc. 6th World Petroleum Congress, Frankfurt, 451-465. .. [BrillMukherjee1999] Brill, J.P. and Mukherjee, H. (1999). Multiphase Flow in Wells. SPE Monograph 17, Society of Petroleum Engineers.
duns_ros ¶
duns_ros(state: FlowState) -> GradientResult
Duns & Ros (1963) correlation for vertical upward flow [DunsRos1963]_.
Flow regions from the gas and liquid velocity numbers N_gv, N_lv:
- Bubble (
N_gv < L1 + L2 N_lv) and slug (N_gv < 50 + 36 N_lv): holdup from the dimensionless slip velocityS = F1 + F2 N_lv + F3' (N_gv/(1 + N_lv))²(bubble) orS = (1 + F5)(N_gv^0.982 + F6')/(1 + F7 N_lv)²(slug), with the chart factors F1-F7 as functions of the liquid viscosity number. Frictionf ρ_L v_sL v_m/(2 g_c d)withf = f1 f2/f3. Bubble flow is not allowed below the start of the L2 chart (N_d ≈ 15.7); slug flow is used instead. - Mist (
N_gv > 75 + 84 N_lv^0.75): no slip, gas-phase friction with the liquid film as wall roughness, acceleration from the kinetic-energy group. - Transition: linear interpolation in N_gv between slug and mist, with the mist
gas density scaled by
N_gv / L_M.
For N_Re <= 3000 the factor f1 follows a smooth laminar-turbulent transition
curve instead of the Moody chart. Chart values and the field-unit groups are as
given by Brill & Mukherjee [BrillMukherjee1999]_.
rodlift.flow.correlations.orkiszewski ¶
Orkiszewski correlation for vertical two-phase flow.
The flow pattern is selected from the bubble-slug boundary of Griffith & Wallis and the slug-transition-mist boundaries of Duns & Ros. Bubble flow follows Griffith & Wallis, slug flow uses Orkiszewski's liquid distribution coefficient, and mist flow follows Duns & Ros. In the transition region the slug and mist gradients are linearly interpolated.
References
.. [Orkiszewski1967] Orkiszewski, J. (1967). "Predicting two-phase pressure drops in vertical pipe." J. Pet. Technol., 19(6), 829-838. .. [GriffithWallis1961] Griffith, P. and Wallis, G.B. (1961). "Two-phase slug flow." J. Heat Transfer, 83(3), 307-318. .. [DunsRos1963] Duns, H. Jr. and Ros, N.C.J. (1963). "Vertical flow of gas and liquid mixtures in wells." Proc. 6th World Petroleum Congress, Frankfurt, 451-465. .. [BrillMukherjee1999] Brill, J.P. and Mukherjee, H. (1999). Multiphase Flow in Wells. SPE Monograph 17, Society of Petroleum Engineers.
bubble_rise_velocity ¶
bubble_rise_velocity(
s: FieldState,
extension: Literal["orkiszewski", "chierici"],
) -> float
Taylor-bubble rise velocity v_b in slug flow, ft/s (internal, shared).
v_b = C1 C2 sqrt(g d) with C1 and C2 from the Griffith & Wallis charts
[GriffithWallis1961], solved by successive substitution because C1 and C2 depend on
the bubble Reynolds number N_Reb = ρ_L v_b d / μ_L. The C2 chart ends at
N_ReL = 6000; above it Orkiszewski's equations [Orkiszewski1967] or Chierici et
al.'s extension of C2 are used, as selected by extension.
interpolate_transition ¶
interpolate_transition(
slug: FieldGradient, mist: FieldGradient, weight: float
) -> FieldGradient
Linear interpolation weight * slug + (1 - weight) * mist (internal, shared).
orkiszewski ¶
orkiszewski(state: FlowState) -> GradientResult
Orkiszewski (1967) correlation for vertical upward flow [Orkiszewski1967]_.
Flow patterns:
- Bubble (
v_sg/v_m <= L_B,L_B = 1.071 - 0.2218 v_m²/d≥ 0.13, v in ft/s, d in ft): Griffith & Wallis with a 0.8 ft/s slip velocity [GriffithWallis1961]_. - Slug (
N_gv <= 50 + 36 N_lv): mixture density and friction with the Taylor-bubble rise velocity of Griffith & Wallis and Orkiszewski's liquid distribution coefficient Γ (the continuous liquid phase is the one with the larger superficial velocity), with the published lower bounds on Γ. - Mist (
N_gv > 75 + 84 N_lv^0.75): Duns & Ros [DunsRos1963]_. - Transition: linear interpolation in N_gv between the slug and mist gradients;
the mist gradient uses the gas density scaled by
N_gv / L_Mas recommended by Duns & Ros.
The acceleration term is neglected except in mist flow. The holdup reported in slug flow is the one equivalent to the slug mixture density; since Γ may be negative it can be slightly below the no-slip holdup. Formulas as summarised by Brill & Mukherjee [BrillMukherjee1999]_.
rodlift.flow.correlations.aziz_govier_fogarasi ¶
Aziz, Govier & Fogarasi correlation for vertical two-phase flow in wells.
The flow pattern is read from Govier's vertical flow map, scaled to the air-water system. Bubble and slug flow use a drift-flux holdup with the bubble rise velocities of Harmathy and of Wallis; mist flow follows Duns & Ros, and the transition region is interpolated linearly between slug and mist.
References
.. [Aziz1972] Aziz, K., Govier, G.W. and Fogarasi, M. (1972). "Pressure drop in wells producing oil and gas." J. Can. Pet. Technol., 11(3), 38-48. .. [GovierAziz1972] Govier, G.W. and Aziz, K. (1972). The Flow of Complex Mixtures in Pipes. Van Nostrand Reinhold, New York. .. [DunsRos1963] Duns, H. Jr. and Ros, N.C.J. (1963). "Vertical flow of gas and liquid mixtures in wells." Proc. 6th World Petroleum Congress, Frankfurt, 451-465. .. [BrillMukherjee1999] Brill, J.P. and Mukherjee, H. (1999). Multiphase Flow in Wells. SPE Monograph 17, Society of Petroleum Engineers.
aziz_govier_fogarasi ¶
aziz_govier_fogarasi(state: FlowState) -> GradientResult
Aziz, Govier & Fogarasi (1972) correlation for vertical upward flow [Aziz1972]_.
Map coordinates (field units) N_x = v_sg (ρ_g/0.0764)^(1/3) (72 ρ_L/(62.4 σ))^(1/4)
and N_y = v_sL (72 ρ_L/(62.4 σ))^(1/4); boundaries
N_1 = 0.51 (100 N_y)^0.172, N_2 = 8.6 + 3.8 N_y, N_3 = 70 (100 N_y)^-0.152
(for N_y >= 4 slug flow extends to N_x = 26.5 and there is no transition).
- Bubble (
N_x <= N_1):H_L = 1 - v_sg/(1.2 v_m + v_bs)withv_bs = 1.41 [g σ (ρ_L - ρ_g)/ρ_L²]^(1/4); frictionf ρ_s v_m²/(2 g_c d). - Slug (
N_1 < N_x < N_2): same holdup form with the Taylor-bubble velocityv_bs = C [g d (ρ_L - ρ_g)/ρ_L]^(1/2), C from the Eötvös and viscosity numbers [GovierAziz1972]_; friction over a slug unit of liquid-slug length 10 d. - Mist (
N_x >= N_3): Duns & Ros [DunsRos1963]_. - Transition: linear interpolation in N_x between slug and mist.
Friction factors from the Moody chart at N_Re = ρ_L v_m d/μ_L. The acceleration
term is neglected except in mist flow. See also Brill & Mukherjee
[BrillMukherjee1999]_.
rodlift.flow.correlations.chierici ¶
Chierici, Ciucci & Sclocchi correlation for vertical two-phase flow in oil wells.
A modification of Orkiszewski's method: the liquid distribution coefficient is dropped from the slug-flow model, the slug holdup follows directly from the Taylor-bubble rise velocity, and the Griffith & Wallis coefficient C2 is extended beyond the range of the original chart.
References
.. [Chierici1974] Chierici, G.L., Ciucci, G.M. and Sclocchi, G. (1974). "Two-phase vertical flow in oil wells - prediction of pressure drop." J. Pet. Technol., 26(8), 927-938. .. [Orkiszewski1967] Orkiszewski, J. (1967). "Predicting two-phase pressure drops in vertical pipe." J. Pet. Technol., 19(6), 829-838. .. [GriffithWallis1961] Griffith, P. and Wallis, G.B. (1961). "Two-phase slug flow." J. Heat Transfer, 83(3), 307-318. .. [DunsRos1963] Duns, H. Jr. and Ros, N.C.J. (1963). "Vertical flow of gas and liquid mixtures in wells." Proc. 6th World Petroleum Congress, Frankfurt, 451-465.
chierici ¶
chierici(state: FlowState) -> GradientResult
Chierici, Ciucci & Sclocchi (1974) correlation [Chierici1974]_.
Flow patterns as in Orkiszewski's method [Orkiszewski1967]_:
- Bubble (
v_sg/v_m <= L_B,L_B = 1.071 - 0.2218 v_m²/d≥ 0.18, v in ft/s, d in ft): Griffith & Wallis [GriffithWallis1961]_. - Slug (
N_gv < 50 + 36 N_lv): holdupH_L = 1 - v_sg/(v_m + v_b)with the Taylor-bubble rise velocity of Griffith & Wallis; forN_ReL > 6000the coefficientC2 = 1/(1 - 0.2 N_Reb/N_ReL). Frictionf ρ_L H_L v_m²/(2 g_c d)with the Moody factor atN_ReL = ρ_L v_m d/μ_L. - Mist (
N_gv > 75 + 84 N_lv^0.75): Duns & Ros [DunsRos1963]_. - Transition: linear interpolation in N_gv between the slug and mist gradients.
The acceleration term is neglected except in mist flow.
rodlift.flow.correlations.mukherjee_brill ¶
Mukherjee & Brill correlation for gas-liquid flow in pipes at any inclination.
References
.. [MukherjeeBrill1983] Mukherjee, H. and Brill, J.P. (1983). "Liquid holdup correlations for inclined two-phase flow." J. Pet. Technol., 35(5), 1003-1008. .. [MukherjeeBrill1985a] Mukherjee, H. and Brill, J.P. (1985). "Pressure drop correlations for inclined two-phase flow." J. Energy Resour. Technol., 107(4), 549-554. .. [MukherjeeBrill1985b] Mukherjee, H. and Brill, J.P. (1985). "Empirical equations to predict flow patterns in two-phase inclined flow." Int. J. Multiphase Flow, 11(3), 299-315. .. [BrillMukherjee1999] Brill, J.P. and Mukherjee, H. (1999). Multiphase Flow in Wells. SPE Monograph Vol. 17, Richardson, TX.
mukherjee_brill ¶
mukherjee_brill(state: FlowState) -> GradientResult
Mukherjee & Brill (1985) correlation for any inclination [MukherjeeBrill1985a]_.
- Flow pattern from the empirical transition equations of [MukherjeeBrill1985b]_: annular-mist (any inclination), bubble or slug for upward flow, and bubble, slug or stratified for horizontal and downward flow.
- Holdup
H_L = exp[(C1 + C2 sinθ + C3 sin²θ + C4 N_L²) N_gv^C5 / N_lv^C6]with coefficient sets for uphill, downhill stratified and other downhill flow [MukherjeeBrill1983]_. Horizontal flow (θ = 0) uses the downhill sets. Holdup is limited to at most 1 and, for θ ≥ 0, to at least the no-slip holdup. - Bubble and slug flow: friction
f ρ_s v_m²/(2d)with the Moody factor at the no-slip Reynolds number. Annular-mist flow: frictionf_R f ρ_n v_m²/(2d), with the friction ratiof_Rtabulated againstH_R = λ_L/H_L. In both casesdp/dL = (elevation + friction)/(1 - E_k),E_k = ρ_s v_m v_sg / p. - Stratified flow: separate momentum balances for the liquid and gas layers (wall shear from hydraulic diameters and wetted perimeters); no acceleration.
See [BrillMukherjee1999]_ for a complete description.
Raises:
| Type | Description |
|---|---|
ValueError
|
In stratified flow when the holdup correlation reaches 1 (very viscous liquids,
large |
rodlift.flow.correlations.hasan_kabir ¶
Hasan & Kabir mechanistic model for upward flow in vertical wells.
References
.. [HasanKabir1988] Hasan, A.R. and Kabir, C.S. (1988). "A study of multiphase flow behavior in vertical wells." SPE Prod. Eng., 3(2), 263-272. .. [TaitelBarneaDukler1980b] Taitel, Y., Bornea, D. and Dukler, A.E. (1980). "Modelling flow pattern transitions for steady upward gas-liquid flow in vertical tubes." AIChE J., 26(3), 345-354. .. [Wallis1969] Wallis, G.B. (1969). One-Dimensional Two-Phase Flow. McGraw-Hill. .. [DunsRos1963b] Duns, H. Jr. and Ros, N.C.J. (1963). "Vertical flow of gas and liquid mixtures in wells." Proc. 6th World Petroleum Congress, Frankfurt, 451-465.
hasan_kabir ¶
hasan_kabir(state: FlowState) -> GradientResult
Hasan & Kabir (1988) mechanistic model [HasanKabir1988]_.
The flow pattern comes from the vertical upward map of Taitel, Barnea & Dukler
[TaitelBarneaDukler1980b]_ (see :func:rodlift.flow.patterns.flow_pattern), with
slug flow becoming churn flow once the mixture velocity exceeds that of the
dispersed-bubble boundary at maximum bubble packing. Then:
- bubble: drift flux, C₀ = 1.2 and Harmathy rise velocity 1.53 [g σ Δρ/ρ_L²]^¼; friction from the mixture velocity;
- slug / churn: C₀ = 1.2 (slug) or 1.0 (churn), Taylor-bubble rise velocity 0.345 √(g D Δρ/ρ_L); friction acts on the liquid fraction;
- dispersed bubble: no-slip holdup and Duns & Ros' friction (the paper gives no method for this pattern);
- annular: void fraction (1 + X^0.8)^−0.378 from the Lockhart-Martinelli parameter, droplet entrainment after Wallis [Wallis1969]_, gas-core density and interfacial friction factor 0.079 [1 + 75(1 − α)]/Re^0.25 (Fanning); acceleration from the kinetic-energy group.
The model is for vertical wells: the pattern and slip relations always use the vertical map. For an inclined pipe only the hydrostatic term uses the actual inclination.
rodlift.flow.correlations.poettmann_carpenter ¶
Energy-loss-factor correlations of Poettmann & Carpenter and its successors.
These early vertical-flow methods treat the gas-liquid mixture as homogeneous (no slip):
the elevation term uses the no-slip density and all irreversible losses are lumped into
an empirical Fanning-type friction factor f read from a chart as a function of the
mass-flux group d v ρ. They identify no flow regime and neglect acceleration.
- Poettmann & Carpenter [PoettmannCarpenter1952]_: one curve of
fagainstd v ρ. - Baxendell & Thomas [BaxendellThomas1961]_: extension of that curve to high rates,
plotted against the mass flow rate per unit diameter
w/d. - Fancher & Brown [FancherBrown1963]_: three curves for gas-liquid ratios below 1500, between 1500 and 3000, and above 3000 scf/STB.
The chart curves are tabulated in log-log coordinates and interpolated linearly; outside
a curve the end segment is extrapolated and a
:class:~rodlift.exceptions.CorrelationRangeWarning is issued.
References
.. [PoettmannCarpenter1952] Poettmann, F.H. and Carpenter, P.G. (1952). "The multiphase flow of gas, oil, and water through vertical flow strings with application to the design of gas-lift installations." Drilling and Production Practice, API, 257-317. .. [BaxendellThomas1961] Baxendell, P.B. and Thomas, R. (1961). "The calculation of pressure gradients in high-rate flowing wells." J. Pet. Technol., 13(10), 1023-1028. .. [FancherBrown1963] Fancher, G.H. Jr. and Brown, K.E. (1963). "Prediction of pressure gradients for multiphase flow in tubing." Soc. Pet. Eng. J., 3(1), 59-69. .. [BrownBeggs1977] Brown, K.E. and Beggs, H.D. (1977). The Technology of Artificial Lift Methods, vol. 1. PennWell, Tulsa.
poettmann_carpenter ¶
poettmann_carpenter(state: FlowState) -> GradientResult
Poettmann & Carpenter (1952) correlation [PoettmannCarpenter1952]_.
No-slip (homogeneous) mixture. The energy-loss factor f (Fanning type) is read
from the published curve of f against d v ρ_n (lbm/(ft·s), chart range
0.784-78.5); the friction gradient is 2 f ρ_n v_m² / (g_c d). Acceleration is
neglected, the holdup is the no-slip holdup and no regime is identified.
Warns:
| Type | Description |
|---|---|
CorrelationRangeWarning
|
If |
baxendell_thomas ¶
baxendell_thomas(state: FlowState) -> GradientResult
Baxendell & Thomas (1961) correlation [BaxendellThomas1961]_.
Same homogeneous model as :func:poettmann_carpenter, with the energy-loss factor
curve extended to high rates and plotted against 10⁻⁶ w/d, the mass flow rate
(lbm/day) per unit diameter (ft), chart range 0.946-7.16 [BrownBeggs1977]_.
Warns:
| Type | Description |
|---|---|
CorrelationRangeWarning
|
If |
fancher_brown ¶
fancher_brown(state: FlowState) -> GradientResult
Fancher & Brown (1963) correlation [FancherBrown1963]_.
Same homogeneous model as :func:poettmann_carpenter, with one energy-loss factor
curve (against d v ρ_n) for each band of producing gas-liquid ratio: up to 1500,
1500-3000 and above 3000 scf/STB.
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Warns:
| Type | Description |
|---|---|
CorrelationRangeWarning
|
If |
rodlift.flow.correlations.pearson ¶
Griffith, Lau, Hon & Pearson correlation for inclined and vertical wells.
References
.. [Griffith1973] Griffith, P., Lau, C.W., Hon, P.C. and Pearson, J.F. (1973). Two Phase Pressure Drop in Inclined and Vertical Pipes. Technical Report No. 81, Heat Transfer Laboratory, Massachusetts Institute of Technology, Cambridge, MA. .. [BrillBeggs1991] Brill, J.P. and Beggs, H.D. (1991). Two-Phase Flow in Pipes, 6th ed. University of Tulsa.
pearson ¶
pearson(state: FlowState) -> GradientResult
Griffith, Lau, Hon & Pearson (1973) correlation for inclined wells [Griffith1973]_.
- Flow pattern (slug or annular) from dimensionless velocities
N = v_s sqrt(ρ/(g d (ρ_L - ρ_G))): slug flow whenN_G <= min[(7 + 0.06 ρ_L/ρ_G) N_L, 0.9 + 0.6 N_L]. - Slug-flow holdup
H_L = 1 - v_sg/(1.15 v_m + K sqrt(g d)), with the drift coefficientKtabulated against inclination (maximum near 45°). - Annular-flow holdup from a slip ratio
v_G/v_Lthat depends on the density ratio:H_L = S_v v_sl/(v_sg + S_v v_sl). - Friction
f ρ_n v_m² (ρ_n/ρ_s) S / (2d)withf = 0.184 Re^-0.2(no-slip density, liquid viscosity) and the parameterSread from a chart against the gas mass fraction and the density ratio [BrillBeggs1991]_. Acceleration neglected.
The chart values are digitised from a low-quality figure, so results carry the corresponding uncertainty. Developed for upward flow; for downward flow the drift velocity is taken against the flow direction.
rodlift.flow.correlations.dukler ¶
Dukler, Wicks & Cleveland (1964) constant-slip method for horizontal pipes.
The friction loss follows Dukler's similarity analysis (Case II, constant slip); the
liquid holdup can come from Dukler's own chart or from the Eaton, Hughmark or
Minami & Brill correlations (:mod:rodlift.flow.holdup). The acceleration loss is the
change in momentum flux of the two phases between the segment ends.
Friction (Case II, constant slip) [Dukler1964b]_:
dp/dL = 2 f_tp ρ_k v_m² / (g_c d) with
ρ_k = ρ_L λ_L²/H_L + ρ_g (1-λ_L)²/(1-H_L),
f_tp = f_o [1 + y / (1.281 - 0.478 y + 0.444 y² - 0.094 y³ + 0.00843 y⁴)],
y = -ln λ_L, and f_o the smooth-pipe Fanning factor
0.0014 + 0.125 Re_k^-0.32 (:func:rodlift.flow.friction.smooth_pipe_fanning)
at Re_k = d v_m ρ_k / μ_ns.
Acceleration: Δ[ρ_g v_sg²/(1-H_L) + ρ_L v_sL²/H_L] / (g_c ΔL) between
state.upstream and state.downstream over state.segment_length, with the
holdup at each end from the same holdup correlation. A missing end is replaced by
the mid-segment state (over half the length); without either end or a segment
length the acceleration term is zero.
The method was developed for horizontal pipes. The elevation term is added from
the slip mixture density, (ρ_L H_L + ρ_g (1-H_L)) g sin θ, which is only
meaningful for small inclinations. No flow regime is identified.
References
.. [Dukler1964a] Dukler, A.E., Wicks, M. and Cleveland, R.G. (1964). "Frictional pressure drop in two-phase flow: A. A comparison of existing correlations for pressure loss and holdup." AIChE J., 10(1), 38-43. .. [Dukler1964b] Dukler, A.E., Wicks, M. and Cleveland, R.G. (1964). "Frictional pressure drop in two-phase flow: B. An approach through similarity analysis." AIChE J., 10(1), 44-51. .. [BrillMukherjee1999] Brill, J.P. and Mukherjee, H. (1999). Multiphase Flow in Wells. SPE Monograph 17.
segment_ends ¶
segment_ends(
state: FlowState,
) -> tuple[FieldState, FieldState, float] | None
Upstream and downstream end states (field units) and segment length, ft (internal).
A missing end is replaced by the mid-segment state over half the segment length.
Returns None when the segment length is not a positive number or both ends
are missing; the acceleration term is then taken as zero.
holdup_elevation ¶
holdup_elevation(s: FieldState, hl: float) -> float
Hydrostatic gradient, psi/ft, from the slip mixture density (internal).
dukler ¶
dukler(state: FlowState) -> GradientResult
Dukler et al. method with Dukler's holdup chart [Dukler1964b]_.
See the module description for the friction and acceleration terms. Holdup:
:func:rodlift.flow.holdup.dukler.
dukler_eaton ¶
dukler_eaton(state: FlowState) -> GradientResult
Dukler et al. friction with the Eaton et al. holdup [Dukler1964b]_.
See the module description for the friction and acceleration terms. Holdup:
:func:rodlift.flow.holdup.eaton.
dukler_hughmark ¶
dukler_hughmark(state: FlowState) -> GradientResult
Dukler et al. friction with Hughmark's holdup [Dukler1964b]_.
See the module description for the friction and acceleration terms. Holdup:
:func:rodlift.flow.holdup.hughmark.
dukler_minami ¶
dukler_minami(state: FlowState) -> GradientResult
Dukler et al. friction with the Minami & Brill wet-gas holdup [Dukler1964b]_.
See the module description for the friction and acceleration terms. Holdup:
:func:rodlift.flow.holdup.minami_brill.
rodlift.flow.correlations.eaton ¶
Eaton et al. (1967) method for gas-liquid flow in horizontal pipelines.
Holdup from Eaton's holdup correlation (:func:rodlift.flow.holdup.eaton); friction
from Eaton's two-phase friction-factor chart; acceleration from the change in kinetic
energy of each phase between the segment ends (energy balance).
Friction: dp/dL = f W_m v_m² / (2 g_c d q_m) (W_m/q_m is the no-slip mixture
density), where f (W_L/W_m)^0.1 is read from Eaton's chart against
0.057 (W_g W_m)^0.5 / (μ_g d^2.25) (mass rates in lbm/s, gas viscosity in
lbm/(ft·s), diameter in ft) for the tested diameters of 2, 4 and 17 in, interpolated
linearly in diameter [BrillBeggs1991]_.
Acceleration: [W_L Δ(v_L²) + W_g Δ(v_g²)] / (2 g_c q_m ΔL) between
state.upstream and state.downstream over state.segment_length, with the
in-situ velocities v_L = v_sL/H_L and v_g = v_sg/(1-H_L) from Eaton's holdup
at each end. A missing end is replaced by the mid-segment state (over half the
length); without either end or a segment length the acceleration term is zero.
The method was developed for horizontal pipes. The elevation term is added from the
slip mixture density, (ρ_L H_L + ρ_g (1-H_L)) g sin θ, which is only meaningful
for small inclinations. No flow regime is identified.
References
.. [Eaton1967] Eaton, B.A., Andrews, D.E., Knowles, C.R., Silberberg, I.H. and Brown, K.E. (1967). "The prediction of flow patterns, liquid holdup and pressure losses occurring during continuous two-phase flow in horizontal pipelines." J. Pet. Technol., 19(6), 815-828. .. [BrillBeggs1991] Brill, J.P. and Beggs, H.D. (1991). Two-Phase Flow in Pipes, 6th ed. University of Tulsa.
eaton ¶
eaton(state: FlowState) -> GradientResult
Eaton et al. method for horizontal pipelines [Eaton1967]_.
See the module description for the friction, holdup and acceleration terms.
rodlift.flow.correlations.lockhart_martinelli ¶
Lockhart & Martinelli (1949) two-phase friction multiplier for horizontal pipes.
The friction gradient is the superficial-liquid gradient times the two-phase
multiplier φ_L²(X), where X = sqrt((dp/dL)_L / (dp/dL)_g) is the Martinelli
parameter. The superficial single-phase gradients use the Moody friction factor of
commercial steel pipe (roughness 0.0457 mm), independent of state.roughness.
Each phase is classified as viscous (Re <= 2000) or turbulent, and φ_L² is taken
from the curve-fits of DeGance & Atherton to the four Lockhart-Martinelli curves
(viscous-viscous, viscous-turbulent, turbulent-viscous, turbulent-turbulent).
Holdup from the Lockhart & Martinelli curve (:func:rodlift.flow.holdup.lockhart_martinelli).
The method has no acceleration term. It was developed for horizontal pipes; the
elevation term is added from the slip mixture density, which is only meaningful for
small inclinations. No flow regime is identified.
References
.. [LockhartMartinelli1949] Lockhart, R.W. and Martinelli, R.C. (1949). "Proposed correlation of data for isothermal two-phase, two-component flow in pipes." Chem. Eng. Prog., 45(1), 39-48. .. [DeGanceAtherton1970] DeGance, A.E. and Atherton, R.W. (1970). "Chemical engineering aspects of two-phase flow." Chem. Eng., 77 (series of articles).
lockhart_martinelli ¶
lockhart_martinelli(state: FlowState) -> GradientResult
Lockhart & Martinelli method [LockhartMartinelli1949]_.
See the module description. dp/dL = φ_L²(X) (dp/dL)_L.
rodlift.flow.correlations.oliemans ¶
Oliemans (1976) method for gas-liquid flow in gas-transmission pipelines.
The liquid in excess of the no-slip holdup, β = H_L - λ_L, is treated as
stagnant and reduces the area available to the flowing no-slip mixture. The flowing
core occupies the fraction 1 - β of the pipe, with effective diameter
d_eff = d sqrt(1 - β), mass flux G = W_m / ((1-β) A), and density and
viscosity (ρ_L λ_L + ρ_g (1-H_L)) / (1-β), (μ_L λ_L + μ_g (1-H_L)) / (1-β).
The friction gradient is f G² / (2 g_c d_eff ρ) with the Moody friction factor at
Re = d_eff G / μ for commercial steel pipe (roughness 0.0457 mm), independent of
state.roughness.
Holdup from the Lockhart & Martinelli curve (:func:rodlift.flow.holdup.lockhart_martinelli).
The method has no acceleration term. It was developed for horizontal pipelines; the
elevation term is added from the slip mixture density, which is only meaningful for
small inclinations. No flow regime is identified.
References
.. [Oliemans1976] Oliemans, R.V.A. (1976). "Two-phase flow in gas-transmission pipelines." ASME paper 76-Pet-25, Petroleum Division Conference, Mexico City. .. [LockhartMartinelli1949] Lockhart, R.W. and Martinelli, R.C. (1949). "Proposed correlation of data for isothermal two-phase, two-component flow in pipes." Chem. Eng. Prog., 45(1), 39-48.
oliemans ¶
oliemans(state: FlowState) -> GradientResult
Oliemans method [Oliemans1976]_.
See the module description for the friction model.
rodlift.flow.correlations.olujic ¶
Olujić correlation for two-phase friction loss in pipelines.
References
.. [Olujic1985] Olujić, Ž. (1985). "Predicting two-phase-flow friction loss in horizontal pipes." Chem. Eng., 92(13), June 24, 1985. .. [Bankoff1960] Bankoff, S.G. (1960). "A variable density single-fluid model for two-phase flow with particular reference to steam-water flow." J. Heat Transfer, 82(4), 265-272.
MACH_LIMIT
module-attribute
¶
MACH_LIMIT: Final = 0.09
Largest (two-phase Mach number)² for which the α-region method applies.
olujic ¶
olujic(state: FlowState) -> GradientResult
Olujić (1985) correlation [Olujic1985]_.
Two regions are distinguished by comparing the gas-to-liquid volume ratio with a function of a gas Froude number:
- α region (gas-continuous: stratified, wavy, annular; reported as annular): gas-
alone pressure gradient (Blasius friction factor) times a two-phase multiplier
built from density and viscosity ratios, the liquid Froude number and a
roughness correction for ε/d > 0.006. Requires the gas specific gravity,
zand temperature to check that the flow is not accelerated (two-phase Mach number). - β region (liquid-continuous / intermittent; reported as slug): homogeneous-type
gradient with the Moody friction factor at a Reynolds number based on the
quality-weighted viscosity
μ_L (1 - x) + μ_G x, corrected by slip factors.
Holdup from Bankoff's model [Bankoff1960]_ with Olujić's exponent; it gives the elevation term for inclined pipes. Acceleration is neglected.
Raises:
| Type | Description |
|---|---|
ValueError
|
In the α region when the flow is accelerated ( |
rodlift.flow.correlations.guzhov ¶
Guzhov, Mamayev & Odishariya correlation for gas-liquid flow in pipelines.
References
.. [Guzhov1967] Guzhov, A.I., Mamayev, V.A. and Odishariya, G.E. (1967). "A study of transportation in gas-liquid systems." 10th International Gas Union Conference, Hamburg. .. [BrillBeggs1991] Brill, J.P. and Beggs, H.D. (1991). Two-Phase Flow in Pipes, 6th ed. University of Tulsa.
LAMBDA_G_MAX_LOW_FROUDE
module-attribute
¶
LAMBDA_G_MAX_LOW_FROUDE: Final = 0.817
Largest no-slip gas fraction covered by the chart when Fr < 4.
guzhov ¶
guzhov(state: FlowState) -> GradientResult
Guzhov et al. (1967) correlation for pipelines [Guzhov1967], [BrillBeggs1991].
- Holdup
H_L = 1 - 0.81 λ_G [1 - exp(-2.2 sqrt(Fr))], with the mixture Froude numberFr = v_m²/(g d). - Flow pattern: stratified when
Fr < 0.2 exp(-2.5 λ_G)/λ_L, otherwise slug. - Friction: Moody factor at a Reynolds number built with the slip density
ρ_k = ρ_L λ_L²/H_L + ρ_G λ_G²/H_Gand the no-slip viscosity, times a chart multiplierF_R(Fr, λ_G); the friction gradient then depends on the flow pattern. - Elevation from the slip density; acceleration neglected.
Raises:
| Type | Description |
|---|---|
ValueError
|
When |
rodlift.flow.correlations.yocum ¶
Yocum friction-factor correlation for two-phase flow in pipelines.
References
.. [Yocum1973] Yocum, B.T. (1973). "Offshore riser slug flow avoidance: mathematical models for design and optimization." SPE 4312, SPE European Meeting, London.
yocum ¶
yocum(state: FlowState) -> GradientResult
Yocum (1973) correlation [Yocum1973]_.
Homogeneous (no-slip) model whose Moody friction factor is read, in log-log
coordinates, from a chart against the mixture Froude number v_m²/(g d). The chart
has curves for 6-in. and 8-in. lines only: the 6-in. curve is used for
d <= 6 in. and the 8-in. curve above. Friction f ρ_n v_m²/(2d).
The correlation predicts neither holdup nor flow pattern: the no-slip holdup is reported, the elevation term uses the no-slip density and acceleration is neglected.