20#ifndef OPM_GROUP_ECONOMIC_LIMITS_CHECKER_HEADER_INCLUDED
21#define OPM_GROUP_ECONOMIC_LIMITS_CHECKER_HEADER_INCLUDED
23#include <opm/input/eclipse/Schedule/Group/GroupEconProductionLimits.hpp>
24#include <opm/input/eclipse/Units/UnitSystem.hpp>
33template<
typename Scalar,
typename IndexTraits>
class BlackoilWellModelGeneric;
36template<
typename Scalar,
typename IndexTraits>
class WellState;
39template<
typename Scalar,
typename IndexTraits>
44 WellTestState& well_test_state,
46 const double simulation_time,
47 const int report_step_idx,
61 const size_t sep_length = 110)
const
62 {
return std::string(sep_length, sep_char); }
67 void displayDebugMessage(
const std::string& msg)
const;
68 void addPrintMessage(
const std::string& msg,
71 const UnitSystem::measure measure);
72 bool closeWellsRecursive(
const Group& group,
int level = 0);
73 void throwNotImplementedError(
const std::string& error)
const;
77 const double simulation_time_;
78 const int report_step_idx_;
80 const std::string date_string_;
81 const UnitSystem& unit_system_;
83 WellTestState& well_test_state_;
84 const Schedule& schedule_;
85 GroupEconProductionLimits::GEconGroupProp gecon_props_;
87 std::array<Scalar,NUM_PHASES> production_rates_;
88 std::map<int, unsigned> phase_idx_map_ = {
89 {0, IndexTraits::oilPhaseIdx},
90 {1, IndexTraits::gasPhaseIdx},
91 {2, IndexTraits::waterPhaseIdx}
93 std::map<unsigned, int> phase_idx_reverse_map_;
Class for handling the blackoil well model.
Definition: BlackoilWellModelGeneric.hpp:95
Definition: DeferredLogger.hpp:57
Definition: GroupEconomicLimitsChecker.hpp:41
GroupEconomicLimitsChecker(const BlackoilWellModelGeneric< Scalar, IndexTraits > &well_model, WellTestState &well_test_state, const Group &group, const double simulation_time, const int report_step_idx, DeferredLogger &deferred_logger)
std::string message_separator(const char sep_char=' *', const size_t sep_length=110) const
Definition: GroupEconomicLimitsChecker.hpp:60
static constexpr int NUM_PHASES
Definition: GroupEconomicLimitsChecker.hpp:64
int numProducersOpenInitially()
Definition: WellState.hpp:66
Definition: blackoilboundaryratevector.hh:39