- 积分
- 84
- 注册时间
- 2022-8-22
- 积分
- 84
 
|
我之后又随便编写了一个闪蒸进口物料的模型,还是可以在ACM中运行,导入ASpenPLUs后还是出口流股流量为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 |
|