move checkMaxRatioLimitCompletions to WellTest

This commit is contained in:
Arne Morten Kvarving
2022-10-24 11:06:35 +02:00
parent d56eb16837
commit 37f51420f6
5 changed files with 62 additions and 65 deletions

View File

@@ -39,8 +39,9 @@ namespace RateConverter
class Group;
class GroupState;
class Schedule;
class WellState;
struct RatioLimitCheckReport;
class SingleWellState;
class WellState;
template<class FluidSystem>
class WellInterfaceFluidSystem : public WellInterfaceGeneric {
@@ -126,12 +127,6 @@ protected:
const double* rates_or_potentials,
Opm::DeferredLogger& deferred_logger) const;
struct RatioLimitCheckReport{
bool ratio_limit_violated = false;
int worst_offending_completion = INVALIDCOMPLETION;
double violation_extent = 0.0;
};
void checkMaxWaterCutLimit(const WellEconProductionLimits& econ_production_limits,
const SingleWellState& ws,
RatioLimitCheckReport& report) const;
@@ -175,13 +170,6 @@ protected:
// For the conversion between the surface volume rate and reservoir voidage rate
const RateConverterType& rateConverter_;
private:
template <typename RatioFunc>
void checkMaxRatioLimitCompletions(const SingleWellState& ws,
const double max_ratio_limit,
const RatioFunc& ratioFunc,
RatioLimitCheckReport& report) const;
};
}