mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-24 18:20:22 -06:00
enables rockcomp in flow
This commit is contained in:
parent
4ddb8e8d56
commit
8c7d7e3d2e
@ -119,7 +119,6 @@ class EclTransExtensiveQuantities
|
||||
enum { numPhases = FluidSystem::numPhases };
|
||||
enum { enableSolvent = GET_PROP_VALUE(TypeTag, EnableSolvent) };
|
||||
enum { enableEnergy = GET_PROP_VALUE(TypeTag, EnableEnergy) };
|
||||
enum { enableExperiments = GET_PROP_VALUE(TypeTag, EnableExperiments) };
|
||||
|
||||
typedef Opm::MathToolbox<Evaluation> Toolbox;
|
||||
typedef Dune::FieldVector<Scalar, dimWorld> DimVector;
|
||||
@ -437,10 +436,9 @@ protected:
|
||||
const auto& up = elemCtx.intensiveQuantities(upstreamIdx, timeIdx);
|
||||
|
||||
Evaluation transModified = trans;
|
||||
if (enableExperiments) {
|
||||
// deal with water induced rock compaction
|
||||
transModified *= problem.template rockCompTransMultiplier<double>(up, stencil.globalSpaceIndex(upstreamIdx));
|
||||
}
|
||||
|
||||
// deal with water induced rock compaction
|
||||
transModified *= problem.template rockCompTransMultiplier<double>(up, stencil.globalSpaceIndex(upstreamIdx));
|
||||
|
||||
if (upstreamIdx == interiorDofIdx_) {
|
||||
volumeFlux_[phaseIdx] =
|
||||
|
@ -872,13 +872,11 @@ public:
|
||||
for (size_t pvtRegionIdx = 0; pvtRegionIdx < maxDRv_.size(); ++pvtRegionIdx)
|
||||
maxDRv_[pvtRegionIdx] = oilVaporizationControl.getMaxDRVDT(pvtRegionIdx)*this->simulator().timeStepSize();
|
||||
|
||||
if (enableExperiments) {
|
||||
// update maximum water saturation and minimum pressure
|
||||
// used when ROCKCOMP is activated
|
||||
const bool invalidateFromMaxWaterSat = updateMaxWaterSaturation_();
|
||||
const bool invalidateFromMinPressure = updateMinPressure_();
|
||||
invalidateIntensiveQuantities = invalidateFromMaxWaterSat || invalidateFromMinPressure;
|
||||
}
|
||||
// update maximum water saturation and minimum pressure
|
||||
// used when ROCKCOMP is activated
|
||||
const bool invalidateFromMaxWaterSat = updateMaxWaterSaturation_();
|
||||
const bool invalidateFromMinPressure = updateMinPressure_();
|
||||
invalidateIntensiveQuantities = invalidateFromMaxWaterSat || invalidateFromMinPressure;
|
||||
|
||||
if (invalidateIntensiveQuantities)
|
||||
this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
||||
@ -1768,7 +1766,7 @@ public:
|
||||
template <class LhsEval>
|
||||
LhsEval rockCompPoroMultiplier(const IntensiveQuantities& intQuants, unsigned elementIdx) const
|
||||
{
|
||||
if (!enableExperiments || rockCompPoroMult_.size() == 0)
|
||||
if (rockCompPoroMult_.empty())
|
||||
return 1.0;
|
||||
|
||||
unsigned tableIdx = 0;
|
||||
@ -1800,7 +1798,7 @@ public:
|
||||
template <class LhsEval>
|
||||
LhsEval rockCompTransMultiplier(const IntensiveQuantities& intQuants, unsigned elementIdx) const
|
||||
{
|
||||
if (!enableExperiments || rockCompTransMult_.size() == 0)
|
||||
if (rockCompTransMult_.empty())
|
||||
return 1.0;
|
||||
|
||||
unsigned tableIdx = 0;
|
||||
@ -1831,7 +1829,7 @@ public:
|
||||
*/
|
||||
Scalar overburdenPressure(unsigned elementIdx) const
|
||||
{
|
||||
if (!enableExperiments || overburdenPressure_.size() == 0)
|
||||
if (overburdenPressure_.empty())
|
||||
return 0.0;
|
||||
|
||||
return overburdenPressure_[elementIdx];
|
||||
@ -2074,7 +2072,7 @@ private:
|
||||
bool updateMinPressure_()
|
||||
{
|
||||
// IRREVERS option is used in ROCKCOMP
|
||||
if (minOilPressure_.size() == 0)
|
||||
if (minOilPressure_.empty())
|
||||
return false;
|
||||
|
||||
ElementContext elemCtx(this->simulator());
|
||||
@ -2120,8 +2118,7 @@ private:
|
||||
}
|
||||
|
||||
// read the parameters for water-induced rock compaction
|
||||
if (enableExperiments)
|
||||
readRockCompactionParameters_();
|
||||
readRockCompactionParameters_();
|
||||
|
||||
// check the kind of region which is supposed to be used by checking the ROCKOPTS
|
||||
// keyword. note that for some funny reason, the ROCK keyword uses PVTNUM by
|
||||
|
@ -393,7 +393,6 @@ namespace MissingFeatures {
|
||||
"RADFIN4",
|
||||
"RHO",
|
||||
"RKTRMDIR",
|
||||
"ROCKCOMP",
|
||||
"ROCKOPTS",
|
||||
"ROCKTAB",
|
||||
"RPTGRID",
|
||||
|
Loading…
Reference in New Issue
Block a user