Cavitation in valves and hydraulic pipelines with CFD

Industrial CFD

Cavitation in valves and hydraulic pipelines with CFD

Cavitation appears when the local pressure falls below the vapour pressure; the bubbles collapse where the pressure recovers. The article separates cavitation, flashing and entrained gas and shows how to check the CFD model against measurements.

Technical article · 10 minute read

Valve plate of an axial piston pump with a cavitation erosion crater next to a port, and the tip of a tool on the right.
Cavitation damage on the valve plate of an axial piston pump: a crater of removed material in the zone between suction and delivery. An example of the phenomenon, not a valve nor a Cubit case. Photo “Cavitation” by Gérard Thielleux / hydro-tg hydraulique, Wikimedia Commons, licence CC BY-SA 3.0. No changes to the original.
In this article

Cavitation in control valves appears when the local pressure drops below the vapour pressure of the liquid. The bubbles that form in the zone of minimum pressure collapse further downstream, where the pressure rises again. The consequences are noise, vibration, a cap on the flow the valve can pass and, under certain conditions, erosion of the surfaces. The effects depend on the operating point: the same valve can behave well at mid-stroke and badly near closure, or with cold water and not with hot water.

CFD makes it possible to look for these conditions before the test bench and to compare two modifications at the same operating point. The calculation is useful if it starts from absolute pressures and correct fluid properties, if it uses a model suited to the phenomenon, and if a comparison with measurements shows its limits. Whoever follows this route gets a criterion for deciding how far to trust a result and for judging a geometric or control change. No calculation guarantees that cavitation disappears: the result is the margin, with a measurable way of shifting it.

Absolute pressure and vapour pressure

Qualitative curve of absolute pressure along the valve: a drop to the vena contracta below the pv line, then recovery towards p2.
The pressure minimum falls below pv and vapour forms until the pressure recovers.

The inception criterion compares absolute pressures. A gauge reading 1.5 bar gauge downstream indicates about 2.5 bar absolute. Mixing up the two shifts the downstream pressure (p2) by about 1 bar, on a pressure drop that may be 2.5 bar. Vapour pressure (pv) depends very strongly on temperature: for water the NIST WebBook gives 2.34 kPa at 20 °C and 47.41 kPa at 80 °C, a ratio of about 20.

An illustrative example, with values chosen to explain and not tied to a real valve, shows the effect. Water with an upstream pressure (p1) of 4 bar absolute and p2 of 1.5 bar absolute, hence a drop of 2.5 bar. The ratio X = (p1 − p2)/(p1 − pv), which the IEC 60534-8-4 standard uses to predict hydrodynamic noise, is 0.629 at 20 °C and 0.709 at 80 °C. xFz is the differential pressure ratio at which cavitation is recognised from noise in tests according to IEC 60534-8-2. In IEC 60534-8-4 it is referred to an upstream pressure of 6 bar and corrected for the actual one (xFzp1). Kiesbauer and colleagues (SAMSON, 2010) identify it where the noise level rises sharply. It is therefore an operational indicator of incipient cavitation. It depends on valve, plug and opening, and it is not a threshold valid for every valve.

Suppose the valve has, at a given opening, an xFz of 0.65 already referred to a p1 of 4 bar. In this comparison p1, p2 and xFz are assumed, the X indices are calculated and the only quantity that changes with temperature is pv. Flow rate is not imposed. At the same opening it follows from p1, p2 and the properties of water, which differ between 20 and 80 °C. If a control system keeps it constant, either the opening changes (and with it xFz) or the pressures do, and the comparison must be redone. With the assumed pressures, X is below xFz with cold water and above it with hot water.

Two qualitative curves side by side: in cavitation p2 stays above pv, in flashing p2 is equal to or below pv.
Note where p2 sits relative to pv: above pv the bubbles collapse in the recovery, at or below pv the vapour carries on. Entrained gas is not shown.

Cavitation in valves, flashing and entrained gas

Three phenomena produce bubbles in a valve and must be kept apart, because they change the model, the boundary conditions and the consequences. In cavitation p2 stays above pv: vapour forms in the contraction and collapses in the pressure recovery. In flashing p2 is equal to or below pv, the vapour does not condense again and carries on down the pipeline. IEC 60534-8-4 leaves this regime outside its noise prediction scope, as it does mechanical vibration and unstable flows.

The third case is entrained gas: air or another non-condensable gas that enters from the suction side or a seal, or that was dissolved in the liquid and comes out of solution when the pressure falls. Its bubbles compress and expand without collapsing by condensation, and they change the compressibility of the mixture. It weighs more than the fraction would suggest: the Ansys Fluent 2024 R2 documentation warns that even small amounts, for instance 15 ppm by mass, can noticeably change results and convergence. Comparing p2 with pv at operating conditions tells you which regime to expect.

Pressure drop and recovery

Along a valve the pressure falls to a minimum at the vena contracta and then rises again. The minimum can be much lower than p2, and by how much depends on the geometry: the higher the recovery, the further the minimum pressure sits from p2. The liquid pressure recovery factor FL summarises this behaviour and fixes the ΔP at which choked flow begins. According to IEC 60534-2-1, as reported in the Emerson guide on choked flow, it equals FL²(p1 − FF·pv), with FF = 0.96 − 0.28·√(pv/pc) and pc the critical pressure of the fluid, 22.064 MPa for water. Neglecting FF, that is writing FL²(p1 − pv), is an approximation that changes little at low pv.

There are four distinct criteria. The first is xFz, which signals cavitation noise from the valve as a whole. The second is choking, which signals loss of capacity. The third is damage, for which Kiesbauer and colleagues use a separate index (xFid) and no standardised procedure exists. The fourth is the local appearance of vapour in the CFD model, which depends on the model and does not necessarily coincide with xFz.

In the example at 80 °C, with FL² of 0.81, FF is 0.947 (pv = 0.4741 bar, pc = 220.64 bar) and the choking limit is 0.81 × (4 − 0.947 × 0.4741) = 2.88 bar, which rounds to the 2.9 bar obtained by neglecting FF. The 2.5 bar drop respects it, but X already exceeds xFz (0.709 against 0.65): cavitation noise is present before the flow chokes.

The dimensionless coefficients (xFz, FL, the derived cavitation numbers) summarise tests on whole valves under defined conditions, and they have two limits. They describe a global value at a given opening, whereas CFD shows where the pressure falls below pv. That can happen in an asymmetry of the seat or in a separation vortex, zones that an average coefficient does not see. Tabulated values, moreover, hold for the tested geometries and conditions, and are no longer reliable at another scale, with another fluid or with pipework close to the valve.

Boundary conditions and input data

For each operating point the calculation needs two absolute pressure conditions, or one pressure and the flow rate, because imposing all of them together would over-determine the problem. It also needs the temperature, density and viscosity of the liquid, pv at the actual temperature and the fraction of dissolved or entrained gas. The upstream and downstream pipework must be modelled long enough that the field does not depend on where the boundaries sit, and the test is to move them.

Two inputs are often left at default values. One is pv, which must be set at the operating temperature. The other is the fraction of non-condensable gas: according to the Ansys documentation, some cavitation models do not include it by default, and if gas is present it must be added as a separate phase.

Multiphase models and mass transfer

The cavitation models most used in industrial CFD treat liquid and vapour as a mixture with a vapour fraction and a source term for evaporation and condensation that depends on the difference between local pressure and pv. Fluent offers the Schnerr-Sauer, Zwart-Gerber-Belamri and Singhal et al. models (J. Fluids Eng. 124(3), 2002, 617-624), with Schnerr-Sauer as the default in version 2024 R2. Only the Singhal model accounts for non-condensable gases through a mass fraction, and it corrects pv with an estimate of turbulent pressure fluctuations. The OpenFOAM 13 source tree contains the Kunz, Merkle, Saito and SchnerrSauer models. Their constants (bubble number density, bubble diameter, nucleation site volume fraction, evaporation and condensation coefficients) are empirical, and the Ansys documentation recommends the default values.

As for the time regime, a steady calculation returns a single configuration of the cavity, which matches the average one only if the flow really is steady. When the shedding of vapour clouds dominates noise, vibration or the load on the walls, a transient calculation is needed. The shedding dynamics depend on the time step and the turbulence model, which must be chosen for that phenomenon. It pays to run steady calculations at all operating points and to keep the more expensive transients for those where the cavity oscillates.

What the calculation does not prove about erosion

The vapour fraction field shows where the liquid evaporates and how much volume the vapour occupies. Erosion depends on other things: the intensity and frequency of collapses near the wall, the material, the surface treatment, the duration and the presence of corrosion. A large vapour volume far from the walls can be harmless, and a small cavity collapsing on a seat can damage it.

In 2006 Kiesbauer and colleagues (SAMSON and Darmstadt University of Technology) wrote that noise can be predicted with IEC 60534-8-4, whereas no standardised procedure existed for assessing the destructiveness of cavitation. Destructiveness, they added, is not a physical quantity that can be measured directly. The CFD result shows where and with what margin the phenomenon sets in and allows configurations to be compared; the service life of the component cannot be derived from the vapour field alone.

Checking against measurements

Before using the differences between geometries, the model must be compared with what is measured. You need the flow rate versus ΔP curve, which also shows where the flow stops increasing, and the upstream and downstream pressures, taken at tappings a known distance apart. You also need noise and vibration on the valve body, where inception shows up as a change in spectrum. Where they exist, add observation through a transparent section and the wear marks of components in service, with their operating hours. The comparison concerns what the model can predict: the inception point, the loss of capacity and the position of the cavity. Good agreement on one valve does not carry over to other geometries, fluids or temperatures, and every product family needs its own comparison.

Mesh and model sensitivity

Sensitivity covers mesh, time step, boundary position, turbulence model, mass transfer constants, pv and gas fraction. At least three mesh levels are run, watching whether what the decision rests on changes, that is the inception ΔP and the Kv, not just the look of the field. A geometric change whose effect stays within the variation due to mesh or model is not evidence of improvement.

Comparing geometries and control strategies

Geometries or control strategies are compared at equal flow rate and with several indicators together. Spreading the pressure drop over several stages, raising the back pressure or reducing recovery can cost flow capacity or increase the pressure losses of the plant. A solution judged on vapour fraction alone can look better because it has moved the problem elsewhere.

For each operating point the same table reports the Kv or the pressure loss at the required flow rate, and the ΔP or the flow rate at which the first vapour appears. Add the maximum vapour volume, its position relative to the walls and, in transient cases, the shedding frequency. A change is an improvement if the inception margin rises and capacity or loss stay within the system’s constraints. Control strategies, such as the minimum permitted opening or the split of ΔP between two valves in series, are assessed the same way.

Data to start a study

Cubit’s CFD consulting activities include multiphase flows and numerical-experimental correlation, and the work presented at MARINE 2023 on cavitation concerns supercavitating foils. For a valve or a pipeline, the comparison with measurements is set up on the customer’s data.

To start a study you need, for each operating point, the absolute pressures upstream and downstream, the flow rate, the temperature and the fluid with its properties. You also need to know whether air or another gas is present, and where it comes from. You need the geometry of the fluid domain in CAD format, with the adjacent pipework, and, if the component is worn, the surveyed geometry. The available measurements (Kv curve, pressures, noise, vibration), photographs of the erosion with service hours, the material and the surface treatment establish how the model is checked and what can be predicted. Acceptance criteria and the constraints on flow rate and pressure loss complete the request.

Text prepared with the help of artificial intelligence and reviewed by Cubit.

What to take into the project

Comparing p2 with the vapour pressure at operating conditions tells you whether to expect cavitation or flashing and which model to use.

Have a design problem to dig into? Compare requirements and available data with the Cubit team.

Talk to Cubit