Added extra test case for closing wells.

This commit is contained in:
Joakim Hove
2014-10-14 16:59:35 +02:00
parent 3a48ace17f
commit 72cc1630f0
2 changed files with 100 additions and 1 deletions

View File

@@ -567,6 +567,28 @@ BOOST_AUTO_TEST_CASE(OpmCode) {
ParserPtr parser(new Parser());
boost::filesystem::path scheduleFile("testdata/integration_tests/SCHEDULE/wells_group.data");
DeckPtr deck = parser->parseFile(scheduleFile.string());
ScheduleConstPtr sched(new Schedule(deck));
BOOST_CHECK_NO_THROW( new Schedule(deck) );
}
BOOST_AUTO_TEST_CASE(WELLS_SHUT) {
ParserPtr parser(new Parser());
boost::filesystem::path scheduleFile("testdata/integration_tests/SCHEDULE/SCHEDULE_SHUT_WELL");
DeckPtr deck = parser->parseFile(scheduleFile.string());
ScheduleConstPtr sched(new Schedule(deck));
WellConstPtr well1 = sched->getWell("W1");
WellConstPtr well2 = sched->getWell("W2");
WellConstPtr well3 = sched->getWell("W3");
BOOST_CHECK_EQUAL( WellCommon::StatusEnum::OPEN , well1->getStatus(1));
BOOST_CHECK_EQUAL( WellCommon::StatusEnum::OPEN , well2->getStatus(1));
BOOST_CHECK_EQUAL( WellCommon::StatusEnum::OPEN , well3->getStatus(1));
BOOST_CHECK_EQUAL( WellCommon::StatusEnum::SHUT , well1->getStatus(2));
BOOST_CHECK_EQUAL( WellCommon::StatusEnum::SHUT , well2->getStatus(2));
BOOST_CHECK_EQUAL( WellCommon::StatusEnum::SHUT , well3->getStatus(2));
}

View File

@@ -0,0 +1,77 @@
START
10 MAI 2007 /
SCHEDULE
WELSPECS
'W1' 'GROUP1' 30 37 1* 'OIL' 7* /
'W2' 'GROUP1' 30 37 1* 'OIL' 7* /
'W3' 'GROUP1' 30 37 1* 'OIL' 7* /
/
COMPDAT
'W1' 10 32 1 1 'OPEN' 1* 118.457 0.216 12025.229 2* 'Z' 24.860 /
'W2' 10 32 1 1 'OPEN' 1* 118.457 0.216 12025.229 2* 'Z' 24.860 /
'W3' 10 32 1 1 'OPEN' 1* 118.457 0.216 12025.229 2* 'Z' 24.860 /
/
TSTEP -- Step 1
10 /
WCONPROD
'W1' 'OPEN' 'ORAT' 20000 4* 1000 /
'W2' 'OPEN' 'ORAT' 20000 4* 1000 /
'W3' 'OPEN' 'ORAT' 20000 4* 1000 /
/
TSTEP -- Step 2
10 /
--!-----------------------------------------------------------------
WCONHIST
'W1' 'OPEN' 'ORAT' 0.000 0.000 0.000 5* /
/
WCONPROD
'W1' 'OPEN' 'RESV' 999 3* 123 100 /
/
WELOPEN
'W1' 'SHUT' /
/
--!-----------------------------------------------------------------
WCONHIST
'W2' 'OPEN' 'ORAT' 0.000 0.000 0.000 5* /
/
WELOPEN
'W2' 'OPEN' /
/
WCONPROD
'W2' 'SHUT' /
/
--!-----------------------------------------------------------------
WCONPROD
'W3' 'OPEN' 'RESV' 999 3* 123 100 /
/
WELOPEN
'W3' 'OPEN' /
/
WCONHIST
'W3' 'SHUT' /
/
END