- 积分
- 84
- 注册时间
- 2022-8-22
- 积分
- 84
![Rank: 8](static/image/common/star_level3.gif) ![Rank: 8](static/image/common/star_level3.gif)
|
我在Aspen custom modeler里面建立了一个简单闪蒸模型,在ACM里运行没问题也有结果,导入到Aspen Plus里显示警告:总流股为0和质量不守恒。我的问题可能会出在哪里呢?以下是代码,大家帮忙看看,谢谢啦!
Model flashyy
ht as temperature;
hp as pressure;
lin as input mainport;
vout as output mainport;
lout as output mainport;
ht=lin.t;
hp=lin.p;
zinflash(componentlist) as molefraction;
zinflash=lin.z;
vfr(componentlist) as molefraction;
lfr(componentlist) as molefraction;
y(componentlist) as molefraction (description:"vapor phase mole fraction");
x(componentlist) as molefraction (description:"liquid phase mole fraction");
vf as vapfraction (description:"molar vapor phase fraction");
hv as enth_mol_vap (description:"vapor phase molar enthalpy");
hl as enth_mol_liq (description:"liquid phase molar enthalpy");
call(y,x,vf,hv,hl)=pFlash(ht,hp,zinflash);
vfr=y;
lfr=x;
lout.f=(1-vf)*Lin.f;
lout.z=lfr;
lout.T=hT;
lout.P=hP;
vout.f=vf*Lin.f;
vout.z=vfr;
vout.T=hT;
vout.P=hP;
End
|
|