Professional Documents
Culture Documents
The following are the five compounds and their constants for Antoine equation
Temp(◦C). Range
Compounds A B C
Tmin Tmax
Methane 6.84566 435.621 271.361 -183.48 -82.57
Reference:
CODE GENERATION
A script file was used to script and generate the code (program) for execution.
When a script file runs (is executed), MATLAB executes the commands in the order
they are written and the output is displayed in the command window.
STEPS
Input function was used in the code to make provision for the end user to insert the
different types of compounds and temperatures
If, elseif, else function was incorporated in this code to perform execution on the basis of
true and false statement when a user enters a command that meets the specifications of
the code.
Strcmp function is intended for comparison of two strings for equality. This return true if
every character of both strings is the same.
\n inserts a newline character.
This project aims at computing the pressure of five compounds namely (Methane, Propane,
Butane, Carbon dioxide, and Carbon monoxide) using the Soave’s equation of states and
with help of MATLAB software.
The name of the desired compound must be entered in inverted commas.
Temperature and specific volume of the gas is then provided by the user.
The values of m for the different compounds were manually calculated and then used directly
in the equation.
The following are the five compounds and their Tc, Pc, ώ values.