- 积分
- 6
- 注册时间
- 2017-4-30
- 积分
- 6

|
10韶华币
本帖最后由 系统工程学渣 于 2017-4-30 20:38 编辑
LZ模拟乙醇-水溶液进入一板式精馏塔进行分离,先使用ASPEN plus进稳态模拟,相关设计已经给定好,模拟成功,然后flow driven 导入dynamic,先使用script脚本初始化后,设置task后,运行时提示Failed to find a variable (inactive variable/non-local parameter referenced by a task?
相关参数已经设定好,详见图片
Task Startup Runs At 0.1
//进料
STREAMS("FEED").FvR: 0.01;
wait for BLOCKS("COLUMN_SumpLC").PV >= 0.275;
STREAMS("FEED").FvR: 0;
//开冷却水
BLOCKS("COLUMN").Condenser(1).Fl_med: 21.5;
BLOCKS("COLUMN_CondPC").AutoMan:0;
BLOCKS("COLUMN_CondPC").SP: 1.013;
Ramp(BLOCKS("COLUMN").QRebR.value,0.002,0.2);
//回流罐液位投自动
wait for BLOCKS("COLUMN_DrumLC").PV >= 0.2;
BLOCKS("COLUMN_DrumLC").AutoMan: 0;
BLOCKS("COLUMN_DrumLC").OPmax: 17.2527;
wait 0.1;
//加大冷却水
BLOCKS("COLUMN").Condenser(1).Fl_med: 23;
Ramp(BLOCKS("COLUMN").QRebR.value,0.00766587,5);
wait for BLOCKS("COLUMN").Stage(1).y("C2H5OH") >= 0.815;
//进料和采出
Ramp(STREAMS("TOP-L").FmR, 1.813, 0.05);
Ramp(STREAMS("FEED").FvR, 0.015, 0.05);
BLOCKS("COLUMN").Condenser(1).Fl_med: 23;
wait for BLOCKS("COLUMN_SumpLC").PV >= 0.25;
BLOCKS("COLUMN_SumpLC").AutoMan: 0;
wait 20;
pause;
End
谢谢大家的帮助
|
|