not turning of injector because of defaulted rates.

it must be a limit to turn it off. The old implementation make it
impossible to have a injector with only bhp control.
This commit is contained in:
Kai Bao
2018-02-08 17:00:58 +01:00
parent cc4e56cc18
commit 3c8c65b65c
3 changed files with 46 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ DATES -- 2,3
/
WELSPECS
'W_1' 'OP' 30 37 1* 'OIL' 7* / Crap1
'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
-- Note defaulted reference depth for W_3
@@ -130,5 +130,25 @@ DATES -- 12
/
WCONINJE
'W_1' 'WATER' 'SHUT' 'RATE' 20000.000 * 123 678 4* /
'W_1' 'WATER' 'OPEN' 'RATE' 20000.000 * 123 678 4* /
/
DATES -- 13
10 OCT 2008 /
/
WCONINJE
'W_1' 'WATER' 'OPEN' 'RATE' 0.000 * 123 678 4* /
/
DATES -- 14
10 NOV 2008 /
/
WCONINJE
'W_1' 'WATER' 'OPEN' 'BHP' 2* 100 /
/
DATES -- 15
10 DEC 2008 /
/

View File

@@ -158,11 +158,27 @@ BOOST_AUTO_TEST_CASE(WellTestOpen) {
{
auto wells = sched.getOpenWells(12);
BOOST_CHECK_EQUAL( 3U , wells.size() );
BOOST_CHECK_EQUAL( well2 , wells[1] );
BOOST_CHECK_EQUAL( well3 , wells[2] );
}
{
auto wells = sched.getOpenWells(13);
BOOST_CHECK_EQUAL( 2U , wells.size() );
BOOST_CHECK_EQUAL( well2 , wells[0] );
BOOST_CHECK_EQUAL( well3 , wells[1] );
}
{
auto wells = sched.getOpenWells(14);
BOOST_CHECK_EQUAL( 3U , wells.size() );
BOOST_CHECK_EQUAL( well2 , wells[1] );
BOOST_CHECK_EQUAL( well3 , wells[2] );
}
}
@@ -282,12 +298,14 @@ BOOST_AUTO_TEST_CASE(WellTesting) {
}
BOOST_CHECK_EQUAL( WellCommon::SHUT , well1->getStatus( 12 ));
BOOST_CHECK_EQUAL( WellCommon::OPEN , well1->getStatus( 12 ));
BOOST_CHECK( well1->getInjectionPropertiesCopy(12).hasInjectionControl(WellInjector::RATE ));
BOOST_CHECK( !well1->getInjectionPropertiesCopy(12).hasInjectionControl(WellInjector::RESV));
BOOST_CHECK( well1->getInjectionPropertiesCopy(12).hasInjectionControl(WellInjector::THP ));
BOOST_CHECK( well1->getInjectionPropertiesCopy(12).hasInjectionControl(WellInjector::BHP ));
BOOST_CHECK_EQUAL( WellCommon::SHUT , well1->getStatus( 13 ));
BOOST_CHECK_EQUAL( WellCommon::OPEN , well1->getStatus( 14 ));
}
}