Well Injection history matching unit tests
This commit is contained in:
parent
e4c3bbd958
commit
d8b9c88164
@ -490,7 +490,6 @@ inline double sum( const std::vector< const data::Well* >& wells, rt phase ) {
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
inline double sum_rate( const std::vector< const data::Well* >& wells,
|
||||
rt phase,
|
||||
const double* conversion_table ) {
|
||||
|
@ -146,25 +146,28 @@ WLPTH
|
||||
WWIR
|
||||
W_3
|
||||
/
|
||||
WWIT
|
||||
W_3
|
||||
/
|
||||
WWIRH
|
||||
W_3
|
||||
/
|
||||
|
||||
WGIR
|
||||
W_3
|
||||
/
|
||||
|
||||
WGIRH
|
||||
WWITH
|
||||
W_3
|
||||
/
|
||||
|
||||
WGIT
|
||||
W_3
|
||||
/
|
||||
|
||||
WGIR
|
||||
W_3
|
||||
/
|
||||
WGIRH
|
||||
W_3
|
||||
/
|
||||
WGITH
|
||||
W_3
|
||||
/
|
||||
|
||||
-- Production Cummulatives
|
||||
WWPT
|
||||
@ -269,7 +272,7 @@ WCONHIST
|
||||
|
||||
WCONINJH
|
||||
-- Injection historical rates (water only, as we only support pure injectors)
|
||||
W_3 WATER STOP 259200 /
|
||||
W_3 WATER STOP 30.0 /
|
||||
/
|
||||
|
||||
TSTEP
|
||||
|
@ -339,6 +339,37 @@ BOOST_AUTO_TEST_CASE(W_WOG_PTH) {
|
||||
BOOST_CHECK_CLOSE( 2 * 20.2 / day, ecl_sum_get_well_var( resp, 1, "W_2", "WGPTH" ), 1e-5 );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(W_WG_IRH) {
|
||||
setup cfg( "sum_test_W_WG_IRH" );
|
||||
|
||||
out::Summary writer( cfg.es, cfg.config, cfg.name );
|
||||
writer.add_timestep( 1, 1, cfg.es, cfg.wells );
|
||||
writer.write();
|
||||
|
||||
auto res = readsum( cfg.name );
|
||||
const auto* resp = res.get();
|
||||
|
||||
BOOST_CHECK_CLOSE( 30.0, ecl_sum_get_well_var( resp, 0, "W_3", "WWIRH" ), 1e-5 );
|
||||
BOOST_CHECK_CLOSE( 0, ecl_sum_get_well_var( resp, 0, "W_3", "WGIRH" ), 1e-5 );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(W_WG_ITH) {
|
||||
setup cfg( "sum_test_W_WG_ITH" );
|
||||
|
||||
out::Summary writer( cfg.es, cfg.config, cfg.name );
|
||||
writer.add_timestep( 1, 1, cfg.es, cfg.wells );
|
||||
writer.add_timestep( 2, 1, cfg.es, cfg.wells );
|
||||
writer.write();
|
||||
|
||||
auto res = readsum( cfg.name );
|
||||
const auto* resp = res.get();
|
||||
|
||||
BOOST_CHECK_CLOSE( 30.0 / day, ecl_sum_get_well_var( resp, 0, "W_3", "WWITH" ), 1e-5 );
|
||||
BOOST_CHECK_CLOSE( 0, ecl_sum_get_well_var( resp, 0, "W_3", "WGITH" ), 1e-5 );
|
||||
BOOST_CHECK_CLOSE( 60.0 / day, ecl_sum_get_well_var( resp, 1, "W_3", "WWITH" ), 1e-5 );
|
||||
BOOST_CHECK_CLOSE( 0, ecl_sum_get_well_var( resp, 1, "W_3", "WGITH" ), 1e-5 );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(G_WOG_PR) {
|
||||
setup cfg( "sum_test_G_WOG_PR" );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user