rodlift.flow.patterns¶
rodlift.flow.patterns ¶
Mechanistic gas-liquid flow-pattern prediction for any pipe inclination.
The map combines the classic mechanistic transition models of the Taitel-Dukler family:
- Near-horizontal flow (|θ| ≤ 15°): Taitel & Dukler [TaitelDukler1976]_. Equilibrium stratified liquid level from the combined momentum balance, Kelvin-Helmholtz stratified/non-stratified transition, h_L/D = 0.5 for annular versus intermittent flow, wave-generation criterion (sheltering coefficient 0.01) for smooth versus wavy stratified flow and the turbulent-fluctuation criterion for dispersed bubbles.
- Upward flow (θ > 15°): Taitel, Barnea & Dukler [TaitelBarneaDukler1980]_ with the inclination corrections and the unified dispersed-bubble and annular transitions of Barnea [Barnea1986], [Barnea1987]. Bubble flow exists only for θ > 70° and pipes larger than the critical diameter; the bubble/slug boundary corresponds to a void fraction of 0.25; dispersed bubbles are limited by the maximum packing void fraction 0.52; annular flow requires the gas core to sustain the film (minimum interfacial shear stress, with film bridging at a liquid holdup of 0.24) and v_SG above the Taitel-Barnea-Dukler droplet-lifting velocity.
- Downward flow: Barnea, Shoham & Taitel [BarneaShohamTaitel1982a]_ (inclined) and [BarneaShohamTaitel1982b]_ (vertical, θ ≤ -89.9°).
Friction factors are Fanning factors; by default the smooth-pipe correlation of Drew,
Koo & McAdams is used (as in the original models, which use Blasius-type smooth-pipe
laws); rough_wall=True uses Colebrook with the pipe roughness instead.
References
.. [TaitelDukler1976] Taitel, Y. and Dukler, A.E. (1976). "A model for predicting flow regime transitions in horizontal and near horizontal gas-liquid flow." AIChE J., 22(1), 47-55. .. [TaitelBarneaDukler1980] 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. .. [BarneaShohamTaitel1982a] Barnea, D., Shoham, O. and Taitel, Y. (1982). "Flow pattern transition for downward inclined two phase flow; horizontal to vertical." Chem. Eng. Sci., 37(5), 735-740. .. [BarneaShohamTaitel1982b] Barnea, D., Shoham, O. and Taitel, Y. (1982). "Flow pattern transition for vertical downward two phase flow." Chem. Eng. Sci., 37(5), 741-744. .. [Barnea1986] Barnea, D. (1986). "Transition from annular flow and from dispersed bubble flow - unified models for the whole range of pipe inclinations." Int. J. Multiphase Flow, 12(5), 733-744. .. [Barnea1987] Barnea, D. (1987). "A unified model for predicting flow-pattern transitions for the whole range of pipe inclinations." Int. J. Multiphase Flow, 13(1), 1-12.
FlowPattern ¶
Bases: IntEnum
Flow pattern predicted by the mechanistic map.
UpwardTransitions
dataclass
¶
UpwardTransitions(
vsg_annular: float,
vsg_annular_min: float,
vsl_dispersed: float,
vsg_dispersed: float,
vsg_bubble: float,
)
Transition boundaries of the upward-flow map at the state's conditions.
Attributes:
| Name | Type | Description |
|---|---|---|
vsg_annular |
float
|
Superficial gas velocity above which the flow is annular at the state's v_SL,
m/s (never below |
vsg_annular_min |
float
|
Droplet-lifting velocity 3.1 [σ g sinθ (ρ_L − ρ_G)]^¼ / ρ_G^½, m/s. |
vsl_dispersed, vsg_dispersed |
Point where the dispersed-bubble boundary meets the maximum-packing line (void fraction 0.52), or the annular boundary if that comes first, m/s. |
|
vsg_bubble |
float
|
Superficial gas velocity of the bubble/slug boundary at the state's v_SL, m/s; NaN when bubble flow cannot exist (θ ≤ 70° or pipe too small). |
flow_pattern ¶
flow_pattern(
state: FlowState, *, rough_wall: bool = False
) -> FlowPattern
Mechanistic flow pattern at the given conditions.
Selects the model by inclination: near-horizontal for |θ| ≤ 15° [TaitelDukler1976], upward for θ > 15° [TaitelBarneaDukler1980], [Barnea1986], inclined downward for −89.9° < θ < −15° [BarneaShohamTaitel1982a] and vertical downward otherwise [BarneaShohamTaitel1982b]_.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
FlowState
|
Local flow conditions (SI). |
required |
rough_wall
|
bool
|
Use Colebrook friction factors with the pipe roughness instead of the smooth-pipe correlation. |
False
|
Returns:
| Type | Description |
|---|---|
FlowPattern
|
|
upward_transitions ¶
upward_transitions(
state: FlowState, *, rough_wall: bool = False
) -> UpwardTransitions
Transition boundaries of the upward-flow map (used for θ > 15°).
Raises:
| Type | Description |
|---|---|
ValueError
|
If the pipe is not inclined upward. |
stratified_liquid_level ¶
stratified_liquid_level(
state: FlowState, *, rough_wall: bool = False
) -> float
Dimensionless liquid level h_L/D of equilibrium stratified flow [TaitelDukler1976]_.
Root of the combined gas/liquid momentum balance (interfacial friction factor equal to the gas wall factor). When several roots exist, the lowest level is returned.
Raises:
| Type | Description |
|---|---|
ValueError
|
If either superficial velocity is zero, or the pipe is vertical. |