How can I model a two tank system to control fluid level in tank 2?

AI Thread Summary
The discussion focuses on modeling a two-tank system to maintain a constant fluid level in tank 2 while controlling the inflow from tank 1. The user seeks to balance the inflow with a constant outflow from tank 2, considering the effects of pressure differentials and flow rates. Key considerations include the impact of valve settings and system losses on flow rates, as well as the need for a control valve that adjusts based on feedback. The user is also exploring the dynamics of the system, including damping and gain, while grappling with the complexity of the equations involved. Assistance is requested to better understand these concepts and refine the model.
KybKyb
Messages
3
Reaction score
0
Hello!

I'm currently working on a project where i am supposed to model a two tank system. The only information the project gave me, was that i have to control the fluid level in tank 2 (what kind of fluid
is up to me). I have tried to put the problem in a practical contex, where i have imagined a simplified water treatment process.

Water flows into tank 1, which i control. I'm assuming tank1 is bigger than tank 2. And there is a valve on the "connection" between tank 1 and tank 2 that i control. The flow out of tank 2 is constant and i do not control it.

The problem:
1) I want to find the water flow in, that allows for the fluid level in tank 2 to be constant, even with constant flow out.
2) Also, as a second problem, i want to simulate som disturbances in the water flow in, so that i am forced to use the water in tank 1 as a buffer (the goal is still to maintain a constant level in tank 2, while constant flow out)

Could someone help me/help get me started? Kinda new to this way of thinking, and I am finding it somewhat difficult.

Thanks in advance!

EDIT: fixed attached picture
 

Attachments

  • Picture1.png
    Picture1.png
    1.4 KB · Views: 806
Last edited:
Engineering news on Phys.org
Am I missing something? To keep the level in tank 2 constant, set the flow in from tank 1 equal to the flow out of tank 2.
 
I may have done a poor job of formulating my problem , sorry about that. I'm going to sit down and think this through, i see your point, its actually pretty simple :P
 
Here's a couple things to ponder:

1) As the water level lowers, the differential pressure will decrease between the water's surface (atmospheric) and the point just before discharge (if the valve were closed), causing a lower volumetric flow rate, thus filling the second tank slower than it would with a full tank.

2) If you want to maintain a constant flow rate, then in industry you would use a control valve which was programmed to open and close based on pressure (or volumetric flow) feedback from the system. Valves have what are called Cv curves, which tell you basically how much pressure loss you'll see for a given flow (the actual Cv, flow coefficient, value tells you how many gallons per minute of water will result in a 1 psi pressure drop through the valve at a given % open or setting)

As the flow rate increases, the fluid will see greater losses across the valve, decreasing the differential pressure and thus reducing the maximum theoretical flowrate (if you just used the simplified Bernoulli equation).

Additionally, the higher velocity of the fluid when the tank is full will cause more losses in the transfer piping and any other fittings (elbows, flowmeters, additional valves, etc) and further reduce the theoretical max. flow rate.

Basically, in designing a gravity system with constant flow rate, you'd have to consider all losses and the effect that all variables (i.e. fluid height, valve opening) will have on the system performance.
 
Thanks for the replies, and sorry for not answering, have been quite busy with the project. I have coupled the tanks a bit different, and the result was a second order system. I am struggling with findint the damping, and the gain of the system, based on the following equations:

dH1/dt=(1/(PA1)*(f_in-R1(H1-H2)

dH2/dt=(1/(PA2)*(R1(H1-H2)-(R2*H2)

R1, R2, 1/PA1 and 1/PA2 are just constants. f_in flows into the top of tank 1.

I'm not sure if I've bit of more than i can chew, I've found a approximation of the time constant simply by looking at the graph, but any help with the damping and gain would be appreciated :)

EDIT: fixed attachments
 

Attachments

  • Tanks.jpg
    Tanks.jpg
    3.2 KB · Views: 724
Hi all, I have a question. So from the derivation of the Isentropic process relationship PV^gamma = constant, there is a step dW = PdV, which can only be said for quasi-equilibrium (or reversible) processes. As such I believe PV^gamma = constant (and the family of equations) should not be applicable to just adiabatic processes? Ie, it should be applicable only for adiabatic + reversible = isentropic processes? However, I've seen couple of online notes/books, and...
I have an engine that uses a dry sump oiling system. The oil collection pan has three AN fittings to use for scavenging. Two of the fittings are approximately on the same level, the third is about 1/2 to 3/4 inch higher than the other two. The system ran for years with no problem using a three stage pump (one pressure and two scavenge stages). The two scavenge stages were connected at times to any two of the three AN fittings on the tank. Recently I tried an upgrade to a four stage pump...
Back
Top