Tutorial 15: Water Hammer Simulation
Purpose/Objective
This exercise will walk the user through building a water hammer model. The user will learn how to:
- Edit chamber properties
- Edit element properties
- Check the model
- Run the model
- Post-process the model
- Chamber Types: Plenum, Momentum
- Element Types: Elastic Pipe, Valve, Controller
- Fluid: Water
Step 1: Examine the system and create plan
- The user will be creating a model for a piping system as shown in figure 1.01. The
tank will provide the fluid to the elastic pipe when the valve is open and if the
valve is closed, there will be pressure waves in the pipe. This is an example model
of how to generate a water hammer model.
Figure 1.01: pipe connection between a tank and a valve
Figure 1.02: Flow Simulator Model
- The tank has constant pressure and temperature; thus, it can be modeled as plenum chamber.
- To model a piping system, the user will be making use of elastic tube, valve and controller elements.
Step 2: Building Model
- Plan model setup based on what is known about the geometry
- Drag and Drop 2 Boundary Plenum chambers
- Inlet Plenum Boundary
- Ps = 3.42 bar
- Tt = 23.3C
- Exit Plenum Boundary
- Ps = 1 bar
- Tt = 23.3C
- Inlet Plenum Boundary
- Drag and Drop elastic pipe under Incompressible Liquid Elements section.
- Total Length = 36m
- Number of Stations = 20
- Diameter = 0.01905 m
- Wave Speed = 4000
- Roughness = 0.02999 mm
- And connect Ball Valve between elastic pipe and plenum chamber
- Pipe Diameter = 0.01905 m
- Valve Position(%Open) = 100
- Define Mission table for the controller (RUN → Analysis Setup → Cycle/Mission)
- Drag and Drop Mission BC Controller to control Valve opening/closing through python
script
- GAUGE Variable is TIME
- GAUGE Variable Item Type is Mission
- GAUGE Variable Property is TIME
- MANIPULATED VAR. LIST Variable is VP
- MANIPULATED VAR. LIST Item Type is Valve Element
- MANIPULATED VAR. LIST Property is Valve Opening
- DEFINE Python Script to control Valve Opening base on TIME
- Select Analysis Type
- Run → Analysis Setup → Water Hammer Simulation
- Run Control Parameters
- Specify Run Start/Stop Time
- Time Stepping (if «Specify Material Properties» is selected as Water Hammer Input, Wave Speed Estimation should be given)
- Solver Convergence
- Unselect Tol1
- Select Tol3 with a value of 0.01
Step 3: Check Model and Run
- Select checkmark icon from the top toolbar to check the model for warnings/errors.
- An error should populate stating that the internal chamber has not been initialized
- Select the initialization icon from the toolbar, and pick Start. Accept values once flow solver has converged.
- Select run icon from toolbar. Run Flow Simulator.
Step 4: Post-process
Will Be updated Soon. Interim Solution
Figure 5.02: Change in the Exit Pressure of the Elastic Pipe with time