erobz
Gold Member
- 4,454
- 1,841
I was wrong about this, it gets messy.erobz said:To be honest, I would nix the method I'm proposing in #11 in its entirety. The method I'm using in #18 does not have steady flow assumption built in. It's readily amenable to include both the work from the pump and the changing kinetic energies of the mass both contained inside the tanks and any piping as the flow slows down. It will amount to solving a single second order non-linear ODE(I think).
We need to be using "Unsteady -Bernoulli"1 which says in general:
$$ P_1 + \rho g z_1 + \frac{1}{2}\rho v_1^2 = \int_1^2 \rho \frac{\partial v_s}{\partial t} ds + P_2 + \rho g z_2 + \frac{1}{2}\rho v_2^2 \tag{1}$$
If we assume uniformly distributed properties, the streamlines in a particular section of the flow are straight. As a result, the partial derivative of the velocity of the flow in that section does not depend on its position, and can be taken outside the integral. Basically... this ignores the flow transition between tanks and pipes.
Apply ##(1)## between the junction and tank liquid surface in each tank. Splitting the integral at the transition we have that:
$$\begin{aligned} P_j + \frac{1}{2}\rho \left(\frac{A}{A_p}\right)^2 \dot z_1^2 &= \int_j^a \rho \frac{\partial v_s}{\partial t} ds + \int_a^1 \rho \frac{\partial v_s}{\partial t} ds + P_1(z_1) + \rho g z_1 + \frac{1}{2}\rho \dot z_1^2 \\ \quad \\ &= \rho \frac{A}{A_p} \ddot z_1 \int_j^a ds + \rho \ddot z_1 \int_a^1 ds + P_1(z_1) + \rho g z_1 + \frac{1}{2}\rho \dot z_1^2 \\ \quad \\ &= \rho \frac{A}{A_p} \ddot z_1 l + \rho \ddot z_1 z_1 + P_1(z_1) + \rho g z_1 + \frac{1}{2}\rho \dot z_1^2 \\ \quad \\ &= \rho \left( \frac{A}{A_p} l + z_1 \right)\ddot z_1 + P_1(z_1) + \rho g z_1 + \frac{1}{2}\rho \dot z_1^2 \end{aligned}$$
$$ \tag{2} $$
##l## is just an arbitrary length of pipe joining the junction to tank 1
##A_p## is the area of the branch.
Applying ##(1)## from the junction to tank 2 we get:
$$ P_j + \frac{1}{2}\rho \left(\frac{A}{A_p}\right)^2 \dot z_2^2 = \rho \left( \frac{A}{A_p} H + z_2 \right)\ddot z_2 + P_2(z_2) + \rho g \left(H+z_2\right) + \frac{1}{2}\rho \dot z_2^2 \tag{3}$$
We also have continuity at the junction:
$$ Q = A \dot z_1 + A \dot z_2 \tag{4}$$
Then assuming the pump is drawing from a very large reservoir at atmospheric pressure:
$$ P_{atm} + \rho g h_p(Q) = P_j + \frac{1}{2}\rho \frac{Q^2}{A_m^2} + \rho L \dot Q \tag{5} $$
Where ##A_m## is the area of the main feeding the system. We can use ##(5)## to eliminate ##P_j## in each of the equations.
For the pump curve we can say generally:
$$ h_p(Q) = C - \beta Q^2 $$Using what we figured out earlier, set the tanks in an initial state of equilibrium at time ##t = 0##, pick the thermodynamics for the ideal gas compression (adiabatic?). Turn on the pump, simultaneously solve ##(2)## through ##(5)## under the initial conditions:
##z_1(0) = z_{1,o}##
##z_2(0) = z_{2,o}##
##\dot z_1(0) = 0 ##
## \dot z_2(0) = 0 ##
Reference:
[1] https://ocw.mit.edu/courses/2-25-ad...edabdfd4b95c1792_MIT2_25F13_Unstea_Bernou.pdf
Last edited: