Q1 — Why Are My Results Worse After I Add Air Valves?

This is the most common surprise Jesse encounters. An engineer adds a combination air valve at the high point, reruns the simulation, and finds that maximum pressures are now higher than the unprotected baseline. The profile envelope looks worse, not better.

The air valve is not broken. The model is showing you a real physical mechanism: air pocket collapse.

What actually happens

  1. Pump trips at t = 3 s. Pressure drops at the pump discharge.
  2. The pressure drop wave reaches the air valve location. Pressure falls below atmospheric. Air is admitted through the inlet orifice — the upstream water column has separated, creating a pocket.
  3. Positive pressure returns from the downstream reservoir. The air pocket is now squeezed back toward the valve. Air is expelled through the outlet orifice.
  4. If the outlet orifice is too large, air is expelled too quickly. The two adjacent water columns were moving toward each other to push the air out. When the last bubble leaves, they have nowhere to go — they collide. This is nearly identical to an instantaneous valve closure: a sudden momentum change, a Joukowsky surge, and a secondary pressure spike that can exceed the original pump shutdown transient.

Without profile animation enabled, you see only the maximum envelope — and you cannot tell whether that peak came from the initial pump trip or from this secondary collapse event. Profile animation is the tool that reveals the story.

Enabling Profile Animation

By default, HAMMER does not save animation data. The animation toolbar in the profile viewer will be greyed out:

HAMMER profile showing envelope with greyed-out animation bar — Generate Animation Data is off
Without animation data, HAMMER shows only the static max/min envelope (red and blue lines). The animation scrubber is greyed out. There is no way to see when or how a given pressure peak was reached.

To fix this, open your Calculation Options (double-click the blue options entry in the Scenarios panel), find Generate Animation Data, and set it to True. Recompute. Now the animation scrubber becomes active.

Advance to t = 3 s and play. You will see the hydraulic grade line move in real time. Watch the air/vapor volume panel at the top — air volume rises as the pocket forms, then drops as pressure returns and air is expelled. Pause the animation at the moment just before the air volume reaches zero. That is the collision point. The next frame shows the surge spike:

HAMMER profile animation showing the moment of air pocket collapse — large secondary surge spike visible
Profile animation at the moment of air pocket collapse (air volume in the top panel approaches zero). The HGL surges sharply upward as the adjacent water columns collide. This secondary event is what makes the maximum envelope look worse than having no air valve at all.

Improving Animation Smoothness

If the animation is jerky, the cause is the Report Times setting in Calculation Options. The default is Periodically with a report period of 10 (results saved every 10 time steps). Change this to At All Times so that every time step is saved. The animation will be far smoother — at the cost of a larger results file on very large models.

If you want smoothness and a large model, keep Report Times as Periodically but reduce the period to 1 or 2, or increase the animation frame rate. The animation speed can be changed via the small Options button in the profile toolbar (set frames per second to 20 for a fast, smooth playback).

HAMMER profile animation at full time step resolution — smooth wave propagation visible
With Report Times set to "At All Times", the animation shows each time step. The pressure wave traveling downstream is clearly visible as a smooth, moving front. The air valve location (at ~250 m) shows the volume spike in the upper panel.

The Fix: Triple-Acting Air Valve

The root cause is the outflow orifice size of the air valve. A double-acting air valve has two orifices: inflow and outflow, both fixed. If the outflow orifice is large, air is expelled fast — and collapse is violent.

A triple-acting air valve adds a transition volume. Air initially exits through a large outflow orifice (fast relief). But when the remaining air volume drops below a set threshold — say, 20 L — a float inside the valve partially closes the outflow orifice, throttling the final release. This cushions the collapse. The float mechanism is physically the reason you see a slight pressure pre-rise in the animation just before final expulsion — the partial closure is happening.

HAMMER animation options panel — frame rate set to 20 fps for smoother playback, with triple-acting air valve envelope visible
Triple-acting valve scenario: the maximum pressure envelope (red) is significantly lower than the double-acting case. The animation speed options panel is also shown — increase frames per second for smoother playback at full time-step resolution.

Comparing Double- vs Triple-Acting Side by Side

HAMMER can overlay multiple scenarios on the same time-history graph. Run both scenarios, then in the time-history viewer, use the Add Scenario button to add the second scenario before clicking Plot. Both pressure traces appear on the same axes:

HAMMER time-history with two scenarios overlaid — double-acting vs triple-acting air valve pressure at pump discharge
Scenario comparison in the time-history viewer: the double-acting scenario (red) shows an abrupt pressure spike at the moment the air pocket collapses; the triple-acting scenario (blue) shows a gradual, cushioned rise as the smaller outflow orifice slows the final air release.

Q2 — Why Do I See a Big Surge When No Air or Vapor Pocket Shows in the Profile?

A user notices a large pressure spike in the profile animation. They look at the air/vapor volume panel at the top of the chart — it shows zero. No pocket. They have no explanation for the surge.

The cause is almost always the same: the air valve is connected at a T-branch (lateral pipe), not directly on the main line.

Why the lateral geometry hides the pocket

Some engineers connect air valves via a short lateral pipe, creating a T-junction rather than placing the valve directly in series on the main. This is done to simplify scenario switching — when comparing "no protection" vs "with air valve," the main pipes P3 and P4 stay active in both scenarios, and only the lateral pipe and air valve are toggled.

The problem is the profile. The default profile path follows the main line — P3, then P4. It does not traverse the lateral branch. Air that enters the valve exists at the branch node, not on the profile path. So the volume panel shows zero, even though a real pocket is forming and collapsing:

HAMMER profile showing no air/vapor volume in top panel despite large surge — air valve connected at lateral pipe
The profile follows the main line, bypassing the lateral branch where the air valve is located. The air pocket exists at the branch node, but since the profile does not traverse it, the air/vapor volume panel shows zero — creating the illusion of an unexplained surge.

How to diagnose it

Switch to the time-history view and graph the pipe adjacent to the air valve (e.g. P57-AV). Plot both pressure and air/vapor volume for that pipe. You will immediately see:

Profile Without Air Valve — baseline showing where column separation occurs in the pipeline
The "Without Air Valve" scenario establishes the baseline: the minimum HGL (blue) drops below the pipe elevation at the same locations where the lateral air valve model would place protection. This shows why those nodes matter.

This makes the mechanism obvious: air pocket collapse at the T-branch causes the surge, even though it is invisible in the profile.

Coming in HAMMER 2026 — Treat Air Valve as Junction The next HAMMER release will add a new air valve property: Treat Air Valve as Junction During Transient. Set this to True on a main-line air valve, and the valve behaves as a simple pass-through node in the "no protection" scenario without needing to deactivate topology. This eliminates the need for the lateral-pipe workaround entirely.

Q3 — Why Doesn't the Air Volume Graph Match the Max Air Volume Result?

An engineer looks at the profile and sees that the maximum air volume at the valve location reaches ~75 L. They then open the time-history graph for the upstream pipe adjacent to the air valve — and it only shows 68 L. They open the downstream side — it shows 22 L. Neither matches the 75 L they saw in the profile or in the element's statistical results panel.

Why the numbers differ

HAMMER tracks air pockets independently on each side of the air valve. When a pump check valve closes, the water column on the upstream side may stop moving immediately, while the downstream water column continues to move away from the valve. Air can accumulate simultaneously on both sides, with the pocket boundaries tracked separately by the solver.

The time-history at P3-AV upstream end shows only the upstream pocket volume. The time-history at P4-AV downstream end shows only the downstream pocket volume. Neither shows the total:

HAMMER air valve properties showing max air volume ~75 L while pipe time-history graphs show only 68 L and 22 L
The air valve element properties (right panel) shows a max air volume of ~75 L in the statistical results. But the time-history at the upstream pipe shows only 68 L and at the downstream pipe shows 22 L — the difference is because HAMMER tracks pocket volume on each side separately.

The fix: Extended Node Data

Extended Node Data for the air valve element reports the total volume — the sum of both sides — because it reads from the node itself, not from adjacent pipe endpoints. When you graph air volume here, the peak matches the statistical result (~70–75 L):

HAMMER Extended Node Data showing total air volume for double-acting air valve — peak matches statistical result
Extended Node Data for the air valve: the total air volume graph peaks at ~70 L, matching the statistical result. The two-lobed shape in the upper portion of the profile panel shows the moment when air exists simultaneously on both sides of the valve.
Summary Pipe endpoint time-histories = one side only. Extended Node Data = total volume at the valve node. Always use Extended Node Data when checking max air volume against the statistical results.

Q4 — Why Aren't My Air Valves Preventing Negative Pressure?

An engineer places several air valves along a transmission main. Pump trips. The transient simulation still shows sub-atmospheric pressures or column separation — apparently ignoring the valves. The instinct is to add more air valves, or larger ones. Sometimes this helps. Often it does not.

The real cause is a geometry and timing problem: the pressure drop wave reaches the uphill pipe section before it reaches the air valve.

How the wavefront outruns the valve

The pump trip creates a negative pressure wave that travels downstream at the wave speed a. If the pipeline rises sharply between the pump and the air valve location, the wavefront may cause pressures at those uphill nodes to drop below atmospheric — before the wave even reaches the valve:

HAMMER animation showing negative pressure wave reaching uphill pipe section before reaching the air valve location
Animation at ~3.5 s after pump trip: the low-pressure wave (black line) has reached the uphill portion of the pipe but has not yet reached the air valve location (shown at the right end of the model). Pressure has already dropped to near-zero elevation in that uphill section — the valve cannot prevent a sub-atmospheric event it has not yet physically influenced.

The air valve only protects at its own location. It cannot send air backward along the pipe to fill a vacuum that formed upstream of it.

What to do

Common Misconception "I added 5 air valves and the negative pressures are still there — HAMMER is wrong." HAMMER is correct. Air valves cannot retroactively prevent a pressure drop that occurred between valve locations before the wave arrived. The fix is upstream protection (surge vessel, flywheel) or denser valve placement — not more valves at the same locations.

Q5 — Why Do I See Flow Even Though a Valve Is Closed?

A check valve closes on the pump. The time-history at the pump discharge pipe shows flow dropping to zero and staying there — as expected. But a time-history at a pipe further downstream shows flow going negative, then positive, then oscillating. How can water be moving in a closed system?

The cause: column separation creates separated water masses

When air enters the system (or when the pressure drops below vapour pressure and column separation occurs), the continuous water column is broken into separated segments. These segments can move independently of each other:

The check valve is closed, and flow at the pump is correctly zero. But the check valve only isolates the pump side. The downstream water column, beyond the air pocket, is free to move — driven by the pressure differential created by the collapsing pocket.

HAMMER model with check valve on pump — downstream pipe flow graph shows oscillation despite pump being isolated
Model configuration for Q5: the pump has a check valve (pump valve type = check valve). The downstream pipe flow graph (P5 J3) shows flow reversing and oscillating, which is physically caused by the separated water column moving toward and away from the collapsing air pocket.

Seeing it in sync

HAMMER allows you to open the profile animation and a time-history graph side by side. As you scrub the animation, both update simultaneously. With this view, the mechanism becomes self-evident: at the moment the flow graph shows the reversal, the profile animation shows the air volume panel beginning to drop — the pocket is collapsing and pulling the downstream column back toward it:

HAMMER profile animation and time-history flow graph open side by side — flow reversal corresponds to air pocket collapse
Profile animation (left) and time-history flow graph (right) in sync. The moment the air volume begins decreasing (pocket collapsing), the flow graph (blue line, triple-acting scenario) shows the direction reversal. The separated water column downstream is physically moving back toward the shrinking pocket.
Applies to Vapour Pockets Too The same flow oscillation appears in scenarios without air valves where the pressure drops below vapour pressure and a vapour pocket forms. The pocket vaporises, then collapses — and the separated water columns move in exactly the same way. Seeing oscillating flow downstream of a closed valve in a no-protection scenario is a reliable indicator of column separation and vapour pocket collapse.

Bonus — The Extended CAV Option

A lesser-known HAMMER capability related to air valves is the Run Extended CAV option in Calculation Options. When enabled, HAMMER tracks the physical movement of the air pocket within the two pipes adjacent to the air valve — not just the total volume at the node.

Requirements: the air valve node must be at a higher elevation than the adjacent nodes, and the option only tracks movement in those two immediately adjacent pipes (not further downstream).

HAMMER Extended CAV — profile showing air pocket water surface level tracked within adjacent pipes during pump shutdown and restart
Extended CAV enabled: during pump shutdown, the water surface elevation in the adjacent pipes drops slightly as the air pocket grows and the pocket boundary moves. During pump restart, the profile shows the level rising back as the pocket is expelled. In most practical cases the effect on overall transient results is small, but the capability is useful when local pocket migration is significant to the analysis.

In practice, for most transmission main analyses, the impact of pocket migration on the overall transient results is small. But for detailed studies of pump restart dynamics or when the pocket is large relative to the pipe segment, Extended CAV provides a more physically accurate picture of what is happening at the valve location.


Setup Checklist Before Running a Transient Simulation

SettingLocation in HAMMERRecommended ValueWhy
Generate Animation DataCalculation Options → Transient SolverTrueEnables the animation scrubber — essential for diagnosing surge events
Report TimesCalculation Options → ReportingAt All Times (or period = 1–5)Smooth animation; captures fast transient peaks
Report Period (surge devices)Element properties → Report Period1 or 10Required for Extended Node Data — zero means no data saved
Detail ProfileView → Profiles → NewCreate one near complex areasZoom in on check valve slam, air pocket collapse, pump station detail
Run Extended CAVCalculation OptionsTrue if air pocket migration mattersTracks pocket movement in adjacent pipes

Interactive: Air Pocket Collapse Pressure — Double vs Triple Acting

The chart below illustrates the core mechanism of Q1 — how air outflow orifice size controls the pressure spike at the moment of air pocket collapse. Toggle between the scenarios to compare pump discharge pressure over time.

Show:
Double-Acting — abrupt collapse
Triple-Acting — cushioned collapse
Pump shutdown at t = 3 s
Reading the Chart Both scenarios share the same initial down-surge after pump shutdown (t = 3 s). The difference appears later — when air is being expelled. The double-acting valve releases all air rapidly, and the resulting water column collision creates a single large spike. The triple-acting valve transitions to a smaller orifice at ~20 L remaining, softening the collapse into a gradual pressure rise.

Key Takeaways


Source

This article is based on the Bentley Systems webinar "Take Control of Hydraulic Surges — Tips for Transient Analysis with OpenFlows HAMMER" by Jesse Dringoli (Principal Technical Support Engineer, Bentley Systems) and Julio Issao Kuwajima. Recorded March 25, 2026. All screenshots are taken directly from the webinar demonstration.