Wednesday, October 24, 2012

Generation of Equilibrium Curve for the Use of McCabe-Thiele method

As I did separation homework, questions sometimes asked to plot given data points to construct equilibrium curve before doing anything. This can produce errors because hand construction of curve is not accurate enough. In order to avoid this and get to the real question faster, I developed a .m Matlab file to generate the curve automatically.

Users need to input liquid and vapor compositions. Then curve will be plotted for further use. I am not sure if this is actually helping you. But I feel the joy doing it.

Below is an example and the consequent curve.

Step 1. Open and run the Equilibrium.m file


Step 2. Input liquid compositions from lowest to highest. Remember to enter 0 in the beginning and 1 at the end. This should be in a vector form, which is in a pair of [ ] and separated by a space. For example,

Step 3. Input vapor compositions in the same manner as Step 2. For example,

Step 4. An equilibrium curve should be generated like the following graph.

If you need to download the .m file. You can do so by going to the following link. Thank you.

No comments:

Post a Comment