mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
ebos: implement support for the VAPPARS keyword
This commit is contained in:
@@ -187,8 +187,9 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (gasDissolutionFactorOutput_()) {
|
if (gasDissolutionFactorOutput_()) {
|
||||||
|
Scalar SoMax = elemCtx.model().maxOilSaturation(globalDofIdx);
|
||||||
gasDissolutionFactor_[globalDofIdx] =
|
gasDissolutionFactor_[globalDofIdx] =
|
||||||
FluidSystem::template saturatedDissolutionFactor<FluidState, Scalar>(fs, gasPhaseIdx, pvtRegionIdx);
|
FluidSystem::template saturatedDissolutionFactor<FluidState, Scalar>(fs, gasPhaseIdx, pvtRegionIdx, SoMax);
|
||||||
Valgrind::CheckDefined(gasDissolutionFactor_[globalDofIdx]);
|
Valgrind::CheckDefined(gasDissolutionFactor_[globalDofIdx]);
|
||||||
}
|
}
|
||||||
if (gasFormationVolumeFactorOutput_()) {
|
if (gasFormationVolumeFactorOutput_()) {
|
||||||
|
|||||||
@@ -401,8 +401,12 @@ public:
|
|||||||
if (nextEpisodeIdx < numReportSteps) {
|
if (nextEpisodeIdx < numReportSteps) {
|
||||||
simulator.startNextEpisode(episodeLength);
|
simulator.startNextEpisode(episodeLength);
|
||||||
simulator.setTimeStepSize(dt);
|
simulator.setTimeStepSize(dt);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this->simulator().episodeIndex() > 1) {
|
||||||
if (updateHysteresis_())
|
if (updateHysteresis_())
|
||||||
this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
||||||
|
this->model().updateMaxOilSaturations();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GET_PROP_VALUE(TypeTag, DisableWells))
|
if (!GET_PROP_VALUE(TypeTag, DisableWells))
|
||||||
@@ -726,7 +730,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// update the data required for capillary pressure hysteresis
|
// update the data required for capillary pressure hysteresis
|
||||||
updateHysteresis_();
|
if (updateHysteresis_())
|
||||||
|
this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
||||||
|
this->model().updateMaxOilSaturations();
|
||||||
|
|
||||||
// let the object for threshold pressures initialize itself. this is done only at
|
// let the object for threshold pressures initialize itself. this is done only at
|
||||||
// this point, because determining the threshold pressures may require to access
|
// this point, because determining the threshold pressures may require to access
|
||||||
|
|||||||
Reference in New Issue
Block a user