Fluid dynamics problem: Equalize the volume of water in tanks at differing heights

  • Thread starter Hankelec
  • Start date
In summary, the system should fill at approximately the same rate, even if the tanks are at different heights.
  • #1
Hankelec
13
0
TL;DR Summary
Adjustments needed to equalize volume of water in tanks at differing heights.
I am working on a reverse osmosis water system. There are 2 bladder type pressure tanks for storage. One tank is at floor level, the other tank is supported directly above the lower tank 5 feet above the floor. It would be advantageous if these tanks would fill at an equal rate, or approximately equal rate, from a single supply line coming from the RO system. And perhaps they will if I have both tanks pressurized equally and accurately at the same pressure.

The supply is 1/2" plastic. It enters the lower tank at floor level. Just prior to entering the lower tank there is a T junction which travels upward to the upper tank. Let's say the initial pressure of the tanks is set 2 psi below pressure pump kick-in pressure. Kick-in pressure equals 30 psi so empty tank will be pressurized to 28 psi. Kick-out pressure is 50 psi. So I will have a 5' column of water adding a psi or two that will need to be overcome to allow water to enter top tank.

As the top tank begins to accept water, there will be the 5' differential affecting the resistive pressure at its filler inlet. As the top tank's volume increases and its water height increases, will there be developed enough pressure difference relative to the bottom tank that will prevent water from entering top tank.

If supply water tends to oscillate from entering bottom tank then top tank, that is acceptable. What would not be favorable is if bottom tank fills to 30 gallon capacity and top tank is holding only 5 or 10 gallons. So what I am searching for is an offset pressure to best fill each tank to capacity. A 10% error factor is OK.
 
Last edited by a moderator:
Engineering news on Phys.org
  • #2
A float in each tank, with a connecting rod from the top tank float to the bottom tank, where the inlet to the bottom tank can be restricted if the float levels in their respective tanks differ.

A differential pressure gauge, connected between the tanks, with the control offset by the required pressure difference. The inlet to the lower tank would be restricted if the top tank is too low. There is no restriction into the top tank, apart from the hydrostatic pressure.

The pump, that supplies both tank inlets, turns off when the top tank reaches the high water level.
 
  • Like
Likes Juanda and Lnewqban
  • #3
Hankelec said:
TL;DR Summary: Adjustments needed to equalize volume of water in tanks at differing heights.

I am working on a reverse osmosis water system. There are 2 bladder type pressure tanks for storage. One tank is at floor level, the other tank is supported directly above the lower tank 5 feet above the floor.

I may be wrong, but the difference of heights should not be very critical if both thanks are bladder type.
If both have similar volumes or model number, they should behave just like two springs in a parallel arrangement.

Please, see:
https://inspectapedia.com/water/Water-Tank-Bladders.php

1529s.jpg
 
  • #4
Hankelec said:
TL;DR Summary: Adjustments needed to equalize volume of water in tanks at differing heights.

As the top tank begins to accept water, there will be the 5' differential affecting the resistive pressure at its filler inlet. As the top tank's volume increases and its water height increases, will there be developed enough pressure difference relative to the bottom tank that will prevent water from entering top tank.
What??? This makes no sense at all to me (either I don't understand the system or you are imagining nonexistant difficulties) You understand that 5 feet of water gives you 2.5 psi additional pressure head. So the pressure in the upper tank simply be 2.5 psi less. Water will flow in such a way as to maintain that difference. What is the issue ?
 
  • Like
Likes Hankelec
  • #5
hutchphd said:
You understand that 5 feet of water gives you 2.5 psi additional pressure head. So the pressure in the upper tank simply be 2.5 psi less. Water will flow in such a way as to maintain that difference. What is the issue ?
I believe the issue is the flowrate, i.e. they want them to fill at approximately the same rate.
 
  • #6
That makes no sense to me.
  1. The system is at equilibrium
  2. The pump pressure is increased by ##\Delta P##
  3. At the mouth of each pressure tank the differential pressure increases by ##\Delta P##
  4. water flows in according to differential pressure
  5. Where is the problem?
Somebody is certainly confused here. (it could be me!)
 
  • #7
hutchphd said:
That makes no sense to me.
  1. The system is at equilibrium
  2. The pump pressure is increased by ##\Delta P##
  3. At the mouth of each pressure tank the differential pressure increases by ##\Delta P##
  4. water flows in according to differential pressure
  5. Where is the problem?
Somebody is certainly confused here. (it could be me!)
These tanks are effectively parallel branches of a circuit with different resistances. Min. 5 ft of head may or may not be a game changer, but in general think about taking the upper tank to the to top of a mountain.
 
  • Like
Likes Hankelec
  • #8
erobz said:
Min. 5 ft of head may or may not be a game changer,
He says the system is at 40 psi. Clearly the tank on the mountain top will not be useful to his system.
 
  • #9
hutchphd said:
What??? This makes no sense at all to me (either I don't understand the system or you are imagining nonexistant difficulties)You understand that 5 feet of water gives you 2.5 psi additional pressure head. So the pressure in the upper tank simply be 2.5 psi less. Water will flow in such a way as to maintain that difference. What is the issue ?
The reason the tanks are pressurized is to maintain water flow to the water outlet, of course, rather than rely on "gravity flow." For example purposes let's say both tanks are above the water outlet. The initial state of the tanks is that one tank is five feet higher than the other tank. Both tanks are pressurized to 28 psi. Now say we open the air filler valve on both tanks until air stop coming out. Both tanks will merely have atmospheric pressure pushing downward upon the bladders. The difference in atmospheric pressure at a 5' difference in height would be neglegable I am assuming. The water inlet to the tank bladders are configured in a "T" configuration. Water start to flow in the supply line, reaches the T intersection, and I have to guess will begin to fill the bottom tank. NOTE: After we lowered the internal pressure in each tank by 28 psi, we closed the air pressure filler valve. As the lower tank begins to fill and compressing the trapped air, you are saying that once the air pressure rises to 2.5 psi, some of the water will be diverted to the upper tank due to a pressure equalibrium. And as long as a 2.5 psi differential is maintained, both tanks will be accepting equal volumes of water from the supply line. I don't see that being the case but that is why I am making this inquiry. How did this scenario sound to you?
 
  • #10
Hankelec said:
The reason the tanks are pressurized is to maintain water flow to the water outlet, of course, rather than rely on "gravity flow." For example purposes let's say both tanks are above the water outlet. The initial state of the tanks is that one tank is five feet higher than the other tank. Both tanks are pressurized to 28 psi. Now say we open the air filler valve on both tanks until air stop coming out. Both tanks will merely have atmospheric pressure pushing downward upon the bladders. The difference in atmospheric pressure at a 5' difference in height would be neglegable I am assuming. The water inlet to the tank bladders are configured in a "T" configuration. Water start to flow in the supply line, reaches the T intersection, and I have to guess will begin to fill the bottom tank. NOTE: After we lowered the internal pressure in each tank by 28 psi, we closed the air pressure filler valve. As the lower tank begins to fill and compressing the trapped air, you are saying that once the air pressure rises to 2.5 psi, some of the water will be diverted to the upper tank due to a pressure equalibrium.
There is also dependencies on viscous dissipation in the supply lines to each tank, but that is the general idea.
Hankelec said:
And as long as a 2.5 psi differential is maintained, both tanks will be accepting equal volumes of water from the supply line. I don't see that being the case but that is why I am making this inquiry. How did this scenario sound to you?
At 2.5 psi differential ( or whatever is required to overcome the height difference ) the flow begins to trickle into the upper tank, then everything becomes complicated to describe analytically. That is my point. as you keep building pressure in the lower, sure...flow is diverting to the upper, but also the upper is pushing back, developing its own pressure at a different rate. Maybe I'm making I'm seeing a mountain in a mole hill, but it doesn't seem immediately reducible at this point (at least to me) without trying some computation.
 
Last edited:
  • Like
Likes Hankelec
  • #11
Lets approximate that the flow is steady in each branch over some period of time i.e. in each branch the rate of change in flow in that branch is not changing strongly in time. Also ignore viscous effects in the transmission lines. Furthermore, the top tank is open to atmosphere as a simplified problem, and the total flowrate ##Q_T## is to remain constant in time.

1690726066220.png


Bernoulli's Implies:

$$ \frac{P(z_1)}{\rho g } + z_1 + \frac{\dot z_1^2}{2g} = \frac{P_{atm}}{\rho g} + z_2 + H + \frac{\dot z_2^2}{2g}$$

Continuity Implies:

$$ Q_T = A \left( \dot z_1 + \dot z_2\right) \implies \dot z_2 = \frac{Q_T}{A} -\dot z_1$$

From integrating continuity we find that:

$$ z_2 = z_{2_o} + \int \left( \frac{Q_T}{A} -\dot z_1 \right) dt $$

Lets eliminate ##z_2, \dot z_2##:

$$ \frac{P(z_1)}{\rho g } + z_1 + \frac{\dot z_1^2}{2g} = \frac{P_{atm}}{\rho g}+ z_{2_o} + \int \left( \frac{Q_T}{A} -\dot z_1 \right) dt + H + \frac{\left( \frac{Q_T}{A} -\dot z_1 \right)^2}{2g}$$

Now, take the derivative w.r.t time ##t##, to eliminate that integral from the equation:

$$ \frac{1}{\rho g}\frac{dP(z_1)}{dz_1 } \dot z_1 + \dot z_1 + \frac{2\dot z_1 \ddot z_1}{2g} = \cancel{\frac{P_{atm}}{\rho g}}^0+ \cancel{z_{2_o} }^0+ \frac{Q_T}{A} -\dot z_1 + \cancel{H}^0 - \frac{2 \left( \frac{Q_T}{A} -\dot z_1 \right) \ddot z_1}{2g}$$

Where ##P(z_1)## is found from the ideal gas law ( isothermal ):

$$ P(z_1) = \frac{P_o V_o}{V_o - A z_1} $$

$$ \frac{1}{\rho g}\frac{dP(z_1)}{dz_1 } \dot z_1 + 2\dot z_1- \frac{Q_T}{A} + \frac{Q_T}{gA} \ddot z_1 = 0 $$

Given the form of this simplified equation, and the many assumptions that don't strictly hold for all time. I think active control ( like @Baluncore proposes ), or scaled experimentation are going to be desirable approach (maybe it looks worse than it is in actuality). If you try to account for the fact that the flowrates are actually not steady, the upper tank builds pressure, and transmission losses it only gets mathematically worse as far as I can tell.
 
Last edited:
  • Like
Likes Hankelec and Juanda
  • #12
I am totally mystified by the analysis. Although (perhaps) true, most of it seems totally irrelevant to me.
Perhaps it would be good to state the engineering requirements here. Why do you care about pressure and flow and what are the requirement for each? Why is there more than one tank?? Why are they at different altitudes?
The pressure and flow in my upstairs bathroom differs slightly from the downstairs one .......I don't really fret about this.
 
  • Like
Likes erobz
  • #13
Hankelec said:
TL;DR Summary: Adjustments needed to equalize volume of water in tanks at differing heights.

What would not be favorable is if bottom tank fills to 30 gallon capacity and top tank is holding only 5 or 10 gallons. So what I am searching for is an offset pressure to best fill each tank to capacity. A 10% error factor is OK.
Hankelec said:
Kick-in pressure equals 30 psi so empty tank will be pressurized to 28 psi. Kick-out pressure is 50 psi.
When the tanks are empty, the pressure is 28 PSI.
At kick-in, the pressure in a tank is 30 PSI, and the tank is almost empty.
At kick-out, the pressure in a tank is 50 PSI, and the tank is as full as it gets.
The pressure in a tank is proportional to the amount of water in that tank as shown in the graph below:
Tank Pressure.jpg

Five feet of head pressure difference between the two tanks is 2.2 PSI. The pressure difference between tank empty and tank full is 20 PSI, so the 2.2 PSI of pressure difference is 2.2/20 = 11% of the tank capacity. The bottom tank will be 11% full before the top tank starts to fill, then there will be equal flow into both tanks until the bottom tank is full at 50 PSI. The top tank will be 89% full at that point because the pressure in it will be 47.8 PSI.

In the real world, these differences are so small as to be not noticeable.
 
  • Like
  • Informative
Likes Hankelec, Juanda and hutchphd
  • #14
erobz said:
At 2.5 psi differential ( or whatever is required to overcome the height difference ) the flow begins to trickle into the upper tank, then everything becomes complicated to describe analytically. That is my point. as you keep building pressure in the lower, sure...flow is diverting to the upper, but also the upper is pushing back, developing its own pressure at a different rate.
This was also my perspective on the situation. When I came upon this project, the bottom tank was at least 90% full and the top tank virtually empty. Due to slow leak? Maybe. Due to what you describe above? Maybe. IDK. Experimentation is possible but quite problematic since it is desired to not shut system down for any length of time.
 
  • #15
Hankelec said:
IDK. Experimentation is possible but quite problematic since it is desired to not shut system down for any length of time.
I meant experiment at small scale. You can buy some relatively cheap bladder tanks used in residential potable water systems at the local hardware store, or online.

Possibly it's just malfunction that is causing the issue, but the math surrounding the problem is complicated enough IMO not to be absolutely sure of the scale of effects.

If the others have firsthand experience with the exact scenario and they say it's always small, then the math reduces, and the problem goes away.

Are there check valves in each branch? If not, is the top tank to slowly draining into the bottom tank after the valve on the main fill line is closed? Lets say the effects during filling are small as suggested. Then at the end of filling you have a head imbalance of 5 ft which will initiate flow from the top to the bottom tank. Calculating equilibrium of the system should be far more accessible than the dynamics of filling the system.
 
Last edited:
  • Like
Likes Hankelec
  • #16
Hankelec said:
When I came upon this project, the bottom tank was at least 90% full and the top tank virtually empty.
This does not agree with the tank theory shown in Post #13. If the air bladder of a tank was properly precharged to 28 PSI, then a full tank must be at about 50 PSI, and and empty tank about 30 PSI. But both tanks are connected with a pipe, so they must be at the same pressure. Something is not right, which raises some questions:

1) How do you know the water level in each tank?
2) Did you check the precharge pressure in each tank with the system empty?
3) What was the pressure in each tank at the time mentioned in Post #14? Measured at the air filler.
4) Have you confirmed that each tank has a properly functioning bladder? Bladders can fail by leaking or sticking.

General observation: Whenever two observations disagree, or theory disagrees with observations, it is necessary to learn more about what is really happening.
 
  • Like
Likes Lnewqban
  • #17
I used work-energy to find the equilibrium state of two identical tanks with identical initial conditions:

##P_o## is the initial pressure inside each tank
##V_o## is the initial volume of ideal gas at ##P_o## in each tank
##z## is the initial height of water in each tank relative to the bottom of each tank.
##A## is the cross-sectional area
##H## is the elevation difference of the tanks
##\rho## the density of water

At time ##t=0## the hypothetical valve isolating them is opened and the system is allowed to establish equilibrium. For the arbitrary parameters I chose this resulted in the lower tank ( beginning at ##z = 0.5 \rm{m}## ) having a final height of nearly ##0.7 \rm{m}##, and the upper ( also beginning at ##z = 0.5 \rm{m}## ) having a final height of ##0.3 \rm{m}##.

The intersection of ##F(z_1)## with the abscissa is the final height for ##z_1##.

1691277506500.png


If you give the parameters for your actual system of tanks, I can check what the theoretical final state is?
 
  • #18
Just to be more descriptive about the method, the system is taken to be the mass of fluid in each tank. The pressure in each tank is responsible for the external work on the system:

Referencing the diagram in #11, defining ##\uparrow^+##, apply Work -Energy:

$$ -A \left( \int P(z_1)dz_1 + \int P(z_2)dz_2 \right) = \rho A g z_2 ( H+\frac{z_2}{2} ) - \rho A g z ( H+\frac{z}{2} ) + \frac{1}{2} \rho A g z_1^2 - \frac{1}{2} \rho A g z^2 $$

Expanding the RHS:

$$ -A \left( \int P(z_1)dz_1 + \int P(z_2)dz_2 \right) = \rho A g \left( H z_2 + \frac{z_2^2}{2} + \frac{z_1^2}{2} - \overbrace{ z \left( H+ \frac{z}{2} \right) + \frac{z^2}{2} }^{\text{const.}} \right) $$

From Continuity:

$$A( z- z_2) = A( z_1-z )$$

$$ \implies z_2 = 2 z - z_1 $$

$$ \implies dz_2 = -dz_1 $$

Substitute to get everything in terms of ##z_1##

$$ -A \left( \int P(z_1) dz_1 - \int P( 2 z - z_1 ) dz_1 \right) = \rho A g \left( H (2 z - z_1)+ \frac{ (2 z - z_1)^2}{2} + \frac{z_1^2}{2} - \overbrace{ z \left( H+ \frac{z}{2} \right) + \frac{z^2}{2} }^{ \text{const.}} \right) $$

Take the derivative of both sides w.r.t. ##z_1##:

$$ \frac{d}{dz_1}\left[-A \left( \int P(z_1)dz_1 - \int P( 2 z - z_1 )dz_1 \right) \right] = \frac{d}{dz_1}\left[\rho A g \left( H (2 z - z_1)+ \frac{(2 z - z_1)^2}{2} + \frac{z_1^2}{2} - \overbrace{ z \left( H+ \frac{z}{2} \right) + \frac{z^2}{2} }^{\text{const.}} \right) \right] $$

$$ \implies -A ( P(z_1) - P(2z-z_1) ) = \rho g ( -H -( 2z -z_1) + z_1) = \rho g ( 2( z_1-z) - H )$$

Dividing by the area of the tank ##A## and taking the negative of both sides:

$$ P(z_1) - P(2z -z_1 ) = \rho g (2(z-z_1)+ H ) $$

Assuming isothermal process to equilibrium (after a long time the temperature returns to ambient in each tank) we have that generally:

$$ P(x) = \frac{P_o V_o}{V_o - Ax}$$

Subbing in that result:

$$ \frac{P_o V_o}{V_o - Az_1} - \frac{P_o V_o}{V_o - 2Az + Az_1} = \rho g ( 2( z-z_1) + H ) $$

Then just pull everything to the LHS to graphically find ##z_1## which satisfies:

$$ \frac{P_o V_o}{V_o - Az_1} - \frac{P_o V_o}{V_o - 2Az + Az_1} -\rho g ( 2( z-z_1) + H ) = 0 $$

Given the unsymmetric state of equilibrium, what is the reasoning behind proposing that the tanks will receive equal flowrates in the dynamic case? It seems clear to me that there would be significant bias toward the lower tank filling at a greater rate, because that is where they are going to end up regardless. The friction present in the piping would also drive the bias further in the dynamic case.
 
Last edited:
  • #19
erobz said:
Given the unsymmetric state of equilibrium, what is the reasoning behind proposing that the tanks will receive equal flowrates in the dynamic case? It seems clear to me that there would be significant bias toward the lower tank filling at a greater rate, because that is where they are going to end up regardless. The friction present in the piping would also drive the bias further in the dynamic case.

I didn't follow the math you posted step by step so I can't argue whether it's correct or not. I'll try to revisit the thread when I get the chance to check the math. Still, I believe I can answer your question (marked in bold) at least qualitatively. I think I understood the situation when I read post #13 by @jrmichler.

I see it like this:
  1. The flow will be towards the tank with the lowest pressure at its intake because the mass flow will follow the path of least resistance.
    NOTE: I consider the intake to be the T fitting where the flow separates.
  2. The mass flow towards that tank will increase its pressure.
  3. The situation will continue until the pressure at the intake in the lowest pressure tank equalizes with the intake pressure at the other tank.
  4. At that point, the mass flow will divide equally between both tanks.
By the way, I think that implies the pressure at the tanks changes linearly with the mass flow. If that is not the case, then the mass flows will keep oscillating around the equal mass flow point repeating the described cycle (1→4). Again, I'm only tackling the qualitative aspect of this situation so I don't have the math to back that claim at the moment but I'm fairly confident about this.

I guess a somewhat valid analogy is to imagine a simple DC circuit powered by a battery and two resistances and two condensers in parallel. Make the condensers equal but have different resistance values. In the dynamic analysis, we would see how initially most of the current flows through the smaller resistance but then the condenser charges and pushes back so more current will start flowing through the other one.
A possible error in the described cycle (1→4) is that I said ALL the fluid goes through the smallest resistance path. I'm pretty sure that doesn't happen in the electrical analogy. Only MOST of the current goes through the least resistance path so I feel like the same would happen in the fluid case although I can't really tell without doing the math.

Feel free to point out any errors in what I posted. It seems the OP had enough already and it's possible there are no truly practical applications (changes too small to be problematic or even noticeable) for what we're discussing. Still, the problem is interesting and poses a chance to learn more about this kind of system I have no experience in.

I'll try to post a diagram describing the tanks filling up and the DC circuit analogy so that it's easier to visualize what I'm seeing in my head but drawings take a time I don't have right now. Maybe I can do it before hitting the bed.
 
  • #20
Juanda said:
I didn't follow the math you posted step by step so I can't argue whether it's correct or not. I'll try to revisit the thread when I get the chance to check the math.
If I need to clarify more let me know.

Juanda said:
I guess a somewhat valid analogy is to imagine a simple DC circuit powered by a battery and two resistances and two condensers in parallel. Make the condensers equal but have different resistance values. In the dynamic analysis, we would see how initially most of the current flows through the smaller resistance but then the condenser charges and pushes back so more current will start flowing through the other one.

I think the effective circuit is not so straightforward as that.

At a minimum we need resistances from the pipe proportional to the current in each branch with different proportionalities representing the vicious effects. The liquid head accumulating is not a resistor, it is a gravitational capacitor, and the gas is a capacitor of different characteristics. The liquid capacitor of the upper branch is initially charged to a different value than the liquid capacitor of the lower branch. This is due to the static liquid head differential of ##H##. The gas capacitors in each branch are initially equivalent in charge. Maybe someone could figure out the necessary characteristics of each component and model it in SPICE or something. I don't have that skill.

I still don't think the branches get equal flow at any point in time, and when the feed voltage to the circuit is switched off the parallel branches which form a closed loop (having differing accumulated charge in each of the capacitors) will equilibrate.
 
Last edited:
  • #21
Juanda said:
I'll try to post a diagram describing the tanks filling up and the DC circuit analogy so that it's easier to visualize what I'm seeing in my head but drawings take a time I don't have right now. Maybe I can do it before hitting the bed.

1691439872385.png


erobz said:
If I need to clarify more let me know.
Let's hope I can track the math by myself. I just need some free time first so I can focus on it. I'll let you know if I get lost at some point.

erobz said:
I think the effective circuit is not so straightforward as that.

At a minimum we need resistances from the pipe proportional to the current in each branch with different proportionalities representing the vicious effects. The liquid head accumulating is not a resistor, it is a gravitational capacitor, and the gas is a capacitor of different characteristics. The liquid capacitor of the upper branch is initially charged to a different value than the liquid capacitor of the lower branch. This is due to the static liquid head differential of ##H##. The gas capacitors in each branch are initially equivalent in charge. Maybe someone could figure out the necessary characteristics of each component and model it in SPICE or something. I don't have that skill.
Maybe using "analogy" was taking it too far. I was just trying to show an example of something with similar behavior where previous knowledge could help to have an intuition. (I assume this kind of electrical circuit is something more common in universities than the filling tanks under study)

erobz said:
I still don't think the branches get equal flow at any point in time.
Well, they will tend to have the same flow. We know for sure at t→INF the flow will be the same in both branches because it stops in both when equilibrium is reached. It happens when the pump can't keep pushing fluid in.
The take-home message is that both branches approach that state and the tank with the lower intake pressure will approach it faster also increasing its pressure faster up to the point where they're both filling up at about the same rate because they have about the same pressure at the intake.

erobz said:
and when the feed voltage to the circuit is switched off the parallel branches which form a closed loop (having differing accumulated charge in each of the capacitors) will equilibrate.
If you consider the DC circuit is not useful to transmit the concept I feel we should drop it altogether and focus back on the tanks. I didn't intend it to be a 1:1 translation where mathematical tools can be easily reused but a mere example of a similar case for a conceptual understanding. I think the confusion comes from my use of "analogy" too lightly.
Regarding the "switched off" circuit you mentioned, the similarities with the hydraulic case break apart even further since the circuit is capable to consume the potential with the resistances but the tanks can't really get rid of the built-up pressure to the same degree.
1691441547074.png
To conclude, I believe both branches will approach the same rate but I'd need to first run the math myself and check the expressions and plots of the mass flow in each branch to judge how true is that claim.
 
  • #22
Juanda said:
Well, they will tend to have the same flow. We know for sure at t→INF the flow will be the same in both branches because it stops in both when equilibrium is reached. It happens when the pump can't keep pushing fluid in.
The take-home message is that both branches approach that state and the tank with the lower intake pressure will approach it faster also increasing its pressure faster up to the point where they're both filling up at about the same rate because they have about the same pressure at the intake.
With a real pump, the flowrates tend to zero in each branch as time increases, sure... However, that is not the same as saying:

$$ \int_0^{t} Q_{l} ~dt = \int_0^{t} Q_{u} ~dt $$

Anyhow, unless my physics in #18 is incorrect, if they have the same conditions the instant the pump is turned off, they will equalize to have differing volumes of water in each tank.
 
  • #23
erobz said:
$$ \int_0^{t} Q_{l} ~dt = \int_0^{t} Q_{u} ~dt $$
Just to be clear, that's not my claim. What I'm saying is that in the beginning the flow rates will differ significantly and they will tend to equalize as time goes on.
At the very limit (t→+INF), they will be the same (zero) but from the very beginning they will approach one another because a greater rate will flow into the tank with smaller pressure which will increase its pressure. It's a kind of feedback cycle that tends to equalize the flow rates.
Only after solving the math I will be able to assess at which point in time the flow rates will be almost equal. Right now this is just a hypothesis.
Actually, even after solving the mass I guess we could still call it hypothesis since we didn't perform any test to verify it but that's out of the scope.
Anyways, I'll try to solve it with some code in the following days and maybe we can arrive at some conclusion after discussing the results we get.
 
  • Like
Likes erobz
  • #24
Maybe look up municipal water flow dividers. I think they sound like what you are looking for.
 
  • Like
Likes Hankelec
  • #25
@Juanda Putting the exact math in #18 aside for a moment, I'm trying to figure out whether or not you agree with me that the following system cannot possibly be in a state of equilibrium with the valve shut?

1691587880636.png
 
Last edited:
  • #26
erobz said:
@Juanda Putting the exact math in #18 aside for a moment, I'm trying to figure out whether or not you agree with me that the following system cannot possibly be in a state of equilibrium with the valve shut?

View attachment 330318
Yep. It can't be in the way you show it but it can be in equilibrium.
The water level in the upper tank will be lower and the pressurized air in it will have a lower pressure too compared with the tank below.
I couldn't yet get my hands on this. Time keeps rolling and I'm struggling to keep up with it. There are actually a few posts on my waitlist in the same situation. I should have some free time next week so I'll try to invest some time in this.
I plan to start this by defining an equilibrium point by doing Bernoulli on the different paths (A→j and B→j) so that I know the water levels (##z_{1i} \ z_{2i}##) and the air pressures (##P_{1i} \ P_{2i}##) at the beginning. Then, open the valve with an arbitrary pump and see how the system evolves with time.
1691777645248.png

I'll probably need to check some exercises related to pumps to remind myself how to do this kind of thing but I believe I should be able to handle it.
By the way, I plan to ignore losses in pipes due to friction. I feel it's already hard the way it is and having to deal with Reynolds in a time-varying problem is something I'd rather avoid. We can consider the pipes to be pretty short and wide to consider the losses to be negligible anyways and still get some knowledge out of the situation.
NOTE: I just realized that if I consider the pipes to be very wide I would need to consider the volume they can store so let's just say I ignore Reynolds because of magic instead of the reasoning previously explained. I don't think it's relevant for the thing we are interested in anyways.
 
  • #27
Juanda said:
I plan to start this by defining an equilibrium point by doing Bernoulli on the different paths (A→j and B→j) so that I know the water levels (##z_{1i} \ z_{2i}##) and the air pressures (##P_{1i} \ P_{2i}##) at the beginning. Then, open the valve with an arbitrary pump and see how the system evolves with time.

So I could solve this part which is the part that requires no extra research from me. If you ( @erobz ) have doubts about equilibrium with the valve being closed being possible as you posted in #25 I believe this should clarify it.

First, let's define some constraints.
  • The valve is shut.
  • The mass of water is constant and known → the mass that's not in one tank must be in the other. (The pipes must be full at all times for that last statement to be true which depends on the geometry so I'm forcing it to be true with this statement. You can imagine pipes being very small in volume compared with the tanks.)
  • Water is incompressible. (I'm fairly certain it's a necessary assumption but not 100% sure about it. I'll throw it in there just in case.)
  • Both tanks are the same size. Lenght ##L## and cross-section ##A##.
  • Both tanks contain the same amount of air which is constant and known.
  • Temperature is constant and known.
  • Ideal gasses.
There are 4 things we wish to know about the equilibrium point. The pressure of air in both tanks and their water levels. Therefore, we need 4 equations. I'll be referencing this diagram:
Juanda said:
Eq 1: Bernoulli from A→B
$$P_2 + \rho g(z_2+H)=P_1+\rho gz_1$$

Eq 2: Ideal gas law in Tank 1
$$P_1V_1=mRT \ \left \{ V_1=A(L-z_1) \right \}$$

Eq 3: Ideal gas law in Tank 2
$$P_2V_2=mRT \ \left \{ V_2=A(L-z_2) \right \}$$

Eq 4: Constant mass of water and pipes being full means the water levels are related since water is incompressible and the pipes are always full
$$z_1+z_2=K$$

With those 4 equations, the equilibrium point for ##P_1 \ P_2 \ z_1 \ z_2## can be found for the valve being shut.

Solving the equations shouldn't be too hard but I didn't do it yet.
From the physical perspective ##K## must be smaller than ##L##. I'm curious about what will happen if I make ##K## greater than that limit but I guess some values will go negative/complex (either the heights or pressures). Since I'm planning to solve the system numerically I'm also wondering if there's only one solution. I'm pretty sure there's only ONE valid solution but having ##P(A(L-z))## makes me think that there'll be more mathematical solutions either with complex numbers or negative solutions without physical meaning.

Anyways, let me know if you don't agree with this equilibrium point. If we agree, we can move on to the "pumping water in" scenario.
 
  • #28
Juanda said:
So I could solve this part which is the part that requires no extra research from me. If you ( @erobz ) have doubts about equilibrium with the valve being closed being possible as you posted in #25 I believe this should clarify it.
I think you are confused about my doubts...

My doubt is not that an equilibrium exists ( I solved for it myself in #18 ), if you set ##K = 2 z_o##, and use my numbers I'm fairly confident you are going to get the same result. That being said, yours is much more concise. My doubts were that the OP could "have their cake and eat it too". Meaning... depending on the exact meaning of "approximately" in the OP, they can't have both the same volume of water and the same pressure; that is not a valid point of equilibrium.

The question really is...can we manufacture a solution where both the pressure and volume vary less than (stated in the OP) 10% from each other, or some nominal desired value for each quantity. The next question is whether or not we can get to the required initial conditions dynamically.
 
  • #29
erobz said:
I think you are confused about my doubts...
Seems like that. From #25 I got a different idea.

erobz said:
My doubt is not that an equilibrium exists ( I solved for it myself in #18 ), if you set ##K = 2 z_o##, and use my numbers I'm fairly confident you are going to get the same result. That being said, yours is much more concise.
Maybe. I'd need to go into the details of what you posted to be sure. Anyways, since you're OK with the approach I posed I'd try to keep working on top of that when analyzing the dynamic case if I manage to put my head on it.

erobz said:
My doubts were that the OP could "have their cake and eat it too". Meaning... depending on the exact meaning of "approximately" in the OP, they can't have both the same volume of water and the same pressure; that is not a valid point of equilibrium.

The question really is...can we manufacture a solution where both the pressure and volume vary less than (stated in the OP) 10% from each other, or some nominal desired value for each quantity. The next question is whether or not we can get to the required initial conditions dynamically.
Just with passive elements there always be a % difference between tanks. If that's within the target 10% difference you mentioned (and from post #13 by jrmichlel it could be a realistic scenario) then there's nothing extra to manufacture. Just put together the pipes and tanks and it'll be ready to go.
If the height difference between tanks were much larger and you are interested in them being the same at all times I believe you'd need a second pump to feed the higher tank. Maybe active valves with feedback from the tanks' state could do the same but I'm not sure.
 
  • #30
Juanda said:
Maybe. I'd need to go into the details of what you posted to be sure.
I just used work-energy; I effectively derived a reduced form of Bernoulli (hydrostatic) from scratch.

$$ \frac{P_1}{\rho g } + z_1 = \frac{P_2}{\rho g } + z_2 + H $$

If ## z_1 + z_2 = 2z \implies z_2 = 2z - z_1##:

$$ \frac{P_1}{\rho g } + z_1 = \frac{P_2}{\rho g } + 2z - z_1 + H $$

$$ \frac{P_1}{\rho g } -\frac{P_2}{\rho g } = 2( z - z_1) + H $$

$$P_1 - P_2 =\rho g ( 2(z -z_1) + H)$$

Subbing in the relationship for the pressures in each tank:

$$P_1 = \frac{P_oV_o}{V_o - Az_1}$$

$$P_2 = \frac{P_oV_o}{V_o - Az_2} = \frac{P_oV_o}{V_o - A( 2z- z_1 )} =\frac{P_oV_o}{V_o - 2Az + Az_1 } $$

That is Identical to the result in #18

erobz said:
$$ \frac{P_o V_o}{V_o - Az_1} - \frac{P_o V_o}{V_o - 2Az + Az_1} = \rho g ( 2( z-z_1) + H ) $$
Juanda said:
Anyways, since you're OK with the approach I posed I'd try to keep working on top of that when analyzing the dynamic case if I manage to put my head on it.
You shouldn't use Bernoulli's for what you want to do with a pump model. The flow will not be steady, Bernoulli's is valid for steady flow. What I was proposing in #11 was for constant total volumetric flowrate, where the transient effects were expected to be small because they were tied only to the change in flow to each tank. You are talking about transient total volumetric flowrate on top of that. I don't trust that for what you wish to solve.

If you were solving this for steady flow using Bernoulli's it results in a system of non-linear equations that is usually solved by linearization and iteration ( i.e. The Hardy-Cross Method ).

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).
 
Last edited:
  • #31
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).
I was wrong about this, it gets messy.

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:
  • Informative
Likes Juanda
  • #32
O
erobz said:
I meant experiment at small scale. You can buy some relatively cheap bladder tanks used in residential potable water systems at the local hardware store, or online.

Possibly it's just malfunction that is causing the issue, but the math surrounding the problem is complicated enough IMO not to be absolutely sure of the scale of effects.

If the others have firsthand experience with the exact scenario and they say it's always small, then the math reduces, and the problem goes away.

Are there check valves in each branch? If not, is the top tank to slowly draining into the bottom tank after the valve on the main fill line is closed? Lets say the effects during filling are small as suggested. Then at the end of filling you have a head imbalance of 5 ft which will initiate flow from the top to the bottom tank. Calculating equilibrium of the system should be far more accessible than the dynamics of filling the system.
 
  • #33
erobz. I appreciate the suggestions and interest generated on this question.I have gone ahead with the process of lowering the static start pressure in the upper tank by 3 psi. Fill rate seemed acceptable for both tanks. When initially seeing this system, the lower tank appeared 100% full and the upper tank sounded virtually empty. And like you mentioned, after pressure pump stops, it might be the case that a gravity flow is initiated. I will have an opportunity to check on these tanks and if that is a problem, I will create a thread. One tank is on a stand above the other due to space constraints. It was added after initial installation of system. So at present the system is running a producing a satisfactory amount of RO water. Thanks to all who replied. I am uncertain if this thread will be closed and archived but I will occasionally visit to see if it has or if other conclusions have been drawn. I am also uncertain if the electronics analogy is useful with this problem as I don't know what would represent gravity in the pump off state.
 
  • #34
Hankelec said:
I am also uncertain if the electronics analogy is useful with this problem as I don't know what would represent gravity in the pump off state.
Gravitational potential is a capacitor of some variety. While the pump is on and there is flow in the system gravitational potential is accumulating. It is capable of being returned to the lower tank at later time. This is indeed what happens when the pump is switched off, unless the tanks end the cycle in equilibrium.

Anyhow the analogy is not so important at this point. I believe I have captured the necessary system of equations in #31. I doubt turning them into electrical components makes the system any easier to physically solve.
 
  • #35
P.s. I would not make a new thread about the same topic. The mods don’t like that. They probably wont shut it down to new replies for some time, so I wouldn’t worry about that too much.
 

Similar threads

  • Classical Physics
Replies
11
Views
980
  • General Engineering
Replies
3
Views
2K
  • Classical Physics
Replies
3
Views
639
  • Engineering and Comp Sci Homework Help
2
Replies
56
Views
2K
  • Mechanical Engineering
Replies
24
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
735
  • General Engineering
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
2
Replies
49
Views
2K
  • Mechanical Engineering
Replies
3
Views
880
  • General Engineering
Replies
4
Views
2K
Back
Top