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

In summary, the water level in tank 2 is maintained constant by the flow in from tank 1. If the flow in from tank 1 is greater than the flow out of tank 2, then the water level in tank 2 will decrease. Additionally, if the flow in from tank 1 is greater than the flow out of tank 2 over a long period of time, then the water level in tank 2 will decrease faster.
  • #1
KybKyb
3
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: 751
Last edited:
Engineering news on Phys.org
  • #2
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.
 
  • #3
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
 
  • #4
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.
 
  • #5
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: 650

1. What is a two tank system?

A two tank system is a mathematical model used in fluid dynamics and control engineering to study the behavior of two interconnected tanks. It involves analyzing the flow of fluid between the tanks and how different factors affect the system's dynamics.

2. Why is modeling a two tank system important?

Modeling a two tank system allows scientists and engineers to understand and predict the behavior of the system under different conditions. This can help in designing and optimizing control strategies for real-world applications, such as water distribution systems and chemical processing plants.

3. What are the key components of a two tank system model?

The key components of a two tank system model include the tanks themselves, which represent the physical system, and the inlet and outlet valves, which control the flow of fluid between the tanks. Other important factors to consider are the fluid properties, initial conditions, and external disturbances.

4. How is a two tank system modeled mathematically?

A two tank system is typically modeled using a set of differential equations, which describe the rate of change of the fluid levels in each tank over time. These equations take into account the flow rates, tank volumes, and other parameters to simulate the behavior of the system.

5. What are some common applications of two tank system modeling?

Two tank system modeling has various applications in industries such as chemical engineering, water management, and environmental engineering. It is used to study and optimize systems that involve fluid storage, distribution, and transfer, such as water treatment plants, oil refineries, and sewage systems.

Similar threads

Replies
50
Views
3K
Replies
48
Views
9K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
960
Replies
2
Views
281
Replies
23
Views
3K
  • Introductory Physics Homework Help
Replies
12
Views
838
  • Engineering and Comp Sci Homework Help
Replies
11
Views
1K
  • Electrical Engineering
Replies
3
Views
794
  • General Engineering
Replies
15
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
Back
Top