24#ifndef OPM_WELL_TEST_HEADER_INCLUDED
25#define OPM_WELL_TEST_HEADER_INCLUDED
35template<
class Scalar>
class SingleWellState;
36class WellEconProductionLimits;
37template<
class Scalar>
class WellInterfaceGeneric;
48 const double simulation_time,
49 const bool write_message_to_opmlog,
50 WellTestState& well_test_state,
51 bool zero_group_target,
55 const bool write_message_to_opmlog,
56 WellTestState& well_test_state,
60 struct RatioLimitCheckReport {
61 static constexpr int INVALIDCOMPLETION = std::numeric_limits<int>::max();
62 bool ratio_limit_violated =
false;
63 int worst_offending_completion = INVALIDCOMPLETION;
64 Scalar violation_extent = 0.0;
67 void checkMaxGORLimit(
const WellEconProductionLimits& econ_production_limits,
69 RatioLimitCheckReport& report)
const;
71 void checkMaxWGRLimit(
const WellEconProductionLimits& econ_production_limits,
73 RatioLimitCheckReport& report)
const;
75 void checkMaxWaterCutLimit(
const WellEconProductionLimits& econ_production_limits,
77 RatioLimitCheckReport& report)
const;
79 template<
class RatioFunc>
81 const Scalar max_ratio_limit,
82 const RatioFunc& ratioFunc)
const;
84 template<
class RatioFunc>
86 const Scalar max_ratio_limit,
87 const RatioFunc& ratioFunc,
88 RatioLimitCheckReport& report)
const;
90 bool checkRateEconLimits(
const WellEconProductionLimits& econ_production_limits,
91 const std::vector<Scalar>& rates_or_potentials,
95 checkRatioEconLimits(
const WellEconProductionLimits& econ_production_limits,
Definition: DeferredLogger.hpp:57
Definition: SingleWellState.hpp:42
Definition: WellInterfaceGeneric.hpp:51
Class for performing well tests.
Definition: WellTest.hpp:42
void updateWellTestStateEconomic(const SingleWellState< Scalar > &ws, const double simulation_time, const bool write_message_to_opmlog, WellTestState &well_test_state, bool zero_group_target, DeferredLogger &deferred_logger) const
void updateWellTestStatePhysical(const double simulation_time, const bool write_message_to_opmlog, WellTestState &well_test_state, DeferredLogger &deferred_logger) const
WellTest(const WellInterfaceGeneric< Scalar > &well)
Constructor sets reference to well.
Definition: WellTest.hpp:45
Definition: blackoilboundaryratevector.hh:37