mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added an extra data file with an extra well
This commit is contained in:
parent
9f948329c4
commit
74c3040c43
@ -174,8 +174,6 @@ void check_controls_epoch1( struct WellControls ** ctrls) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(Constructor_Works) {
|
BOOST_AUTO_TEST_CASE(Constructor_Works) {
|
||||||
Opm::EclipseGridParser Deck("wells_manager_data.data");
|
Opm::EclipseGridParser Deck("wells_manager_data.data");
|
||||||
Opm::GridManager gridManager(Deck);
|
Opm::GridManager gridManager(Deck);
|
||||||
@ -212,11 +210,15 @@ BOOST_AUTO_TEST_CASE(New_Constructor_Works) {
|
|||||||
Opm::WellsManager wellsManager(eclipseState, 0, Deck, *gridManager.c_grid(), NULL);
|
Opm::WellsManager wellsManager(eclipseState, 0, Deck, *gridManager.c_grid(), NULL);
|
||||||
Opm::WellsManager oldWellsManager(Deck, *gridManager.c_grid(), NULL);
|
Opm::WellsManager oldWellsManager(Deck, *gridManager.c_grid(), NULL);
|
||||||
|
|
||||||
const Wells* wells = wellsManager.c_wells();
|
std::cout << "Checking new well structure, epoch 0" << std::endl;
|
||||||
wells_static_check( wells );
|
wells_static_check( wellsManager.c_wells() );
|
||||||
check_controls_epoch0( wells->ctrls );
|
|
||||||
|
|
||||||
BOOST_CHECK(wells_equal(wells, oldWellsManager.c_wells()));
|
std::cout << "Checking old well structure, epoch 0" << std::endl;
|
||||||
|
wells_static_check( oldWellsManager.c_wells() );
|
||||||
|
|
||||||
|
check_controls_epoch0( wellsManager.c_wells()->ctrls );
|
||||||
|
|
||||||
|
BOOST_CHECK(wells_equal(wellsManager.c_wells(), oldWellsManager.c_wells()));
|
||||||
}
|
}
|
||||||
|
|
||||||
Deck.setCurrentEpoch(1);
|
Deck.setCurrentEpoch(1);
|
||||||
@ -224,11 +226,41 @@ BOOST_AUTO_TEST_CASE(New_Constructor_Works) {
|
|||||||
Opm::WellsManager wellsManager(eclipseState, 1,Deck, *gridManager.c_grid(), NULL);
|
Opm::WellsManager wellsManager(eclipseState, 1,Deck, *gridManager.c_grid(), NULL);
|
||||||
Opm::WellsManager oldWellsManager(Deck, *gridManager.c_grid(), NULL);
|
Opm::WellsManager oldWellsManager(Deck, *gridManager.c_grid(), NULL);
|
||||||
|
|
||||||
const Wells* wells = wellsManager.c_wells();
|
std::cout << "Checking new well structure, epoch 1" << std::endl;
|
||||||
wells_static_check( wells );
|
wells_static_check( wellsManager.c_wells() );
|
||||||
check_controls_epoch1( wells->ctrls );
|
|
||||||
|
|
||||||
BOOST_CHECK(wells_equal(wells, oldWellsManager.c_wells()));
|
std::cout << "Checking old well structure, epoch 1" << std::endl;
|
||||||
|
wells_static_check( oldWellsManager.c_wells() );
|
||||||
|
|
||||||
|
check_controls_epoch1( wellsManager.c_wells()->ctrls );
|
||||||
|
|
||||||
|
BOOST_CHECK(wells_equal( wellsManager.c_wells(), oldWellsManager.c_wells()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(New_Constructor_Works_ExpandedData) {
|
||||||
|
|
||||||
|
Opm::ParserPtr parser(new Opm::Parser());
|
||||||
|
Opm::EclipseStateConstPtr eclipseState(new Opm::EclipseState(parser->parseFile("wells_manager_data_expanded.data")));
|
||||||
|
|
||||||
|
Opm::EclipseGridParser Deck("wells_manager_data_expanded.data");
|
||||||
|
Opm::GridManager gridManager(Deck);
|
||||||
|
|
||||||
|
Deck.setCurrentEpoch(0);
|
||||||
|
{
|
||||||
|
Opm::WellsManager wellsManager(eclipseState, 0, Deck, *gridManager.c_grid(), NULL);
|
||||||
|
Opm::WellsManager oldWellsManager(Deck, *gridManager.c_grid(), NULL);
|
||||||
|
|
||||||
|
BOOST_CHECK(wells_equal(wellsManager.c_wells(), oldWellsManager.c_wells()));
|
||||||
|
}
|
||||||
|
|
||||||
|
Deck.setCurrentEpoch(1);
|
||||||
|
{
|
||||||
|
Opm::WellsManager wellsManager(eclipseState, 1,Deck, *gridManager.c_grid(), NULL);
|
||||||
|
Opm::WellsManager oldWellsManager(Deck, *gridManager.c_grid(), NULL);
|
||||||
|
|
||||||
|
BOOST_CHECK(wells_equal( wellsManager.c_wells(), oldWellsManager.c_wells()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
72
tests/wells_manager_data_expanded.data
Executable file
72
tests/wells_manager_data_expanded.data
Executable file
@ -0,0 +1,72 @@
|
|||||||
|
OIL
|
||||||
|
GAS
|
||||||
|
WATER
|
||||||
|
|
||||||
|
DIMENS
|
||||||
|
10 10 5 /
|
||||||
|
|
||||||
|
GRID
|
||||||
|
|
||||||
|
DXV
|
||||||
|
10*1000.0 /
|
||||||
|
|
||||||
|
DYV
|
||||||
|
10*1000.0 /
|
||||||
|
|
||||||
|
DZV
|
||||||
|
10.0 20.0 30.0 10.0 5.0 /
|
||||||
|
|
||||||
|
SCHEDULE
|
||||||
|
|
||||||
|
WELSPECS
|
||||||
|
'INJ1' 'G' 1 1 8335 'GAS' /
|
||||||
|
'PROD1' 'G' 10 10 8400 'OIL' /
|
||||||
|
/
|
||||||
|
|
||||||
|
COMPDAT
|
||||||
|
'INJ1' 1 1 1 2 'OPEN' 1 10.6092 0.5 /
|
||||||
|
'INJ1' 1 1 3 5 'OPEN' 1 12.6092 0.5 /
|
||||||
|
'INJ1' 1 1 2* 'OPEN' 1 14.6092 0.5 /
|
||||||
|
'PROD1' 10 3 3 3 'OPEN' 0 10.6092 0.5 /
|
||||||
|
/
|
||||||
|
|
||||||
|
WCONPROD
|
||||||
|
'PROD1' 'OPEN' 'ORAT' 20000 4* 1000 /
|
||||||
|
/
|
||||||
|
|
||||||
|
WCONINJE
|
||||||
|
'INJ1' 'GAS' 'OPEN' 'RATE' 100 200 400 /
|
||||||
|
/
|
||||||
|
|
||||||
|
|
||||||
|
DATES
|
||||||
|
1 'FEB' 2000 /
|
||||||
|
/
|
||||||
|
|
||||||
|
WELSPECS
|
||||||
|
'INJ1' 'G3' 1 1 8335 'GAS' /
|
||||||
|
'QNJ2' 'G3' 1 1 8335 'GAS' /
|
||||||
|
/
|
||||||
|
|
||||||
|
|
||||||
|
COMPDAT
|
||||||
|
'QNJ2' 3 4 1 2 'OPEN' 1 10.6092 0.5 /
|
||||||
|
'QNJ2' 4 4 3 5 'OPEN' 1 12.6092 0.5 /
|
||||||
|
/
|
||||||
|
|
||||||
|
WCONPROD
|
||||||
|
'PROD1' 'OPEN' 'RESV' 999 3* 123 100 /
|
||||||
|
/
|
||||||
|
|
||||||
|
WCONINJE
|
||||||
|
'INJ1' 'WATER' 'OPEN' 'RESV' 10 20 40 /
|
||||||
|
'QNJ2' 'WATER' 'OPEN' 'RESV' 7 33 39 /
|
||||||
|
/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
TSTEP
|
||||||
|
14.0
|
||||||
|
/
|
||||||
|
|
||||||
|
END
|
Loading…
Reference in New Issue
Block a user