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

Related simulators

Continue with similar topics in this category — or all 85 in Classical Mechanics.

View category →
NewSchool

Bernoulli Flow

Launch Simulator

Pipe narrows: speed up, pressure down. Continuity + Bernoulli.

NewUniversity / research

Rocket Propulsion

Launch Simulator

Variable mass: thrust ṁu, Tsiolkovsky Δv, vertical launch with gravity.

NewSchool

Coupled Pendulum Chain

Launch Simulator

N pendula with neighbor springs in θ: watch traveling waves and reflections after a center kick.

NewUniversity / research

Faraday Waves

Launch Simulator

Vertical parametric drive of a thin liquid layer: Mathieu sub-harmonic instability locks stripes, squares or hexagons.

NewUniversity / research

Gyroscope Precession

Launch Simulator

Gravity torque τ = mgd, spin L = Iω, steady precession Ω ≈ τ/L — schematic 3D view.

NewSchool

Center of Mass System

Launch Simulator

2–4 bodies or rod: R_cm, V_cm; explosion with ΣΔp = 0; |P| and |V_cm| graphs.

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)

Linearized P,V waves; valve closes; Joukowsky ΔP ≈ ρaV hint.

Pipe & fluid

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

Measured values

ΔP Joukowsky (ref)2640000 Pa

About this model

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

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.