changing the counting of the schecule in SCHEDULE_WELLS2

basically, all the control keywords should be combined with the
TSTEP/DATES afterwards as a complete report step.
This commit is contained in:
Kai Bao
2018-02-14 09:09:27 +01:00
parent 3c8c65b65c
commit e76df698c6
2 changed files with 49 additions and 32 deletions

View File

@@ -1,16 +1,20 @@
SCHEDULE
DATES -- 1
-- 0
DATES
10 'JUN' 2007 /
/
DATES -- 2,3
-- 1
DATES
10 JLY 2007 /
-- 2
10 AUG 2007 /
/
/
WELSPECS
-- 3
WELSPECS
'W_1' 'OP' 30 37 1* 'OIL' 3* 'NO'/ Crap1
-- the spaces around the phase name are intentional!
'W_2' 'OP' 20 51 100 ' OIL ' 7* / Crap2 Crap3
@@ -24,8 +28,8 @@ WRFTPLT
'W_2' 'REPT' 'NO' 'NO' /
/
COMPDAT
-- WELL I J K1 K2 Sat. CF DIAM KH SKIN ND DIR Ro
COMPDAT
-- WELL I J K1 K2 Sat. CF DIAM KH SKIN ND DIR Ro
'W_1' 30 37 1 3 'OPEN' 1* 32.948 0.311 3047.839 2* 'X' 22.100 /
-- the spaces around the direction indicator are intentional!
'W_1' 31 37 14 14 'OPEN' 1* 19.731 0.311 1831.202 3.3 1* ' X ' 22.463 /
@@ -40,7 +44,7 @@ COMPDAT
WCONHIST
WCONHIST
-- the spaces around the names indicator are intentional!
-- they test that even padded quoted literals as arguments to WCONHIST and
-- friends are stripped correctly
@@ -50,105 +54,113 @@ WCONHIST
/
TSTEP -- 4
TSTEP
10 /
TSTEP -- 5
-- 4
TSTEP
10 /
-- 5
WRFTPLT
'W_2' 'NO' 'NO' 'NO' /
/
TSTEP -- 6
TSTEP
10 /
WCONHIST
-- 6
WCONHIST
'W_1' 'OPEN' 'ORAT' 14000.000 4.000 1.46402E+006 5* /
'W_2' 'OPEN' 'ORAT' 17998.000 2.000 1461075.000 5* /
'W_3' 'OPEN' 'ORAT' 17999.000 1.000 1471824.000 5* /
/
TSTEP - 7
TSTEP
3 /
-- 7
COMPDAT
'W_1' 31 37 14 14 'SHUT' 1* 19.731 0.311 1831.202 2* 'X' 22.463 /
/
WCONPROD
WCONPROD
'W_1' 'OPEN' 'ORAT' 11000.000 44.000 188 5* /
'W_2' 'OPEN' 'RESV' 17998.000 2.000 1461075.000 * 777 3* /
'W_3' 'OPEN' 'RESV' 17999.000 1.000 1471824.000 999 999 4* /
/
TSTEP -- 8
TSTEP
4 /
WCONHIST
-- 8
WCONHIST
'W_1' 'OPEN' 'ORAT' 13000.000 4.000 1.46402E+006 5* /
'W_2' 'OPEN' 'ORAT' 17998.000 2.000 6* /
'W_3' 'OPEN' 'ORAT' 17999.000 1.000 1471824.000 5* /
/
DATES -- 9
DATES
10 JLY 2008 /
/
/
WCONINJE
-- 9
WCONINJE
'W_1' 'WATER' 1* 'RESV' 20000.000 200000.000 5* /
/
DATES -- 10
DATES
10 AUG 2008 /
/
/
WCONINJE
-- 10
WCONINJE
'W_1' 'WATER' 1* 'RATE' 20000.000 200000.000 123 678 4* /
/
DATES -- 11
DATES
15 AUG 2008 /
/
/
-- 11
WCONINJH
'W_1' 'WATER' 1* 5000.000 50000.000 /
/
DATES -- 12
DATES
10 SEP 2008 /
/
/
WCONINJE
-- 12
WCONINJE
'W_1' 'WATER' 'OPEN' 'RATE' 20000.000 * 123 678 4* /
/
DATES -- 13
DATES
10 OCT 2008 /
/
-- 13
WCONINJE
'W_1' 'WATER' 'OPEN' 'RATE' 0.000 * 123 678 4* /
/
DATES -- 14
DATES
10 NOV 2008 /
/
-- 14
WCONINJE
'W_1' 'WATER' 'OPEN' 'BHP' 2* 100 /
/
DATES -- 15
DATES
10 DEC 2008 /
/

View File

@@ -141,6 +141,11 @@ BOOST_AUTO_TEST_CASE(WellTestOpen) {
auto well2 = sched.getWell( "W_2" );
auto well3 = sched.getWell( "W_3" );
{
auto wells = sched.getOpenWells( 0 );
BOOST_CHECK_EQUAL( 0U , wells.size() );
}
{
auto wells = sched.getOpenWells( 3 );
BOOST_CHECK_EQUAL( 1U , wells.size() );