Governing equations
Continuity: Q = A₁v₁ = A(x)v(x). For the fixed inlet bore, the throat speed follows from the area ratio.
Bernoulli: p(x) = p₁ + ½ρ[v₁² − v(x)²] for a horizontal, ideal, single-phase flow. If this pressure demand falls below water's saturation pressure pᵥ(T), the liquid pressure is clamped at pᵥ in the bubble model.
Water vapour pressure: log₁₀(PmmHg) = A − B/(C + T), using the textbook Antoine coefficients for water over this temperature range.
Bubble motion: the Rayleigh–Plesset equation is integrated with fixed-step RK4:
R R̈ + ³⁄₂ Ṙ² = [pᵥ + pg0(R₀/R)3κ − p∞ − 2S/R − 4μṘ/R] / ρ
The gas pressure is set so the seed is initially in equilibrium at the inlet. The gas response is treated as isothermal (κ = 1.0, illustrative); the model follows one representative gas-bearing nucleus, not a population of bubbles.
Collapse check: an ideal vapour cavity with negligible gas, viscosity and surface tension has tc ≈ 0.915 Rmax√(ρ/Δp). The page numerically integrates this limiting equation and compares the result with that textbook estimate.
What is simplified
- The tube is horizontal and axisymmetric. The inlet diameter and tube length are illustrative apparatus dimensions.
- The flow field comes from one-dimensional continuity and Bernoulli, not computational fluid dynamics. Losses, turbulence, compressibility and two-phase feedback are omitted.
- When the ideal pressure demand drops below pᵥ, the local liquid pressure is held at saturation. This is a useful onset model, not a prediction of the real cavity pressure field.
- Only one representative bubble is followed. Its radius is limited before it can cross the tube wall; that state is marked as a model limit, not a prediction of tube failure.
- The cutaway, bubble enlargement and motion clock are scaled for visibility. Water-property correlations are textbook approximations; control settings and live results are illustrative.
This is an educational physical model, not a design tool for pumps, pipes or hydraulic equipment.