Easy Tank Model? Outflow of tank proportional to volume of tank.

AI Thread Summary
The discussion focuses on modeling a tank system where water flows in and out at variable rates. The outflow is proportional to the tank's volume, leading to the differential equation dV/dt = fi(t) - kV, where k is the proportionality constant. For part (b), to maintain a constant desired volume, the constant k should equal the inflow rate divided by the desired volume. In part (c), if the inflow rate is sinusoidal, the same relationship applies, with k adjusted to match the sinusoidal inflow divided by the volume. The conversation emphasizes the importance of accurately defining the model and the relationships between inflow, outflow, and volume.
takbq2
Messages
32
Reaction score
0
1. Suppose we have a tank partially fi lled with water. There is a pipe
feeding water to the tank as a variable
ow rate and there is also a drain
pipe with a computer controlled variable valve hooked to a sensor in
the tank. The valve opens exactly enough to let water drain from the
tank at a rate proportional to the volume of the tank. The program
allows for us to set one number: the constant of proportionality. Write
a model for this physical problem. Be sure to de ne all the variables
in your model. (b) Suppose the in
ow rate is constant. How should
the proportionality constant in the control mechanism be set to keep
the tank near a constant desired volume? (c) Suppose the in flow rate
is periodic. To be de nite let's say the flow rate is sinusoidal and
known exactly, how should the constant of proportionality be set for
the controller to best keep the tank at a constant desired volume.




Homework Equations


flow in = flow out (if desired in this case)



The Attempt at a Solution



I call f0 the flow out and fi the flow in.
fi varies with, say, t.

f0 is proportional to V, the volume of the tank. The volume of the tank is: V = the volume initially in the tank, Vi, + fi(t) - f0.

f0 is proportional to V by c., but in my statement about the V, f0 is on that side so it can't really be in the model. If I could get help figuring out the model, I could answer parts (b) and (c) pretty easily it seems.

My first proportion was f0=Vc thus,
f0 = (Vi+fi(t))c

But I know this can't be right because in answering part b, fi would need to be as close as possible to f0, but any amount for c would mean that the amount out was equal t the entire amount in the tank.

help?
 
Physics news on Phys.org
Use the fact that the "inflow minus outflow" is equal to the rate of change in volume to write a simple DE (differential equation) for the system. The DE is the system model.
 
dV/dT = c(fi(t)-fo) ?

On second thought,

dV/dt = fi(t) - c*fo(t) ??

seems better, can someone verify this or otherwise please? Thanks!
 
Last edited:
What does "constant of proportionality" mean? Is it h, the target height of water?
 
takbq2 said:
dV/dT = c(fi(t)-fo) ?

On second thought,

dV/dt = fi(t) - c*fo(t) ??

seems better, can someone verify this or otherwise please? Thanks!

That's on the right track, but use the fact, in the problem statement, that the outflow is proportional to V so as to write your DE with just one input variable (f_i) and one state variable (V). The state variable V also happens to be the output variable in this case, which is nice.
 
uart said:
That's on the right track, but use the fact, in the problem statement, that the outflow is proportional to V so as to write your DE with just one input variable (f_i) and one state variable (V). The state variable V also happens to be the output variable in this case, which is nice.

I'm sorry, I'm confused. They are proportional so f_out = kV, thus,

dV/dt = fin(t) - k*V(t)

which is not right? >=\
 
Well I know it's not right. I'm just coming to the same answers over and over again because I've done it so much I can't think outside my current train of thought :S

It must be

q_in(t) = dV/dt + kV ... one final check on this please??
 
Last edited:
takbq2 said:
I'm sorry, I'm confused. They are proportional so f_out = kV, thus,

dV/dt = fin(t) - k*V(t)

which is not right? >=\

No that's the correct DE for the system.

Now for part b) you can take F_in as a constant and look at what value of "k" you require to keep V constant, say V_desired. Note that V = const means dV/dt = 0.
 
thanks a lot for your help, uart. I got part b, K would = Qin/V. Working on last part.. if it is a sinusoid nothing changes, you still want amount into equal amount out, so just sinusoid(t)_in/V = k for part (c) I would think
 
Last edited:
Back
Top