get rid of deck usage setting up EclEpsScalingPointsInfo
This commit is contained in:
parent
477f2cd425
commit
c85243314b
@ -156,18 +156,13 @@ struct EclEpsScalingPointsInfo
|
|||||||
* I.e., the values which are used for the nested Fluid-Matrix interactions and which
|
* I.e., the values which are used for the nested Fluid-Matrix interactions and which
|
||||||
* are produced by them.
|
* are produced by them.
|
||||||
*/
|
*/
|
||||||
void extractUnscaled(const Opm::Deck& deck,
|
void extractUnscaled(const Opm::EclipseState& eclState,
|
||||||
const Opm::EclipseState& eclState,
|
|
||||||
unsigned satRegionIdx)
|
unsigned satRegionIdx)
|
||||||
{
|
{
|
||||||
// determine the value of the relative permeability below which the corresponding
|
// determine the value of the relative permeability below which the corresponding
|
||||||
// saturation is considered to be critical
|
// saturation is considered to be critical
|
||||||
krCriticalEps = Opm::ParserKeywords::TOLCRIT::VALUE::defaultValue;
|
const auto& satFuncCtrls = eclState.runspec().saturationFunctionControls();
|
||||||
if (deck.hasKeyword("TOLCRIT")) {
|
krCriticalEps = satFuncCtrls.minimumRelpermMobilityThreshold();
|
||||||
const Opm::DeckKeyword& tolcritKeyword = deck.getKeyword("TOLCRIT");
|
|
||||||
|
|
||||||
krCriticalEps = tolcritKeyword.getRecord(0).getItem("VALUE").getSIDouble(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
const auto& tables = eclState.getTableManager();
|
const auto& tables = eclState.getTableManager();
|
||||||
const TableContainer& swofTables = tables.getSwofTables();
|
const TableContainer& swofTables = tables.getSwofTables();
|
||||||
@ -179,9 +174,9 @@ struct EclEpsScalingPointsInfo
|
|||||||
const TableContainer& sof2Tables = tables.getSof2Tables();
|
const TableContainer& sof2Tables = tables.getSof2Tables();
|
||||||
|
|
||||||
|
|
||||||
bool hasWater = deck.hasKeyword("WATER");
|
bool hasWater = eclState.runspec().phases().active(Phase::WATER);
|
||||||
bool hasGas = deck.hasKeyword("GAS");
|
bool hasGas = eclState.runspec().phases().active(Phase::GAS);
|
||||||
bool hasOil = deck.hasKeyword("OIL");
|
bool hasOil = eclState.runspec().phases().active(Phase::OIL);
|
||||||
|
|
||||||
if (!hasWater) {
|
if (!hasWater) {
|
||||||
Swl = 0.0;
|
Swl = 0.0;
|
||||||
|
@ -143,7 +143,7 @@ public:
|
|||||||
if (!stone1exTable.empty())
|
if (!stone1exTable.empty())
|
||||||
stoneEtas.resize(numSatRegions);
|
stoneEtas.resize(numSatRegions);
|
||||||
for (unsigned satRegionIdx = 0; satRegionIdx < numSatRegions; ++satRegionIdx) {
|
for (unsigned satRegionIdx = 0; satRegionIdx < numSatRegions; ++satRegionIdx) {
|
||||||
unscaledEpsInfo_[satRegionIdx].extractUnscaled(deck, eclState, satRegionIdx);
|
unscaledEpsInfo_[satRegionIdx].extractUnscaled(eclState, satRegionIdx);
|
||||||
if (!stoneEtas.empty())
|
if (!stoneEtas.empty())
|
||||||
stoneEtas[satRegionIdx] = stone1exTable[satRegionIdx].eta;
|
stoneEtas[satRegionIdx] = stone1exTable[satRegionIdx].eta;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user