Use cell temperature in perforated cell to compute reservoir rates

This commit is contained in:
Tor Harald Sandve
2024-08-01 11:14:29 +02:00
parent 2b147efe78
commit 5f8916c0c3
8 changed files with 36 additions and 15 deletions
+5 -1
View File
@@ -158,6 +158,10 @@ namespace {
std::vector<double>(setup.grid.c_grid()->number_of_cells,
100.0*Opm::unit::barsa);
const auto ctemp =
std::vector<double>(setup.grid.c_grid()->number_of_cells,
25+Opm::unit::degCelsiusOffset);
auto wells = setup.sched.getWells(timeStep);
pinfos.resize(wells.size());
std::vector<std::reference_wrapper<Opm::ParallelWellInfo<double>>> ppinfos;
@@ -171,7 +175,7 @@ namespace {
++pw;
}
state.init(cpress, setup.sched,
state.init(cpress, ctemp, setup.sched,
wells, ppinfos,
timeStep, nullptr, setup.well_perf_data, setup.st);