(Cpo) Oel
(Cpo) Oel
Objective:
To determine solution of any assigned chemical equipment by using MATLAB
functions and programs.
Problem Statement:
In this open-ended lab, we are asked to create a program in MATLAB and find a
solution using functions and variables. The specs of the Problem are as given below:
Procedure:
1. First of all run MATLAB and open a new script file.
2. Now define the function “ %vapor-liquid equilibrium ” according to the
problem statement.
3. Now create a program that will calculate the mole fraction of each chemical
in streams.
4. After save the program in your directory in form of script file as “vpequil.m”.
5. Now issue the command ‘ vpequil(0.2) ‘ in command window to calculate
values.
6. Finally add semicolons and and use the fzero function to find values of mole
fraction.
7. The above steps would look likes this in MATLAB.
Result:
We have created a MATLAB program and used fzero function to obtain a solution and calculate
the value of mole fraction of any chemical in flowing stream .