lilichina 发表于 2022-11-23 16:25:52

Aspen custom modeler模型导出问题


我在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

姚老棍子 发表于 2022-11-23 16:25:52

{:1110_549:}

hgw04044217 发表于 2022-11-23 16:25:52

ACM都是纯粹联立方程法。{:1110_549:}

lilichina 发表于 2022-11-23 16:25:52

hgw04044217 发表于 2022-11-24 09:28
ACM都是纯粹联立方程法。

那导入到Aspen Plus为什么会有问题啊,能方便解答一下吗
页: [1]
查看完整版本: Aspen custom modeler模型导出问题