What is a water hammer?
Water hammer is the often counterintuitive result of stopping water that is in motion in a fluid system; the collective momentum of the water acts as a "hammer" and can create a high-pressure shockwave that damages, or destroys piping, valves, or equipment.

For example, it may be easy to close a water valve. Yet moments later it might explode from the sudden pressure of all the "upstream" water being forced to stop.
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------

----------------
Answer the following query.
What is a water hammer?

user
Water hammer is the often counterintuitive result of stopping water that is in motion in a fluid system; the collective momentum of the water acts as a "hammer" and can create a high-pressure shockwave that damages, or destroys piping, valves, or equipment.

For example, it may be easy to close a water valve. Yet moments later it might explode from the sudden pressure of all the "upstream" water being forced to stop.
assistant