Allow for different surface densities in well perforations

The surface density input in well_perforation_densities() in
WellDensitySegmented.hpp is changed from one value pr. phase to one
value pr phase and perforation. This allow for different densities in
different perforation. The test is changed accordingly.
This commit is contained in:
Tor Harald Sandve
2015-10-06 10:38:36 +02:00
parent 23f4f48df5
commit 7bdd91d78f
4 changed files with 29 additions and 8 deletions
+10 -1
View File
@@ -88,7 +88,16 @@ BOOST_AUTO_TEST_CASE(TestPressureDeltas)
const std::vector<double> rsmax_perf = { 50, 50, 50, 50, 50, 50, 50, 50, 50, 50 };
const std::vector<double> rvmax_perf = { 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01 };
const std::vector<double> z_perf = { 10, 30, 50, 70, 90, 10, 30, 50, 70, 90 };
const std::vector<double> surf_dens = { 1000.0, 800.0, 10.0 };
const std::vector<double> surf_dens = { 1000.0, 800.0, 10.0,
1000.0, 800.0, 10.0,
1000.0, 800.0, 10.0,
1000.0, 800.0, 10.0,
1000.0, 800.0, 10.0,
1000.0, 800.0, 10.0,
1000.0, 800.0, 10.0,
1000.0, 800.0, 10.0,
1000.0, 800.0, 10.0,
1000.0, 800.0, 10.0};
const double gravity = Opm::unit::gravity;
std::vector<double> cd =