Analytic Solution for the Cylinder

Analytic Solution for the Cylinder

Although it may not be practical to solve most vessel drainage problems analytically, we can learn a lot about the behavior of such systems in general by examining the solution of a simple case. By using a computer algebra software package, such as MAPLE or MATHEMATICA.

Rearranging slightly Equation (17) from above, we have our mathematical model for the draining cylinder in a form suitable for submitting to MAPLE for solution.

[Eq. 19]

where we have defined R_c to be the radius of the cylinder whose volume will be exactly the same as that of the cone when the initial liquid level is y_0 when measured from the drain orifice.

Exercise: Verify that under these conditions the required cylinder radius is

[eq. for R_c

We assume that you are familiar with the basic operations in MAPLE. You will find that it is frequently a good idea to initialize your variables and parameters in MAPLE, since once numerical values are stored in these symbols, they remain there. That means, that if you want to start your calculations over, you need to re-initialize them. You'll see what we mean as you gain experience.

Below is a typical statement for initializing the MAPLE variables we will use: The MAPLE commands are:

EXECUTE SHOWCODE

If you like, you can simply use your mouse to `swipe' the commands in the browser window, then paste them in the MAPLE window. Then press the enter key.

Now to submit the equation we wish to solve to MAPLE, we define, for convenience, a variable called de1 in which to store the equation. The necessary MAPLE command is

EXECUTE SHOWCODE

Next we turn this ordinary differential equation over to the differential equation solver in MAPLE, called dsolve. We will will define a variable y1(t) to be the solution of de1.

EXECUTE SHOWCODE

The solution is not very elegant looking. In fact, it's virtually impossible to tell anything about the behavior of this physical system by looking at the solution to the mathematical model. If a picture is worth a thousand words, then a plot of the solution is worth about the same. So let's choose some numerical values and plot the results to see what the solution looks like.

First, let's tell MAPLE what R_c is in terms of variables we will use later in the calculations involving the cones.

EXECUTE SHOWCODE

Then let us choose some reasonable physical values in the SI system of units, with all lengths in meters and g in meters/sec2 .

EXECUTE SHOWCODE

Note carefully that we have made certain that the radius of the drain r_e is smaller than the minor radius of the cone r. Now to produce a plot let's call on MAPLE again. Since we have no prior knowledge of how long the cylinder might take to drain (in seconds), we might try solving algebraically for t in our solution from above. But we see right away that y(t)=y1(t) is quadratic in t in a very messy way. However, if we examine our solution in light of the fact that R_c > r_e so that R_c^4 >> r_e^4 , then we will find that the time for the cylinder to empty completely will be about 30 minutes, or 1760 seconds.

Exercise: Go back to Equation (17) and eliminate the radical in the denominator,

[sqrt expression]

and obtain the solution to this equation using MAPLE. (This model neglects the velocity of the free surface of the liquid in computing the exit velocity. That is, it assumes [expression for v_exit] .) Now use the resulting solution to estimate the drainage time by solving for t when y(t)=0. You can do this using the solve and evalf commands in MAPLE.

To produce the plot of y_1 vs t, the appropriate MAPLE statement is:

EXECUTE SHOWCODE


Boyd Gatlin
Associate Professor of Aerospace Engineering
Mississippi State University