PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Classical Mechanics

Other simulators in this category — or see all 85.

View category →
NewSchool

Foucault Pendulum (Sketch)

Ω_eff = Ω_E sin|λ| with time scale; top view rotating swing line.

Launch Simulator
NewKids

Tippe Top (Schematic)

Offset COM, friction at rim, spin — qualitative flip when μ is high enough vs spin.

Launch Simulator
NewUniversity / research

Kapitza Pendulum

Pivot shakes vertically: fast driving can stabilize the inverted equilibrium — parametric pumping in θ̈ + (g/L) sin θ ≈ (Aω²/L) cos(ωt) sin θ.

Launch Simulator
NewKids

Rattleback (Celt)

Chiral hull couples spin and rocking in a toy ODE: one rotation sense reverses after growing wobble.

Launch Simulator
NewSchool

Maxwell Wheel

Disk on a thin axle unwinds string: shared linear and rotational kinetic energy from falling potential, a ≈ g / (1 + I/(mr²)).

Launch Simulator
NewUniversity / research

Brachistochrone Race

Beads race down a line, a circular arc, and a cycloid with v = √(2gy); the cycloid wins the descent-time minimum.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Classical Mechanics/Water Hammer (1D)

Water Hammer (1D)

Water hammer is a classic fluid transient phenomenon where a sudden change in flow velocity, such as the rapid closure of a valve, generates a pressure surge that travels through a pipe system. This simulator models the one-dimensional propagation of this pressure wave using the fundamental principles of conservation of mass and momentum, linearized for small disturbances. The core physics is described by the wave equation for pressure, ∂²P/∂t² = a² ∂²P/∂x², where 'a' is the wavespeed (or celerity). The simulator visualizes how a step change in velocity at the valve creates a pressure wave of magnitude ΔP = ρ a ΔV, known as the Joukowsky equation. This wave reflects at boundaries—a closed end causes a same-sign pressure reflection, while an open reservoir causes an opposite-sign reflection—leading to complex interference patterns over time. Key simplifications include assuming a rigid pipe wall (or a constant wavespeed), a frictionless flow for the wave propagation itself, and a one-dimensional, compressible liquid. By interacting with this model, students learn to connect the microscopic compressibility of the fluid to macroscopic wave behavior, predict pressure magnitudes using the Joukowsky relation, and understand how boundary conditions dictate the system's transient response, which is crucial for designing safe piping systems.

Who it's for: Undergraduate engineering students in fluid mechanics or hydraulic transients courses, and practicing engineers seeking an intuitive grasp of pressure surge phenomena.

Key terms

  • Joukowsky Equation
  • Pressure Surge
  • Wave Speed (Celerity)
  • Fluid Transients
  • Water Hammer
  • Wave Reflection
  • Conservation of Momentum
  • Acoustic Wave

Pipe & fluid

1200 m/s
1000 kg/m³
2.2 m/s
350000 Pa

Measured values

ΔP Joukowsky (ref)2640000 Pa

How it works

Linear water-hammer pair: ∂P/∂t + ρa² ∂V/∂x = 0 and ∂V/∂t + ρ⁻¹ ∂P/∂x = 0 with wave speed a (bulk modulus / density in full theory). Right end holds reservoir pressure; left is a valve that snaps shut after a short delay so you see a surge travel down the line. Explicit time stepping — not full transient Joukowsky engineering (losses, pipe elasticity detail). ΔP ≈ ρ a V is the classic sudden-stop order-of-magnitude.

Key equations

ΔP ≈ ρ a ΔV (instant valve) · linear 1D wave on a lattice

Frequently asked questions

Why does the pressure spike so high when the valve closes quickly, but not when it closes slowly?
The Joukowsky equation ΔP = ρ a ΔV shows the pressure rise is proportional to the change in velocity ΔV. A rapid closure creates a large ΔV almost instantly, generating a high surge. A slow closure allows the velocity change to occur over a longer time, enabling pressure relief through wave reflections and other damping mechanisms not captured in this idealized model, resulting in a much smaller peak pressure.
What determines the speed of the pressure wave in the pipe?
The wave speed 'a' is determined by the fluid's compressibility and the pipe wall's elasticity. For a rigid pipe, it approximates the speed of sound in the fluid, a ≈ √(K/ρ), where K is the fluid's bulk modulus. For elastic pipes, the wave speed is lower because the pipe walls expand slightly, absorbing some of the pressure energy. This simulator typically uses a constant, pre-calculated wavespeed.
Can this simulator model what happens if a pipe bursts?
Not directly. This simulator models linear wave propagation and reflection at defined boundaries (closed valve, open reservoir). A pipe burst is a complex, nonlinear boundary condition that rapidly relieves pressure and creates a rarefaction wave. While the core wave principles still apply, the specific dynamics and energy losses during a rupture are beyond the scope of this simplified 1D model.
How is this related to the "water hammer" sound I hear in my house?
The loud banging is the direct result of the pressure wave described here. When you quickly shut off a faucet, the moving water column is suddenly stopped, creating a pressure surge that travels back through the pipes. The sound is caused by this surge vibrating the pipe walls and fixtures. This simulator visualizes the underlying pressure pulse that causes that familiar noise.