ChE 201 - Spring 2005 - Individual Project #1 - 20 points

m-files Due at Start of Class on Tuesday, January 11, 2005

Write one function m-file that calculates the velocity (meters per second) of and the kinetic energy (Joules per second) transported by a flowing stream in a pipe.  The function m-file should have the following input arguments:  pipe diameter (in inches), volumetric flow rate (in liters per minute), and liquid density (in g per cc).  The function m-file should return the answers to the m-file that calls it.  The function m-file should receive no input from the keyboard via “input” statements, dialog boxes, etc.  All input should be as arguments (the variable names that appear inside the parentheses in the first line of the function m-file).  The function m-file should not contain any sort of print statements or other mechanism for communicating directly with the user.

Now, consider the following streams. 

o       Benzene at 20 C flowing through a 1-inch schedule 40 steel pipe.

o       Water at 20 C flowing through a 1-inch schedule 40 steel pipe.

Write one m-file that will produce one graph that shows the kinetic energy transported by these two streams for flow rates of 0 – 20 liters per minute.  This m-file should use your function m-file each time it needs to calculate a kinetic energy.  Note that the velocity of liquid in a pipe cannot exceed the speed of sound in that liquid.  The speed of sound depends on the nature of the liquid and on the temperature.  Given the speed of sound, your m-file should automatically check whether this limit will be exceeded, and limit the maximum volumetric flow rate to prevent this.

You will need to look up things like the densities of the liquid, the speed of sound, and the inner diameter of the pipe.  Assume the liquid is incompressible.  Please include all the values you use in the m-file; don’t make me type them in.  Put all of these “assignment statements” in one place near the start of the m-file, and use meaningful variable names and comments to make it easy for a user to find the correct values and change them if he/she chooses.  Be sure to produce a quality graph, with axes scaled so that the plots fill the space, appropriate spacing and significant figures on the axis labels, and an informative legend.

Submit your m-files via e-mail to valy@bobcat.ent.ohiou.edu. Include your initials in the filenames.  Include your name and e-mail address as comments in each file. 

I recommend consulting the grading rubric.

·  Send mail to Dr. Young: valy@bobcat.ent.ohiou.edu.

·  Return to ChE 201 home page.
 

 

(Last modified on 01/02/05)