Stand With Ukraine

Friday, March 8, 2024

Physics problem: Horizontal cylindric water pump

First, let me give you the problem statement so you can decide for yourself if the post is worth your time.

Problem statement

A pump consists of a cylinder with a piston. The cylinder is positioned horizontally. The piston's active pushing area is $A$. There is a hole of area $a$, in the middle of the piston. The piston is pushing water to the left and the water is flowing out to the right through the hole. The force $F$ is applied to the piston to make it move to the left with a constant velocity. Assuming that the flow is laminar and stationary ($\frac{\partial X}{\partial t} = 0$), determine the flow velocity of the liquid through the hole.

[Source: Savchenko et al 1981 physics problems book]


Latex source for the above plot is here: link. In this one I used layers to draw the pump on top of water.

Solution

One thing that we need to realize is that we are asked to compute the outflow speed of the water relative to the piston.

Another one, which is important to get the same answer as in the source physics problem book, is to realize that the total cross-section area of the cylinder is $A+a$.

Now that these two points are clarified we can switch to the reference system moving to the left with the piston. In this reference system the water flows to the right and through the hole. Let's denote the speed of water to the left from the piston and to the right from the piston as $u$ and $v$ respectively. Therefore the speed $v$ is the actual outflow speed we are asked to compute here. Let's denote the pressure to the left and to the right from the piston as $P_1$ and $P_2$ respectively.

Let's write down the following three constraints imposed onto the pump system in the form of equations.

  1. The second Newton's law applied to the piston yields:

    $$ F = \left( P_1 - P_2 \right) \cdot A $$

  2. The energy conservation law applied to a unit volume of the water (or else known as Bernoulli's law) yields:

    $$ P_1 + \rho \frac{u^2}{2} = P_2 + \rho \frac{v^2}{2} $$

  3. The continuity equation yields:

    $$ u \cdot A = v \cdot a $$

Above, we have three equations and three unknowns to be found are $u$, $v$, and $P_1 - P_2$. By solving the above system of equations we obtain the following expression for the outflow speed $v$:

$$ \boxed{v = \sqrt{\frac{2FA}{\rho (A^2 - a^2)}}} $$

Sunday, January 21, 2024

Making suspend work on an arch-flavoured linux

I have a custom installation of linux (EndeavourOS if you are curious) that I use with the i3 window manager. But whenever I was doing
systemctl suspend
it was going to suspend but then turned back on, without any error message... Recently, I've guessed that the reason for this was the missing swap file. If you find yourself in a similar situation there is a nice howto on the creation and activation of a swapfile on Linux: https://btrfs.readthedocs.io/en/latest/Swapfile.html