Flash Calculations

This file helps you to compute the split in vapour and mole fractions in vapour and liquid
911.0 次下载
更新时间 2015/12/12

查看许可证

Flash function helps to perform the pT flash calculation for alkanes
assuming ideal gas and liquid behaviour.
[a,x,y] = flash(comp,z,p,T)
a = mole fraction of vapour.
x = mole fraction in liquid
y = mole fraction in vapour
z = mole fraction in mixture (make sure that sum(z) = 1)
comp = Cells of strings of the name of the constituents of the gas
p = pressure
T = Temperature
Example.

If we have a mixture of methane, ethane and propane, with mole fractions of
0.3,0.4,0.2 in a mixture and we want to obtain a flash result at T 200k,
pressure of 20bars

We simply define
p = 20;
T = 200;
z = [0.3,0.4,0.2];
comp = {{'methane'},{'ethane'},{'propane'}};

and then call
[a,x,y] = flash(comp,z,p,T)

引用格式

Lateef Adewale Kareem (2024). Flash Calculations (https://www.mathworks.com/matlabcentral/fileexchange/54479-flash-calculations), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Chemistry 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0