Multiphase Flow Analyzer

Gas and liquid down one pipe: pressure drop, void fraction, flow regime, and boiling or condensing heat transfer, marched along the length rather than assumed constant. Circular, rectangular, annular, and four more cross-sections. Export the whole analysis as Word or PDF.

Duct

Fluid

Inlet
Flow rate
Heat transfer
Correlations

What this tool does

Single-phase pipe calculators assume the fluid stays the same from inlet to outlet. Two-phase flow doesn't cooperate: as pressure drops along the pipe, gas expands, more liquid may flash to vapor, the flow pattern shifts, and the pressure gradient itself changes. This analyzer divides the duct into hundreds of short segments and solves them in sequence — each segment's outlet becomes the next one's inlet — so the answer reflects how the flow actually develops. Heating and cooling walls are part of the march: boiling dries the flow out, condensation wets it, and the heat-transfer coefficient follows.

Start from a preset worked example to see a complete run, then swap in your own duct, fluid, and flow rate. The charts show every quantity along the length; hover to read values off any curve.

The equations

The pressure gradient in a pipe carrying gas and liquid together is three separate effects added up, and in most real lines a different one dominates than you would guess:

-dP/dz = (dP/dz)_friction + (dP/dz)_gravity + (dP/dz)_acceleration

friction     = phi_LO^2 · f_LO · G^2 / (2 · rho_L · D)
gravity      = [alpha·rho_G + (1 - alpha)·rho_L] · g · sin(theta)
acceleration = d/dz [ G^2 · ( x^2/(alpha·rho_G) + (1-x)^2/((1-alpha)·rho_L) ) ]

Friction is larger than either phase alone would produce, because the gas drags the liquid film and roughens the interface; the two-phase multiplier phi_LO^2 is what the friction correlations actually predict. Gravity depends on how much liquid is in the pipe, not how much is flowing through it — which is why void fraction gets its own family of models. Acceleration matters because the gas expands as pressure falls.

Void fraction is the one to get right on any line that is not horizontal. Liquid moves slower than gas, so it piles up: a pipe flowing five percent liquid by mass can be forty percent liquid by volume. The default drift-flux form responds to both mass flux and surface tension:

alpha = (x/rho_G) / ( C_0 · [ x/rho_G + (1-x)/rho_L ] + u_gj/G )

C_0  = 1 + 0.12 · (1 - x)
u_gj = 1.18 · (1 - x) · [ g · sigma · (rho_L - rho_G) ]^0.25 / sqrt(rho_L)

With a heated or cooled wall, an energy balance rides along with the pressure march. Enthalpy is the quantity that is conserved, so it is the one carried between stations; quality is recovered from it at the local pressure, which is what lets the tool capture flashing:

h(z + dz) = h(z) + q · P_heated · dz / mdot
x(z)      = [ h(z) - h_f(P) ] / h_fg(P)

The selectable correlations are the standards of the two-phase literature, listed under Sources below: Friedel, Müller-Steinhagen & Heck, Lockhart–Martinelli/Chisholm and a homogeneous model for friction; Rouhani–Axelsson, Zivi, Chisholm, Butterworth's Lockhart–Martinelli fit and homogeneous for void fraction; Gungor–Winterton, Chen and Kandlikar for flow boiling; Shah and Dobson–Chato for condensation; Gnielinski, Dittus–Boelter and Sieder–Tate for single-phase convection. Flow patterns come from the Taitel–Dukler map for horizontal lines and Taitel–Barnea–Dukler for vertical ones. When your conditions leave a correlation's validated range, the run says so in its warnings rather than extrapolating silently.

Worked example: a 3 m steam evaporator

This is the Steam evaporator preset, and every number below is reproducible by hand. A 10 mm bore tube, 3 m long and horizontal, carries saturated water at 500 kPa entering at 10 percent quality, with a mass flux of 300 kg/m²s and 20 kW/m² applied at the wall. Friction is Friedel, void fraction Rouhani–Axelsson, boiling Gungor–Winterton.

Start with the flow itself:

A    = pi · D^2 / 4 = pi · (0.01)^2 / 4 = 7.854e-5 m^2
mdot = G · A        = 300 · 7.854e-5    = 0.023562 kg/s
Q    = q · pi · D · L = 20000 · pi · 0.01 · 3 = 1884.96 W
dh   = Q / mdot     = 1884.96 / 0.023562 = 80.000 kJ/kg

Now the part a single-shot calculation gets wrong. At 500 kPa water boils at 152.09 °C with h_f = 641.55 kJ/kg and h_fg = 2106.65 kJ/kg, so the inlet enthalpy is 641.55 + 0.1 × 2106.65 = 852.21 kJ/kg, and the outlet is 80 kJ/kg higher at 932.21 kJ/kg. But the pipe has lost 23.2 kPa by then, so the outlet is saturated at 476.8 kPa — 150.32 °C, h_f = 633.89, h_fg = 2112.16 — and the quality is recovered against those numbers:

x_out = (932.21 - 633.89) / 2112.16 = 0.1412

with properties frozen at the inlet pressure you would get
x_out = 0.1 + 80.0 / 2106.65 = 0.1380

The difference is flashing: falling pressure lowers the saturation temperature, and the liquid gives up sensible heat to make a little more vapour. It is worth 0.0033 of quality here — small, but it feeds straight back into void fraction, velocity and the friction gradient, and on a longer or lower-pressure line it stops being small.

QuantityInletOutlet
Pressure (kPa)500.00476.80
Saturation temperature (°C)152.09150.32
Quality x0.10000.1412
Void fraction alpha0.8680.884
Mixture velocity (m/s)11.2116.37
Boiling coefficient (W/m²K)13 53015 922

The pressure drop splits into 22 789 Pa of friction, nothing at all from gravity because the line is horizontal, and 414 Pa of acceleration as the vapour expands — 23.2 kPa in total, or 7 734 Pa per metre. Average liquid holdup is 0.124, the flow is annular over the whole length, and the fluid clears the tube in 0.22 seconds.

Then the honest part. Change nothing but the friction correlation and the same 3 m of pipe gives:

Friction modelFrictional drop
Homogeneous19.6 kPa
Lockhart–Martinelli / Chisholm22.4 kPa
Friedel (1979)22.8 kPa
Müller-Steinhagen & Heck (1986)35.3 kPa

Lowest to highest, that is an eighty percent spread on identical inputs, and none of the four is wrong — they are empirical fits to different data sets. That spread is the real uncertainty on a two-phase pressure drop, and it is why every run reports all four rather than quoting one as the answer. This case also trips the erosional velocity warning: 16.4 m/s against an API RP 14E limit near 11.0 m/s.

Assumptions & tips

  • The march is one-dimensional and steady. Each station is a cross-section average, solved with a predictor–corrector step that closes the acceleration term against the exit state it depends on. Transients, surging and slug tracking are outside it.
  • Void fraction drives the gravity term, so on vertical and inclined lines the void model matters more than the friction model. Rouhani–Axelsson is the sensible default for boiling and condensing flow; Zivi tends to underpredict at low flux, and the homogeneous model overpredicts void almost everywhere except finely dispersed or high-pressure flow.
  • Between 20° and 70° neither flow-pattern map is strictly valid. The horizontal map carries an inclination term and is the one used, but treat regime boundaries in that band as approximate — and the maps were derived for round pipes, so non-circular ducts are mapped onto an equal-area circle.
  • Properties come from interpolated saturation tables, not a full equation of state. Run off the end of a table and the results are flagged as extrapolated; near the critical point, treat them as indicative.
  • Compare models before you trust a number. If the spread across the four friction correlations is tight, the answer is robust. If it is wide, that is genuine uncertainty and the design needs margin, a different geometry, or test data.
  • Everything runs in your browser. The Word and PDF exports — inputs, results, charts, the method section with its citations, and the warnings — are generated locally and make a complete record of a run for a design file. Nothing you enter is sent anywhere.

Frequently asked questions

Why does two-phase flow need a marching solution instead of one equation?

Because almost nothing stays constant along the pipe. As pressure falls the gas expands, so the mixture accelerates; if the wall is heated, liquid boils away and the quality rises; the void fraction, the flow pattern and the pressure gradient all move with them. A single-shot calculation has to assume average properties, and in two-phase flow the average is often nowhere near either end. This tool splits the duct into a few hundred segments and solves them in order, using each segment outlet as the next inlet, so the answer reflects how the flow actually develops rather than a guess at the mean.

Which two-phase friction correlation should I choose?

Friedel is the general-purpose choice when the liquid-to-gas viscosity ratio is below 1000, which covers most steam and refrigerant work. Above that ratio, Mueller-Steinhagen and Heck is the safer pick and the tool warns you when you have crossed the line. The homogeneous model is reasonable at high mass flux and high reduced pressure, where the phases genuinely move together, and poor everywhere else. Lockhart-Martinelli is the original and is still the right reference for adiabatic two-component flow near atmospheric pressure. Every run reports what all four would have given, so you can see how much of your answer is physics and how much is correlation choice.

How accurate is a two-phase pressure drop calculation?

Less accurate than single-phase, and that is a property of the field rather than of this tool. The published correlations are empirical fits to specific data sets, and independent comparisons typically put the best of them within 20 to 40 percent on pressure drop across a wide range of conditions, with individual points much further out. That is why the results panel shows the spread across all four friction models instead of quoting one number as the answer. If the spread is wide for your case, that is the honest uncertainty, not a defect in the calculation.

What does the erosional velocity warning mean?

It means the mixture velocity has passed the limit in API RP 14E, an oil and gas industry recommended practice that caps velocity at C divided by the square root of the mixture density, with C taken as 100 for continuous service. Above that limit, entrained droplets can erode bends, tees and valve trim over time. It is a screening rule rather than a physical threshold, and plenty of real systems run above it deliberately with erosion-resistant materials, but it is worth knowing when you have crossed it.

Can I use this for a real design?

Treat it as an engineering estimate and a way to explore how a design responds, not as a code calculation. The correlations are empirical, the fluid properties come from interpolated tables rather than a full equation of state, and the flow pattern maps were derived for round pipes. Anything safety-critical, code-stamped, or carrying a real consequence of being wrong needs a qualified engineer and usually a rated calculation method. Nothing you enter leaves your browser, so it is a safe place to sketch, but the sketch is not the drawing.

Sources

  1. A model for predicting flow regime transitions in horizontal and near horizontal gas-liquid flow — Y. Taitel and A. E. Dukler, AIChE Journal 22(1), 47–55, 1976. doi.orgThe horizontal flow-pattern map, including the equilibrium liquid level and the four transition criteria applied to it.
  2. Modelling flow pattern transitions for steady upward gas-liquid flow in vertical tubes — Y. Taitel, D. Barnea and A. E. Dukler, AIChE Journal 26(3), 345–354, 1980. doi.orgThe vertical upward map — bubbly, slug, churn and annular boundaries — used whenever the line is steeply inclined.
  3. Proposed correlation of data for isothermal two-phase, two-component flow in pipes — R. W. Lockhart and R. C. Martinelli, Chemical Engineering Progress 45(1), 39–48, 1949. The original two-phase multiplier and the Martinelli parameter X. Cited without a link: the 1949 volume is not published openly.
  4. Pressure gradients due to friction during the flow of evaporating two-phase mixtures in smooth tubes and channels — D. Chisholm, International Journal of Heat and Mass Transfer 16(2), 347–358, 1973. doi.orgThe C coefficient (5, 10, 12 or 20 by phase regime) in the Lockhart–Martinelli multiplier, and the Chisholm slip-ratio void model.
  5. A simple friction pressure drop correlation for two-phase flow in pipes — H. Müller-Steinhagen and K. Heck, Chemical Engineering and Processing 20(6), 297–308, 1986. doi.orgThe empirical interpolation between the all-liquid and all-vapour gradients offered as the discontinuity-free friction option.
  6. Estimation of steady-state steam void-fraction by means of the principle of minimum entropy production — S. M. Zivi, Journal of Heat Transfer 86(2), 247–251, 1964. doi.orgThe slip ratio S = (rho_L/rho_G)^(1/3) behind the Zivi void-fraction option.
  7. Calculation of void volume fraction in the subcooled and quality boiling regions — Z. Rouhani and E. Axelsson, International Journal of Heat and Mass Transfer 13(2), 383–393, 1970. doi.orgThe default drift-flux void model — the distribution parameter and rise velocity in the alpha equation above.
  8. A general correlation for flow boiling in tubes and annuli — K. E. Gungor and R. H. S. Winterton, International Journal of Heat and Mass Transfer 29(3), 351–358, 1986. doi.orgThe default flow-boiling coefficient, fitted to over 4000 points across water, refrigerants and ethylene glycol.
  9. Correlation for boiling heat transfer to saturated fluids in convective flow — J. C. Chen, Industrial & Engineering Chemistry Process Design and Development 5(3), 322–329, 1966. doi.orgThe superposition model — convective part enhanced by F, nucleate part suppressed by S — offered as the Chen boiling option.
  10. A general correlation for saturated two-phase flow boiling heat transfer inside horizontal and vertical tubes — S. G. Kandlikar, Journal of Heat Transfer 112(1), 219–228, 1990. doi.orgThe nucleate-dominant versus convection-dominant branches, and the fluid-dependent surface parameter used by the Kandlikar option.
  11. A general correlation for heat transfer during film condensation inside pipes — M. M. Shah, International Journal of Heat and Mass Transfer 22(4), 547–556, 1979. doi.orgThe default condensation correlation, correlated on reduced pressure across eleven fluids.
  12. Condensation in smooth horizontal tubes — M. K. Dobson and J. C. Chato, Journal of Heat Transfer 120(1), 193–213, 1998. doi.orgThe annular-flow condensation branch offered for mass fluxes above roughly 500 kg/m²s.
  13. Turbulent flow in pipes, with particular reference to the transition region between the smooth and rough pipe laws — C. F. Colebrook, Journal of the Institution of Civil Engineers 11(4), 133–156, 1939. doi.orgThe implicit friction-factor equation solved at every station for the single-phase reference gradients.
  14. Recommended Practice 14E: Design and Installation of Offshore Production Platform Piping Systems — American Petroleum Institute, 5th edition, 1991. The erosional velocity screening limit, C = 100 for continuous service, behind the velocity warning. Cited without a link: API standards are sold rather than published openly.
  • dBm to Watts Calculator

    Convert between dBm and watts or milliwatts in either direction, with a common-values table.

  • VSWR Calculator

    Enter any one of VSWR, return loss, reflection coefficient, or mismatch loss to get the rest.

  • Coax Cable Loss Calculator

    Cable type, length, and frequency to dB loss and power delivered — RG and LMR presets included.

  • Microstrip Impedance Calculator

    Trace width, substrate height, and εr to Z₀ — or solve for the width that hits a target impedance.