...
Wave Propagation in a pipe

This is a small program that uses the equations of fluid dynamics to simulate a system comprised of a tank of known volume connected through a valve to a hose of constant size.
At timestamp zero the valve initiate an open-close cycle that lasts for 0.008 seconds.
The conduit is subjected to a pressure wave that propagates until the end of the conduit, where it is reflected back into the conduit.
The program allows the user to change some input parameters and outputs the waveform. In addition the top graph shows the pressure in the tank as well as in two points of the conduit (definable by the use).

Download file