set water saturations for numerical aquifer cells to be 1.

This commit is contained in:
Kai Bao 2020-11-09 14:04:01 +01:00
parent 1d5b60a600
commit 80c0073a69
2 changed files with 10 additions and 7 deletions

View File

@ -2735,13 +2735,6 @@ private:
auto& elemFluidState = initialFluidStates_[elemIdx];
elemFluidState.assign(equilInitializer.initialFluidState(elemIdx));
}
const auto& aquifer_cells = simulator.vanguard().eclState().aquifer().numericalAquifers().aquiferCells();
const auto& vanguard = simulator.vanguard();
size_t numCartDof = vanguard.cartesianSize();
std::vector<int> cartesianToCompressedElemIdx(numCartDof, -1);
for (unsigned elemIdx = 0; elemIdx < numElems; ++elemIdx)
cartesianToCompressedElemIdx[vanguard.cartesianIndex(elemIdx)] = elemIdx;
}
void readEclRestartSolution_()

View File

@ -62,6 +62,7 @@
#include <type_traits>
#include <utility>
#include <vector>
#include <string>
namespace Opm {
@ -1937,6 +1938,15 @@ private:
} */
saturations = psat.deriveSaturations(pos, eqreg, ptable);
if (aquifer.hasCell(global_index)) {
saturations = {0.0, 0.0, 1.0};
const auto& aqu_cell = aquifer.getCell(global_index);
std::ostringstream ss;
ss << "FOR AQUIFER CELL AT { " << aqu_cell.I + 1 << " " << aqu_cell.J + 1 << " "
<< aqu_cell.J + 1 << " } OF NUMERICAL AQUIFER " << aqu_cell.aquifer_id << " , "
<< "WATER SATURATION IS SET TO BE UNITY";
OpmLog::info(ss.str());
}
pressures = psat.correctedPhasePressures();
const auto temp = this->temperature_[cell];