Go to the documentation of this file.
24#ifndef OPM_WELL_TEST_HEADER_INCLUDED
25#define OPM_WELL_TEST_HEADER_INCLUDED
34template< typename Scalar, typename IndexTraits> class SingleWellState;
35class WellEconProductionLimits;
36template< typename Scalar, typename IndexTraits> class WellInterfaceGeneric;
40template< typename Scalar, typename IndexTraits>
47 const double simulation_time,
48 const bool write_message_to_opmlog,
49 WellTestState& well_test_state,
50 bool zero_group_target,
54 const bool write_message_to_opmlog,
55 WellTestState& well_test_state,
59 struct RatioLimitCheckReport {
60 static constexpr int INVALIDCOMPLETION = std::numeric_limits<int>::max();
61 bool ratio_limit_violated = false;
62 int worst_offending_completion = INVALIDCOMPLETION;
63 Scalar violation_extent = 0.0;
66 void checkMaxGORLimit( const WellEconProductionLimits& econ_production_limits,
68 RatioLimitCheckReport& report) const;
70 void checkMaxWGRLimit( const WellEconProductionLimits& econ_production_limits,
72 RatioLimitCheckReport& report) const;
74 void checkMaxWaterCutLimit( const WellEconProductionLimits& econ_production_limits,
76 RatioLimitCheckReport& report) const;
78 template< class RatioFunc>
80 const Scalar max_ratio_limit,
81 const RatioFunc& ratioFunc) const;
83 template< class RatioFunc>
85 const Scalar max_ratio_limit,
86 const RatioFunc& ratioFunc,
87 RatioLimitCheckReport& report) const;
89 bool checkRateEconLimits( const WellEconProductionLimits& econ_production_limits,
90 const std::vector<Scalar>& rates_or_potentials,
94 checkRatioEconLimits( const WellEconProductionLimits& econ_production_limits,
Definition: DeferredLogger.hpp:57
Definition: SingleWellState.hpp:43
Definition: WellInterfaceGeneric.hpp:53
Class for performing well tests. Definition: WellTest.hpp:41
void updateWellTestStateEconomic(const SingleWellState< Scalar, IndexTraits > &ws, const double simulation_time, const bool write_message_to_opmlog, WellTestState &well_test_state, bool zero_group_target, DeferredLogger &deferred_logger) const
WellTest(const WellInterfaceGeneric< Scalar, IndexTraits > &well) Constructor sets reference to well. Definition: WellTest.hpp:44
void updateWellTestStatePhysical(const double simulation_time, const bool write_message_to_opmlog, WellTestState &well_test_state, DeferredLogger &deferred_logger) const
Definition: blackoilboundaryratevector.hh:39
|