using the depth specified by numerical aquifer

for numerical aquifer cells, instead of the depth calculated from the
grid geometry.
This commit is contained in:
Kai Bao
2021-02-22 23:15:26 +01:00
parent a5c5dc2ec9
commit 1d5b60a600
3 changed files with 28 additions and 1 deletions
+12 -1
View File
@@ -1591,6 +1591,7 @@ public:
}
//Querry cell depth, cell top-bottom.
// aquifer should enter here
updateCellProps_(gridView);
// Get the equilibration records.
@@ -1914,7 +1915,7 @@ private:
using CellID = std::remove_cv_t<std::remove_reference_t<
decltype(std::declval<CellPos>().cell)>>;
this->cellLoop(cells, [this, &eqreg, &ptable, &psat]
this->cellLoop(cells, [this, &eqreg, &ptable, &psat]
(const CellID cell,
Details::PhaseQuantityValue& pressures,
Details::PhaseQuantityValue& saturations,
@@ -1925,6 +1926,16 @@ private:
cell, cellCenterDepth_[cell]
};
/* const size_t global_index = UgGridHelpers::globalCell(grid)[cell];
if (aquifer.hasCell(global_index)) {
const auto& aqu_cells = aquifer.aquiferCells();
const auto& aqu_cell = aqu_cells.at(global_index);
pos = CellPos {
cell, aqu_cell.depth
};
} */
saturations = psat.deriveSaturations(pos, eqreg, ptable);
pressures = psat.correctedPhasePressures();