Figure 1: Pipe with liquid connecting two pools.

The equations of motion for the surface is given by: $$ \begin{align} \frac{dv}{dt} = -\left[\frac{2\,g\,z}{L} + \frac{f}{2D}v \lvert v \rvert\right], \label{eq:motion} \end{align} $$
where, \( v \) [m/s] is the velocity of the surface, \( z \) [m] is the displacement with respect to the equilibrium, \( t \) [s] is time, \( D=0.5 \) [m] is the diameter of the pipe, \( f=0.05 \) [-] is a friction coefficient, \( L=392 \) is the total length of the water columns and \( g=9.8 \) [m/s^2]. The initial conditions (for the left surface) are given by: $$ \begin{align} z(0) = -6\,, \label{_auto1}\\ v(0) = 0\,. \label{eq:init} \end{align} $$
a) Calculate \( z \) and \( v = \frac{dz}{dt} \) after 3 \( s \) using Eulers method with a time-step of \( \Delta t = 1 s \).
solution: \( z = -5.105 m \), \( v = 0.863 m/s \).
b) Calculate \( z \) and \( v = \frac{dz}{dt} \) after 3 \( s \) using Heuns method with a time-step of \( \Delta t = 1 s \).
solution: \( z = -4.709 m \), \( v = 0.803 m/s \).
c) Solve the initial value ODE given by Eqs. \eqref{eq:motion} -\eqref{eq:init} by Employing Taylor's method (around \( t=0 \)).
solution: $$ \begin{align} z = -6 + \frac{3\,t^2}{20} - \frac{t^4}{1000}\,. \label{_auto7} \end{align} $$