ebos: minor changes to the EclWellManager

the only non-cosmetic change is the reduction of the magnitude of the
tubing head pressure from 10^100 to 10^30. this does not matter
normally, but if single precision floating point values are used
10^100 cannot be represented by such variables (and also 10^30 is
large enough by a fair margin: I doubt that one ever wants to simulate
the conditions in the core of a star using this code.)
This commit is contained in:
Andreas Lauser 2016-02-26 15:03:41 +01:00
parent 8da01a317d
commit f5d256cbe9

View File

@ -237,7 +237,7 @@ public:
well->setTargetBottomHolePressure(injectProperties.BHPLimit);
// TODO
well->setTargetTubingHeadPressure(1e100);
well->setTargetTubingHeadPressure(1e30);
//well->setTargetTubingHeadPressure(injectProperties.THPLimit);
}
@ -304,7 +304,7 @@ public:
well->setTargetBottomHolePressure(producerProperties.BHPLimit);
// TODO
well->setTargetTubingHeadPressure(-1e100);
well->setTargetTubingHeadPressure(-1e30);
//well->setTargetTubingHeadPressure(producerProperties.THPLimit);
}
}
@ -612,10 +612,11 @@ protected:
// first, remove all wells from the reservoir
model.clearAuxiliaryModules();
auto wellIt = wells_.begin();
const auto wellEndIt = wells_.end();
const auto& wellEndIt = wells_.end();
for (; wellIt != wellEndIt; ++wellIt)
(*wellIt)->clear();
//////
// tell the active wells which DOFs they contain
const auto gridView = simulator_.gridManager().gridView();
@ -648,15 +649,14 @@ protected:
wells.insert(eclWell);
}
//////
}
// register all wells at the model as auxiliary equations
auto wellIt2 = wells.begin();
const auto& wellEndIt2 = wells.end();
for (; wellIt2 != wellEndIt2; ++wellIt2)
{
model.addAuxiliaryModule(*wellIt2);
}
}
void computeWellCompletionsMap_(unsigned reportStepIdx, WellCompletionsMap& cartesianIdxToCompletionMap)