0% found this document useful (0 votes)
23 views2 pages

(Cpo) Oel

The objective of this open-ended lab (OEL) is to create a MATLAB program that determines the solution to any assigned chemical equipment problem. Students are asked to define a vapor-liquid equilibrium function, write a program to calculate mole fractions in streams, save the program as a script file called "vpequil.m", run the command "vpequil(0.2)" to calculate values, and use the fzero function to find mole fraction values. The result is a MATLAB program that uses fzero to obtain a solution and calculate mole fractions in a flowing stream.

Uploaded by

ABDUL SUBHAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

(Cpo) Oel

The objective of this open-ended lab (OEL) is to create a MATLAB program that determines the solution to any assigned chemical equipment problem. Students are asked to define a vapor-liquid equilibrium function, write a program to calculate mole fractions in streams, save the program as a script file called "vpequil.m", run the command "vpequil(0.2)" to calculate values, and use the fzero function to find mole fraction values. The result is a MATLAB program that uses fzero to obtain a solution and calculate mole fractions in a flowing stream.

Uploaded by

ABDUL SUBHAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Chemical Process Optimization CH-404

Open Ended Lab (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 .

You might also like