Two-Phase Flow Simulator Back
Fluid Engineering & Chemical Engineering

Two-Phase Flow Simulator (Gas-Liquid)

Identify gas-liquid two-phase flow patterns (bubble, slug, stratified, annular flow) using Baker chart. Calculate pressure drop using Lockhart-Martinelli correlation.

Fluid Parameters

Results

Flow Pattern-
Void Fraction α-
Quality x-
Slip Ratio S-
M-M Parameter X_tt-
Two-phase multiplier φ²_L-
Pressure drop [Pa/m]-
Baker Chart (Flow Pattern Map)
Pressure Drop vs Quality x
Theory & Key Formulas

$X_{tt}= \left(\frac{1-x}{x}\right)^{0.9}\left(\frac{\rho_G}{\rho_L}\right)^{0.5}\left(\frac{\mu_L}{\mu_G}\right)^{0.1}$
$\phi_L^2 = 1 + \frac{C}{X_{tt}}+ \frac{1}{X_{tt}^2}$

What is Two-Phase Flow?

🙋
What exactly is "two-phase flow"? I see gas and liquid in the simulator title, but in practice, where does this happen?
🎓
Basically, it's when a gas and a liquid flow together inside a pipe or channel. It's everywhere! For instance, in the evaporator coils of your refrigerator, refrigerant boils from liquid to vapor as it flows. In this simulator, you control the gas and liquid flow rates with the sliders to see how they interact.
🙋
Wait, really? So the flow isn't just mixed evenly? What am I looking for when I change the parameters?
🎓
Great question! They form distinct patterns, or "regimes," like bubbles, slugs, or annular rings. A common case is in an oil pipeline—gas can form big, pulsing slugs that damage equipment. Try moving the "Gas Mass Flux" and "Liquid Mass Flux" sliders here. You'll see the flow pattern change on the Baker chart from bubbly to annular flow.
🙋
That makes sense. But why is the pressure drop so important to calculate? Can't we just use a single-phase formula?
🎓
In practice, no—the interaction makes pressure drop much more complex and usually higher. For example, designing a safe nuclear reactor coolant system requires accurate two-phase pressure drop calculations. That's what the Lockhart-Martinelli method here does. Adjust the fluid property sliders, like density and viscosity, and watch the calculated pressure drop multiplier change dramatically.

Physical Model & Key Equations

The core of this simulator is the Lockhart-Martinelli correlation. It defines a parameter, $X_{tt}$, which compares the pressure drop if each phase flowed alone in the pipe. This "Martinelli Parameter" helps us characterize the flow regime and find the two-phase pressure drop multiplier.

$$X_{tt}= \left(\frac{1-x}{x}\right)^{0.9}\left(\frac{\rho_G}{\rho_L}\right)^{0.5}\left(\frac{\mu_L}{\mu_G}\right)^{0.1}$$

Where:
$x$ is the flow quality (mass fraction of gas).
$\rho_G, \rho_L$ are the gas and liquid densities.
$\mu_G, \mu_L$ are the gas and liquid viscosities.
A high $X_{tt}$ means liquid flow dominates; a low value means gas flow dominates.

Once $X_{tt}$ is known, we calculate the two-phase multiplier, $\phi_L^2$. This multiplier tells you how much greater the actual two-phase pressure drop is compared to the pressure drop if only the liquid phase flowed in the pipe.

$$\phi_L^2 = 1 + \frac{C}{X_{tt}}+ \frac{1}{X_{tt}^2}$$

The constant $C$ depends on the flow regime of each phase (turbulent or viscous). This equation shows that as $X_{tt}$ gets small (gas-dominated flow), the multiplier $\phi_L^2$ becomes very large, leading to a significant pressure drop.

Real-World Applications

Oil & Gas Pipelines: Multiphase flow of crude oil, water, and natural gas is the standard in upstream pipelines. Predicting flow patterns and pressure drop is critical for pump sizing, avoiding corrosive slug flow, and ensuring steady transport over long distances.

Nuclear Reactor Cooling: In boiling water reactors, coolant water turns to steam within the core. Accurately modeling this two-phase flow is essential for predicting heat removal rates, pressure drops in the core, and ensuring safe operational limits are not exceeded.

Refrigeration & HVAC Systems: The cooling cycle relies on the evaporation and condensation of refrigerant, which is a classic two-phase flow problem. Engineers use these methods to size tubing, select compressors, and optimize the system's efficiency.

Chemical Process Reactors: Many reactors involve gas bubbling through a liquid catalyst or reactant. Understanding the flow regime (bubbly, churn-turbulent) is vital for predicting reaction rates, heat transfer, and designing the reactor vessel and internals.

Common Misconceptions and Points to Note

When you start using this simulator, there are a few common pitfalls to watch out for. First is the mindset of "the default property values are fine as-is." This is risky. For example, if you calculate a high-temperature, high-pressure steam-water two-phase flow using the properties of air-water at ambient conditions, the density and viscosity ratios will be completely different, causing significant errors in both flow pattern prediction and pressure drop calculation. Use values close to your actual process conditions, ideally obtained from a property database.

Next is the misconception that "the boundaries on the Baker diagram are absolute." That diagram is merely a "guideline" based on representative experimental data. In reality, transitions change with pipe inclination, internal roughness, and inlet geometry. Even if the simulator outputs "slug flow," a slight change in the piping layout might result in "bubble flow." Treat the tool's output as "one possibility," and when an area is flagged as hazardous, aim for a safety-first design.

Finally, be mindful of selecting the "C constant" for pressure loss calculations. The $C$ value in the Lockhart-Martinelli correlation changes with flow regime, but actual flows are ambiguous in transition zones. For instance, if the calculation is near the boundary between "annular flow" and "wavy flow," the practical rule is to calculate using $C$ values for both regimes and adopt the worse case (the one with higher pressure drop). The tool provides an automatic judgment, but understanding the reasoning behind it will give you more confidence in your decisions.

How to Use

  1. Enter liquid volumetric flow rate (s_QL in m³/s) and gas volumetric flow rate (s_QG in m³/s) at operating conditions
  2. Input pipe inner diameter (v_D in mm); simulator calculates superficial velocities for both phases
  3. Select fluid properties (density, viscosity, surface tension) or accept defaults for water-air at 20°C
  4. Click "Predict Flow Pattern" to generate Baker chart coordinates and identify regime (slug, bubble, annular, stratified)
  5. Review Lockhart-Martinelli parameter (X) and pressure drop gradient (dP/dz in Pa/m) for your flow classification

Worked Example

Horizontal 50 mm ID steel pipe transporting crude oil (ρL=850 kg/m³, μL=12 cP) and natural gas (ρG=45 kg/m³, μG=0.015 cP) at separator outlet: QL=0.085 m³/s, QG=0.22 m³/s. Superficial velocities: vSL=0.434 m/s, vSG=1.12 m/s. Baker chart plots X-axis parameter 1.38 and Y-axis parameter 0.67, indicating annular flow. Lockhart-Martinelli X=0.31 yields friction multiplier φL²=2.8. Two-phase pressure drop: 340 Pa/m. Single-phase oil alone would be 120 Pa/m; gas-liquid interaction multiplies friction 2.8×.

Practical Notes

  1. Baker chart is most reliable for air-water and hydrocarbon systems; apply correction factor ±15% for high-pressure CO₂ or ammonia two-phase
  2. Transition zones near chart boundaries (slug-to-annular) show 40–60% pressure drop variation; always verify with empirical pilot data
  3. Superficial velocity calculation assumes 1D plug flow; neglect 3D entrance effects in pipes longer than 50 diameters
  4. Surface tension dominates bubble/slug breakup below 0.5 m/s liquid velocity; increasing gas rate can suppress slugging in 25–75 mm ID lines