Add WGPRS+WGPRF keywords
This commit is contained in:
parent
1e776429f5
commit
72a08beb39
@ -533,6 +533,9 @@ static const std::unordered_map< std::string, ofun > funs = {
|
|||||||
{ "WGPR", rate< rt::gas, producer > },
|
{ "WGPR", rate< rt::gas, producer > },
|
||||||
{ "WNPR", rate< rt::solvent, producer > },
|
{ "WNPR", rate< rt::solvent, producer > },
|
||||||
|
|
||||||
|
{ "WGPRS", rate< rt::dissolved_gas, producer > },
|
||||||
|
{ "WGPRF", sub( rate< rt::gas, producer >, rate< rt::dissolved_gas, producer > ) },
|
||||||
|
|
||||||
{ "WLPR", sum( rate< rt::wat, producer >, rate< rt::oil, producer > ) },
|
{ "WLPR", sum( rate< rt::wat, producer >, rate< rt::oil, producer > ) },
|
||||||
{ "WWPT", mul( rate< rt::wat, producer >, duration ) },
|
{ "WWPT", mul( rate< rt::wat, producer >, duration ) },
|
||||||
{ "WOPT", mul( rate< rt::oil, producer >, duration ) },
|
{ "WOPT", mul( rate< rt::oil, producer >, duration ) },
|
||||||
|
@ -339,6 +339,12 @@ WLPT
|
|||||||
WLPTH
|
WLPTH
|
||||||
/
|
/
|
||||||
|
|
||||||
|
WGPRS
|
||||||
|
/
|
||||||
|
|
||||||
|
WGPRF
|
||||||
|
/
|
||||||
|
|
||||||
-- Injection Rates
|
-- Injection Rates
|
||||||
WWIR
|
WWIR
|
||||||
W_3
|
W_3
|
||||||
|
@ -275,6 +275,11 @@ BOOST_AUTO_TEST_CASE(well_keywords) {
|
|||||||
BOOST_CHECK_CLOSE( 10.3, ecl_sum_get_well_var( resp, 1, "W_1", "WNPR" ), 1e-5 );
|
BOOST_CHECK_CLOSE( 10.3, ecl_sum_get_well_var( resp, 1, "W_1", "WNPR" ), 1e-5 );
|
||||||
BOOST_CHECK_CLOSE( 20.3, ecl_sum_get_well_var( resp, 1, "W_2", "WNPR" ), 1e-5 );
|
BOOST_CHECK_CLOSE( 20.3, ecl_sum_get_well_var( resp, 1, "W_2", "WNPR" ), 1e-5 );
|
||||||
|
|
||||||
|
BOOST_CHECK_CLOSE( 10.4, ecl_sum_get_well_var( resp, 1, "W_1", "WGPRS" ), 1e-5 );
|
||||||
|
BOOST_CHECK_CLOSE( 20.4, ecl_sum_get_well_var( resp, 1, "W_2", "WGPRS" ), 1e-5 );
|
||||||
|
BOOST_CHECK_CLOSE( 10.2 - 10.4, ecl_sum_get_well_var( resp, 1, "W_1", "WGPRF" ), 1e-5 );
|
||||||
|
BOOST_CHECK_CLOSE( 20.2 - 20.4, ecl_sum_get_well_var( resp, 1, "W_2", "WGPRF" ), 1e-5 );
|
||||||
|
|
||||||
/* Production totals */
|
/* Production totals */
|
||||||
BOOST_CHECK_CLOSE( 10.0, ecl_sum_get_well_var( resp, 1, "W_1", "WWPT" ), 1e-5 );
|
BOOST_CHECK_CLOSE( 10.0, ecl_sum_get_well_var( resp, 1, "W_1", "WWPT" ), 1e-5 );
|
||||||
BOOST_CHECK_CLOSE( 20.0, ecl_sum_get_well_var( resp, 1, "W_2", "WWPT" ), 1e-5 );
|
BOOST_CHECK_CLOSE( 20.0, ecl_sum_get_well_var( resp, 1, "W_2", "WWPT" ), 1e-5 );
|
||||||
|
Loading…
Reference in New Issue
Block a user