The rate of pressure change is determined from solution of the "hammer equations" from the method of characteristics (moc)
along a + characteristic
dV/dt+1/(rho*c)* dxdt +friction=0 (1)
dx/dt = V +c (1a)
where V= velocity, x distance, t =time c=sound velocity
along a - characteristic
dV/dt-1/(rho*c)* dxdt +friction=0 (2)
dx/dt = V -c (2a)
For highly incompressible fluids and where V<<c (liquids)
1a and 1b become
dx/dt = + (or)- c
and generally it is assumed that rho and c are constant such that the equations 1,1a, 2 and 2a are easily integrated.
Solutions of the integrated equations 1 and 2 from known conditions of a previous time yields the pressure and velocity and a new time.
The new time is determined from the integrated equations 1a and 2a.
Neglecting friction yields the well know hammer equations of change in velocity = pressure rise/rho/c
If for example the presssure/velocity vs. time is known at say a location x=0, then the information traveling along the characteristics in say the + direction is known and the solution obtained at new time steps from information on the downstream -(minus) chracteristics. Rate of pressure rise at other locations is then known.
Use of F=ma as suggested from a previous post on this thread could be used if a pump is starting and the idea is to move a pig. MOC would be applied to the liquid with the charateristics having F=ma as a boundary condition.
F=ma could also be used as an approximation, if a relatively long slug of water at one temperatre in a pipe is separated from a relatively small slug at a different temperature. MOC being used for the long slug.
If there were for example a pipe rupture to the atmosphere, then the solution of the characteristic equations is simple, since the end condition of pressure is known and the break exit velocity easily determined.
Similarly, if there is a rapid valve closure,solution of the characteristic equation is simple, since the velocity at the end of characteristic is zero and the pressure easily determined.
Regards