油氣儲運網(wǎng)

標(biāo)題: 批次跟蹤模型 [打印本頁]

作者: 流年堪佳    時間: 2015-7-22 18:57
標(biāo)題: 批次跟蹤模型
建了一個批次跟蹤的模型,但怎么也調(diào)試不好,模型已經(jīng)上傳,請求幫助指導(dǎo)

gz.rar

189.24 KB, 下載次數(shù): 729


作者: qitianyanluo    時間: 2015-8-6 15:05
首先inprep文件高程設(shè)置應(yīng)該改成1.515
+ TABLE
+ PIPE.DIST ELEV MAOP
  0 600.066 1180
  1.515 100.066 1180
其次定義intran文件定義次序有點問題,給你參考一個入門教程上的
DEFINE BATCH_CTRL = 0
DEFINE.SEQUENCE L_GAS (_SIZE_)
{ OPEN B_GASOLINE
POKE B_GASOLINE:CF = 0
WAIT.UNTIL (B_GASOLINE:CF >= _SIZE_) /*累計流量
SET BATCH_CTRL = 1
CLOSE B_GASOLINE }
DEFINE.SEQUENCE L_DIESEL (_SIZE_)
{ OPEN B_DIESEL
POKE B_DIESEL:CF = 0
WAIT.UNTIL (B_DIESEL:CF >= _SIZE_) /*累計流量
SET BATCH_CTRL = 0
CLOSE B_DIESEL }
DEFINE.SEQUENCE L_WATER (_SIZE_)
{ OPEN B_WATER
POKE B_WATER:CF = 0
WAIT.UNTIL (B_WATER:CF >= _SIZE_) /*累計流量
SET BATCH_CTRL = 2
CLOSE B_WATER }
DEF.SEQ LBA (_SIZE_)
{ WAIT.UNTIL(BATCH_CTRL = 0 )
SUB.SEQ L_GAS (_SIZE_ )
WAIT.UNTIL(BATCH_CTRL = 1 )
SUB.SEQ L_WATER (_SIZE_ )
WAIT.UNTIL(BATCH_CTRL = 2 )
SUB.SEQ L_DIESEL (_SIZE_ ) }
WHENEVER ((N3:NFLU = WATER & B1_WATER:ST = CLOSED ))
{OPEN B1_WATER
CLOSE B1_GASOLINE
CLOSE B1_DIESEL }
WHENEVER ((N3:NFLU = GASOLINE & B1_GASOLINE:ST = CLOSED ))
{OPEN B1_GASOLINE
CLOSE B1_WATER
CLOSE B1_DIESEL }
WHENEVER ((N3:NFLU = DIESEL & B1_DIESEL:ST = CLOSED ))
{OPEN B1_DIESEL
CLOSE B1_WATER
CLOSE B1_GASOLINE }

作者: 流年堪佳    時間: 2015-8-7 16:56
qitianyanluo 發(fā)表于 2015-8-6 15:05
首先inprep文件高程設(shè)置應(yīng)該改成1.515
+ TABLE
+ PIPE.DIST ELEV MAOP

其實我最開始就是按照你給的intran文件那樣設(shè)置的,但是也不行,我后來才改成這樣的,但還是不行。還有什么修改建議,請不吝賜教。
作者: 724037414    時間: 2023-2-12 23:19
最后解決了么?

作者: 祁罪西樓    時間: 2023-8-13 16:56
我一直有個問題,sps要編程,在哪編啊




歡迎光臨 油氣儲運網(wǎng) (http://black-hills-tours.com/) Powered by Discuz! X3.4