MATLAB Examples

Segmented Pipeline Test Rig

This example shows a test rig used to investigate the water hammer effect, which occurs when a variable orifice is abruptly shut off with full flow rate flowing through the branch. The water hammer behavior of the pipeline can be investigated by changing pipeline dimensions, number of segments in the pipeline model, fluid properties, valve closure speed, and minimum opening.



Simulation Results from Simscape Logging

The plot below shows the pressure in each of the chambers in the segmented pipeline. The orifice at the outlet of the pipeline closes suddenly, creating pressure waves within the pipeline (water hammer effect).