Merge pull request #1499 from totto82/addControlWELTARG

Add production control from WELTARG
This commit is contained in:
Joakim Hove
2020-02-21 13:25:20 +01:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -1063,6 +1063,10 @@ BOOST_AUTO_TEST_CASE(createDeckWithWeltArg) {
const auto& well_1 = schedule.getWell("OP_1", 1);
const auto wpp_1 = well_1.getProductionProperties();
BOOST_CHECK_EQUAL(wpp_1.WaterRate.get<double>(), 0);
BOOST_CHECK (wpp_1.hasProductionControl( Opm::Well::ProducerCMode::ORAT) );
BOOST_CHECK (!wpp_1.hasProductionControl( Opm::Well::ProducerCMode::RESV) );
const auto& well_2 = schedule.getWell("OP_1", 2);
const auto wpp_2 = well_2.getProductionProperties();
@@ -1076,6 +1080,10 @@ BOOST_AUTO_TEST_CASE(createDeckWithWeltArg) {
BOOST_CHECK_EQUAL(prod_controls.bhp_limit, 1900 * siFactorP);
BOOST_CHECK_EQUAL(prod_controls.thp_limit, 2000 * siFactorP);
BOOST_CHECK_EQUAL(prod_controls.vfp_table_number, 2100);
BOOST_CHECK (wpp_2.hasProductionControl( Opm::Well::ProducerCMode::ORAT) );
BOOST_CHECK (wpp_2.hasProductionControl( Opm::Well::ProducerCMode::RESV) );
}
BOOST_AUTO_TEST_CASE(createDeckWithWeltArgException) {